Browse Source

Merge pull request #9817 from Popov72/fix-inspector-wireframe

Inspector: Clone only the mesh, not the children when using render wireframe over mesh
David Catuhe 4 years ago
parent
commit
28d42698be

+ 1 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx

@@ -80,7 +80,7 @@ export class MeshPropertyGridComponent extends React.Component<
             return;
         }
 
-        var wireframeOver = mesh.clone()!;
+        var wireframeOver = mesh.clone(mesh.name + "_wireframeover", null, true)!;
         wireframeOver.reservedDataStore = { hidden: true };
 
         // Sets up the mesh to be attached to the parent.