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

Editor: Added edit for .renderOrder and .frustumCulled #13444

Merged
merged 2 commits into from
Feb 26, 2018
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 26, 2018

This PR adresses #12884

It adds an edit option for Object3D.renderOrder and Object3D.frustumCulled. It also ensure, that serialization and deserialization for both properties work correctly.

// renderOrder

var objectRenderOrderRow = new UI.Row();
var objectRenderOrder = new UI.Integer().setWidth( '50px' ).setStep( 1 ).setRange( 0, Infinity ).onChange( update );
Copy link
Owner

Choose a reason for hiding this comment

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

Hmm... I guess the range should go from -Infinity to Infinity?
So I guess we don't need to set the range?

Copy link
Collaborator Author

@Mugen87 Mugen87 Feb 26, 2018

Choose a reason for hiding this comment

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

Right. And .setStep() is also not necessary 😅

@mrdoob mrdoob added this to the r91 milestone Feb 26, 2018
@mrdoob mrdoob merged commit ad5343b into mrdoob:dev Feb 26, 2018
@mrdoob
Copy link
Owner

mrdoob commented Feb 26, 2018

Thanks!

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