Explorar o código

Merge pull request #8666 from CedricGuillemet/fixGizmoGroundMesh

fix gizmo update for some meshes like GroundMesh
Cedric Guillemet %!s(int64=5) %!d(string=hai) anos
pai
achega
dd68fab6c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Gizmos/gizmo.ts

+ 1 - 1
src/Gizmos/gizmo.ts

@@ -194,7 +194,7 @@ export class Gizmo implements IDisposable {
             }
 
             camera.position.copyFrom(this._tempVector);
-        } else if (this._attachedNode.getClassName() === "Mesh" || this._attachedNode.getClassName() === "AbstractMesh" || this._attachedNode.getClassName() === "TransformNode") {
+        } else if ((<Mesh>this._attachedNode)._isMesh || this._attachedNode.getClassName() === "AbstractMesh" || this._attachedNode.getClassName() === "TransformNode") {
             var transform = this._attachedNode as TransformNode;
             if (transform.parent) {
                 var parentInv = new Matrix();