You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Remove NOTIFICATION_ENTER_TREE when NOTIFICATION_THEME_CHANGED is used
This commit is contained in:
@@ -146,7 +146,6 @@ bool EditorPropertyFontOTObject::_property_get_revert(const StringName &p_name,
|
||||
|
||||
void EditorPropertyFontMetaOverride::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
if (button_add) {
|
||||
button_add->set_button_icon(get_editor_theme_icon(SNAME("Add")));
|
||||
@@ -552,7 +551,6 @@ EditorPropertyOTVariation::EditorPropertyOTVariation() {
|
||||
|
||||
void EditorPropertyOTFeatures::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
if (button_add) {
|
||||
button_add->set_button_icon(get_editor_theme_icon(SNAME("Add")));
|
||||
|
||||
Reference in New Issue
Block a user