Skip to content

Commit

Permalink
Merge pull request #925 from vorth/zometool-tweening
Browse files Browse the repository at this point in the history
Fixed defect in tweening for zometool-instructions
  • Loading branch information
vorth authored Oct 14, 2024
2 parents e5b8244 + b43b459 commit b198055
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion online/src/wc/zometool/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { urlViewerCSS } from "../../viewer/urlviewer.css.js";
import { ZometoolPartsElement } from './parts-list.jsx';
import { ZometoolProductsElement } from './products-list.jsx';
import { normalizeBOM } from './bom.js';
import { createDefaultCameraStore } from '../../viewer/context/camera.jsx';

const debug = false;

Expand Down Expand Up @@ -131,8 +132,12 @@ const renderComponent = ( url, container, dispatch ) =>
{
const bindComponent = () =>
{
const cameraStore = createDefaultCameraStore();
const [ state, setState ] = cameraStore;
setState( 'tweening', { duration: 500 } );

return (
<CameraProvider tweening={{ duration: 500 }}>
<CameraProvider cameraStore={cameraStore}>
<WorkerProvider>
<ViewerProvider config={{ url, preview: true, debug: false, showScenes: false, labels: true, source: true }}>
<ZometoolInstructions dispatch={dispatch} >
Expand Down

0 comments on commit b198055

Please sign in to comment.