|
@@ -133,7 +133,7 @@ export class AxisDragGizmo extends Gizmo {
|
|
}
|
|
}
|
|
|
|
|
|
// use _worldMatrix to not force a matrix update when calling GetWorldMatrix especialy with Cameras
|
|
// use _worldMatrix to not force a matrix update when calling GetWorldMatrix especialy with Cameras
|
|
- this.attachedNode._worldMatrix.addTranslationFromFloats(event.delta.x, event.delta.y, event.delta.z);
|
|
|
|
|
|
+ this.attachedNode.getWorldMatrix().addTranslationFromFloats(event.delta.x, event.delta.y, event.delta.z);
|
|
this.attachedNode.updateCache();
|
|
this.attachedNode.updateCache();
|
|
} else {
|
|
} else {
|
|
currentSnapDragDistance += event.dragDistance;
|
|
currentSnapDragDistance += event.dragDistance;
|
|
@@ -142,7 +142,7 @@ export class AxisDragGizmo extends Gizmo {
|
|
currentSnapDragDistance = currentSnapDragDistance % this.snapDistance;
|
|
currentSnapDragDistance = currentSnapDragDistance % this.snapDistance;
|
|
event.delta.normalizeToRef(tmpVector);
|
|
event.delta.normalizeToRef(tmpVector);
|
|
tmpVector.scaleInPlace(this.snapDistance * dragSteps);
|
|
tmpVector.scaleInPlace(this.snapDistance * dragSteps);
|
|
- this.attachedNode._worldMatrix.addTranslationFromFloats(tmpVector.x, tmpVector.y, tmpVector.z);
|
|
|
|
|
|
+ this.attachedNode.getWorldMatrix().addTranslationFromFloats(tmpVector.x, tmpVector.y, tmpVector.z);
|
|
this.attachedNode.updateCache();
|
|
this.attachedNode.updateCache();
|
|
tmpSnapEvent.snapDistance = this.snapDistance * dragSteps;
|
|
tmpSnapEvent.snapDistance = this.snapDistance * dragSteps;
|
|
this.onSnapObservable.notifyObservers(tmpSnapEvent);
|
|
this.onSnapObservable.notifyObservers(tmpSnapEvent);
|