You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @joshnice
Thanks for contributing!
I haven't had time yet to test all the changes but at first sight I see a mistake options.scale = this.scale; must be set always, not only in the else part. The reason is basically to keep that value updated always to the latest. This is needed to avoid any issue if you clone an object, otherwise the new object won't be able to restore with the latest value.
options.scale=this.scale;
If you change that, I'm happy to approve and welcome you as contributor!
Hi @jscastro76,
I have made the changes you suggested and thanks for the explanation of why it needed to be changed!
I also found an issue that when the object is loaded with units of meters the setScale function does not work (this is happening in the master), I did not know if you were aware of this or not. However when I am using Threebox I load the models in with the units of scene, so this does not affect me.
Hi @jscastro76, I have made the changes you suggested and thanks for the explanation of why it needed to be changed! I also found an issue that when the object is loaded with units of meters the setScale function does not work (this is happening in the master), I did not know if you were aware of this or not. However when I am using Threebox I load the models in with the units of scene, so this does not affect me.
setScale should work as it's heavily used when the model has fix zoom property... can you elaborate or show me that bug in any example?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow an object in the threebox world which is using units of "scene", to use the setScale function. Provided example as well.