Implement setWhiteboxSnapSettings method in ViewportHost

This commit is contained in:
2026-04-04 19:28:23 +02:00
parent 0fd274d8ab
commit 73923baf5d

View File

@@ -453,6 +453,17 @@ export class ViewportHost {
this.syncCreationPreview(toolPreview);
}
setWhiteboxSnapSettings(enabled: boolean, step: number) {
this.whiteboxSnapEnabled = enabled;
this.whiteboxSnapStep = step;
if (this.creationPreview !== null) {
this.syncCreationPreview(this.creationPreview);
}
this.applyTransformPreview();
}
setTransformSession(transformSession: TransformSessionState) {
this.currentTransformSession = cloneTransformSession(transformSession);