Skip to content

Conversation

@mrdoob
Copy link
Contributor

@mrdoob mrdoob commented Nov 15, 2025

Related: #700

Fixes an issue where the camera would appear to move progressively further away when dropping multiple models in the viewer.

Comment on lines +166 to +168
// Reset camera and controls
camera.position.set( 0, 0, distance );
camera.lookAt( 0, 0, 0 );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this fix it? The position is set to the same value and "lookAt" is called in controls.update so isn't this the same thing as before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test later today. Maybe I was using an old bundle or something. This whole parcel/vite process for updating examples confuses me.

@mrdoob
Copy link
Contributor Author

mrdoob commented Nov 19, 2025

Looks like it was indeed an issue with parcel/vite not updating the file or something.

@mrdoob mrdoob closed this Nov 19, 2025
@mrdoob mrdoob deleted the viewer branch November 19, 2025 05:49
@gkjohnson
Copy link
Owner

Yeah Parcel I used to have issues with - but vite has been pretty reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants