You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove NOTIFICATION_ENTER_TREE when NOTIFICATION_THEME_CHANGED is used
This commit is contained in:
@@ -258,7 +258,6 @@ void GradientTexture2DEditor::set_texture(Ref<GradientTexture2D> &p_texture) {
|
||||
|
||||
void GradientTexture2DEditor::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
reverse_button->set_button_icon(get_editor_theme_icon(SNAME("ReverseGradient")));
|
||||
snap_button->set_button_icon(get_editor_theme_icon(SNAME("SnapGrid")));
|
||||
|
||||
Reference in New Issue
Block a user