-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Sprite2D editor cleanup #99446
base: master
Are you sure you want to change the base?
Sprite2D editor cleanup #99446
Conversation
@@ -587,6 +578,7 @@ Sprite2DEditor::Sprite2DEditor() { | |||
options->get_popup()->add_item(TTR("Create LightOccluder2D Sibling"), MENU_OPTION_CREATE_LIGHT_OCCLUDER_2D); | |||
options->set_switch_on_hover(true); | |||
|
|||
CanvasItemEditor::get_singleton()->add_control_to_menu_panel(options); |
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.
Follows a pattern where node is setup before being added to tree.
sprite_editor->options->show(); | ||
} else { | ||
sprite_editor->options->hide(); | ||
sprite_editor->edit(nullptr); |
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.
The only thing that sets me off is the removal of this line, but I assume that's handled by something else.
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.
Yes, it's no longer necessary.
For
|
Inspired by #99210 (comment)
Removes some unused method and improves code.