-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Editor: Store background in IndexedDB #22023
Conversation
@@ -131,8 +131,7 @@ Editor.prototype = { | |||
this.scene.uuid = scene.uuid; | |||
this.scene.name = scene.name; | |||
|
|||
this.scene.background = ( scene.background !== null ) ? scene.background.clone() : null; |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
Line 136 in 8d30d74
if ( scene.fog !== null ) this.scene.fog = scene.fog.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! 64c6990
Related issue: #18479 #16154
Description
Store the background texture (and equirectangular texture) on IndexedDB.