Add Surface Snap Move feature and update related components
This commit is contained in:
@@ -195,6 +195,7 @@ export function createModelInstanceRenderGroup(
|
||||
const previewShell = createWireframeBox(bounds.size, previewShellColor, MODEL_PREVIEW_SHELL_OPACITY);
|
||||
previewShell.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
||||
previewShell.userData.shadowIgnored = true;
|
||||
previewShell.userData.nonPickable = true;
|
||||
group.add(previewShell);
|
||||
}
|
||||
|
||||
@@ -202,6 +203,7 @@ export function createModelInstanceRenderGroup(
|
||||
const selectionShell = createWireframeBox(bounds.size, MODEL_SELECTION_COLOR, 0.8);
|
||||
selectionShell.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
||||
selectionShell.userData.shadowIgnored = true;
|
||||
selectionShell.userData.nonPickable = true;
|
||||
group.add(selectionShell);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user