Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Jun 19, 2021

Related issue: #18479 #16154

Description

Store the background texture (and equirectangular texture) on IndexedDB.

@mrdoob mrdoob added this to the r130 milestone Jun 19, 2021
this.scene.uuid = scene.uuid;
this.scene.name = scene.name;

this.scene.background = ( scene.background !== null ) ? scene.background.clone() : null;
Copy link
Owner Author

Choose a reason for hiding this comment

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

I can't remember why we were cloning scene.background.

Copy link
Collaborator

@Mugen87 Mugen87 Jun 19, 2021

Choose a reason for hiding this comment

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

Maybe because scene.fog is cloned, too^^?

It seems the line was added like that right from the beginning: 750973b#diff-c7a0a223e819b2c4e36644546146290d9d14f241cf78daa5438faf335a2aff35R124

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since you have changed the code, it makes sense to align:

if ( scene.fog !== null ) this.scene.fog = scene.fog.clone();

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done! 64c6990

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.

3 participants