Skip to content

Commit 7d9f916

Browse files
Fix ClippingPrimitive.ResetRenderer clearing all MaterialPropertyBlock properties (#244)
1 parent bc81f91 commit 7d9f916

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

com.microsoft.mrtk.graphicstools.unity/Runtime/Clipping/ClippingPrimitive.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ public void ResetRenderer(Renderer _renderer, bool autoDestroyMaterial = true)
182182
{
183183
materialInstance.ReleaseMaterial(this, autoDestroyMaterial);
184184
}
185-
186-
// Reset the material property block.
187-
materialPropertyBlock.Clear();
188-
_renderer.SetPropertyBlock(materialPropertyBlock);
189185
}
190186
}
191187

0 commit comments

Comments
 (0)