Add EditorSettings EDITOR_GET_CACHED

This commit is contained in:
lawnjelly
2025-07-01 09:20:07 +01:00
parent 1a7d99e37d
commit 0718852d2c
38 changed files with 153 additions and 88 deletions

View File

@@ -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);