Add transform preview and gizmo synchronization in ViewportHost
This commit is contained in:
@@ -374,6 +374,8 @@ export class ViewportHost {
|
|||||||
|
|
||||||
if (this.currentDocument !== null) {
|
if (this.currentDocument !== null) {
|
||||||
this.rebuildModelInstances(this.currentDocument, this.currentSelection);
|
this.rebuildModelInstances(this.currentDocument, this.currentSelection);
|
||||||
|
this.applyTransformPreview();
|
||||||
|
this.syncTransformGizmo();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.creationPreview?.target.kind === "model-instance") {
|
if (this.creationPreview?.target.kind === "model-instance") {
|
||||||
@@ -549,6 +551,13 @@ export class ViewportHost {
|
|||||||
this.creationPreviewChangeHandler = null;
|
this.creationPreviewChangeHandler = null;
|
||||||
this.creationCommitHandler = null;
|
this.creationCommitHandler = null;
|
||||||
this.cameraStateChangeHandler = null;
|
this.cameraStateChangeHandler = null;
|
||||||
|
this.transformSessionChangeHandler = null;
|
||||||
|
this.transformCommitHandler = null;
|
||||||
|
this.transformCancelHandler = null;
|
||||||
|
this.currentTransformSession = createInactiveTransformSession();
|
||||||
|
this.clearTransformGizmo();
|
||||||
|
this.activeTransformDrag = null;
|
||||||
|
this.keyboardTransformPointerOrigin = null;
|
||||||
this.syncCreationPreview(null);
|
this.syncCreationPreview(null);
|
||||||
this.advancedRenderingComposer?.dispose();
|
this.advancedRenderingComposer?.dispose();
|
||||||
this.advancedRenderingComposer = null;
|
this.advancedRenderingComposer = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user