Browse Source

Merge pull request #9296 from CedricGuillemet/rotateRibbon

check mesh geometry before updating ribbon geometry
David Catuhe 4 năm trước cách đây
mục cha
commit
670718f310
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Gizmos/planeRotationGizmo.ts

+ 1 - 1
src/Gizmos/planeRotationGizmo.ts

@@ -334,7 +334,7 @@ export class PlaneRotationGizmo extends Gizmo {
 
     private updateRotationCircle(mesh: Mesh, paths: any[], newFill: number, dragPlanePoint: Vector3): void {
         this.updateRotationPath(paths, newFill);
-        Mesh.CreateRibbon("rotationCircle", paths, false, false, 0, this.gizmoLayer.utilityLayerScene, undefined, undefined, mesh);
+        Mesh.CreateRibbon("rotationCircle", paths, false, false, 0, this.gizmoLayer.utilityLayerScene, undefined, undefined, mesh.geometry ? mesh : undefined);
     }
 
     /**