瀏覽代碼

Merge pull request #9296 from CedricGuillemet/rotateRibbon

check mesh geometry before updating ribbon geometry
David Catuhe 4 年之前
父節點
當前提交
670718f310
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
     }
 
     /**