mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
fix clipping planes offset once more
This commit is contained in:
@@ -126,7 +126,7 @@ function onClipPlanesChange() {
|
||||
props.viewer.renderer.threeRenderer.localClippingEnabled = true;
|
||||
// Due to model-viewer's camera manipulation, the bounding box needs to be transformed
|
||||
bbox = SceneMgr.getBoundingBox(sceneDocument.value);
|
||||
bbox.applyMatrix4(sceneModel.matrixWorld);
|
||||
bbox.translate(scene.getTarget());
|
||||
}
|
||||
sceneModel.traverse((child) => {
|
||||
if (child.userData[extrasNameKey] === modelName) {
|
||||
|
||||
Reference in New Issue
Block a user