mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Editor: remove TOOLS_ENABLED guards
For code inside editor/ `#ifdef TOOLS_ENABLED` is always true so those checks are redundant.
This commit is contained in:
@@ -271,8 +271,6 @@ void EditorPropertyArray::update_property() {
|
||||
|
||||
edit->set_text(arrtype + " (size " + itos(array.call("size")) + ")");
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
bool unfolded = get_edited_object()->editor_is_section_unfolded(get_edited_property());
|
||||
if (edit->is_pressed() != unfolded) {
|
||||
edit->set_pressed(unfolded);
|
||||
@@ -397,7 +395,6 @@ void EditorPropertyArray::update_property() {
|
||||
vbox = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void EditorPropertyArray::_remove_pressed(int p_index) {
|
||||
@@ -643,8 +640,6 @@ void EditorPropertyDictionary::update_property() {
|
||||
|
||||
edit->set_text("Dictionary (size " + itos(dict.size()) + ")");
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
bool unfolded = get_edited_object()->editor_is_section_unfolded(get_edited_property());
|
||||
if (edit->is_pressed() != unfolded) {
|
||||
edit->set_pressed(unfolded);
|
||||
@@ -959,7 +954,6 @@ void EditorPropertyDictionary::update_property() {
|
||||
vbox = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void EditorPropertyDictionary::_object_id_selected(const String &p_property, ObjectID p_id) {
|
||||
|
||||
Reference in New Issue
Block a user