Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeEditor: Make sure scene is properly resetted. #28992

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jul 26, 2024

Related issue: -

Description

When working at #28987 I've realized the examples using the basic material did not look right.

The default teapot example defines an environment for its standard material. When you now switch to an example using the basic material, the environment is applied as well since the texture is never removed. That also happened in previous releases however the issue wasn't noticed since the basic material did not support env maps.

@@ -200,6 +200,8 @@ export class ScriptableEditor extends BaseNodeEditor {

disposeScene( editorOutputAdded );
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This name is a bit misleading. editorOutputAdded is not a scene so disposeScene() usually operates on a mesh. Hence, I had to introduce a separate resetScene().

@Mugen87 Mugen87 added this to the r168 milestone Jul 27, 2024
@Mugen87 Mugen87 merged commit 929741e into mrdoob:dev Jul 27, 2024
11 checks passed
brunosimon pushed a commit to brunosimon/three.js that referenced this pull request Jul 28, 2024
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.

1 participant