Procházet zdrojové kódy

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 před 4 roky
rodič
revize
28d42698be

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

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