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 />
|
||||
<VisibilityApplier />
|
||||
<SceneRefCapture />
|
||||
<ViewCubeAnimator />
|
||||
|
||||
<OrbitControls
|
||||
makeDefault
|
||||
@@ -1178,6 +1179,12 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
|
||||
minDistance={0.05}
|
||||
maxDistance={50}
|
||||
enabled={!positionMode}
|
||||
ref={(c: any) => {
|
||||
// Expose to the ViewCube bus
|
||||
import('./viewCubeBus').then(({ mainControlsRef }) => {
|
||||
mainControlsRef.current = c;
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
||||
</Canvas>
|
||||
|
||||
Reference in New Issue
Block a user