Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -1170,6 +1170,7 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
|
|||||||
<SelectionHandler />
|
<SelectionHandler />
|
||||||
<VisibilityApplier />
|
<VisibilityApplier />
|
||||||
<SceneRefCapture />
|
<SceneRefCapture />
|
||||||
|
<ViewCubeAnimator />
|
||||||
|
|
||||||
<OrbitControls
|
<OrbitControls
|
||||||
makeDefault
|
makeDefault
|
||||||
@@ -1178,6 +1179,12 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
|
|||||||
minDistance={0.05}
|
minDistance={0.05}
|
||||||
maxDistance={50}
|
maxDistance={50}
|
||||||
enabled={!positionMode}
|
enabled={!positionMode}
|
||||||
|
ref={(c: any) => {
|
||||||
|
// Expose to the ViewCube bus
|
||||||
|
import('./viewCubeBus').then(({ mainControlsRef }) => {
|
||||||
|
mainControlsRef.current = c;
|
||||||
|
});
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</Canvas>
|
</Canvas>
|
||||||
|
|||||||
Reference in New Issue
Block a user