mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add EditorSettings EDITOR_GET_CACHED
This commit is contained in:
@@ -702,7 +702,7 @@ void EditorPropertyArray::_bind_methods() {
|
||||
|
||||
EditorPropertyArray::EditorPropertyArray() {
|
||||
object.instance();
|
||||
page_length = int(EDITOR_GET("interface/inspector/max_array_dictionary_items_per_page"));
|
||||
page_length = EDITOR_GET_CACHED(int, "interface/inspector/max_array_dictionary_items_per_page");
|
||||
edit = memnew(Button);
|
||||
edit->set_flat(true);
|
||||
edit->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
@@ -1190,7 +1190,7 @@ void EditorPropertyDictionary::_bind_methods() {
|
||||
|
||||
EditorPropertyDictionary::EditorPropertyDictionary() {
|
||||
object.instance();
|
||||
page_length = int(EDITOR_GET("interface/inspector/max_array_dictionary_items_per_page"));
|
||||
page_length = EDITOR_GET_CACHED(int, "interface/inspector/max_array_dictionary_items_per_page");
|
||||
edit = memnew(Button);
|
||||
edit->set_flat(true);
|
||||
edit->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
Reference in New Issue
Block a user