@@ -1599,7 +1599,7 @@ void EditorPropertyVector2::setup(double p_min, double p_max, double p_step, boo
15991599}
16001600
16011601EditorPropertyVector2::EditorPropertyVector2 () {
1602- bool horizontal = EDITOR_GET ( " interface/inspector/horizontal_vector2_editing" );
1602+ bool horizontal = EDITOR_GET_CACHED ( bool , " interface/inspector/horizontal_vector2_editing" );
16031603
16041604 HBoxContainer *hb = memnew (HBoxContainer);
16051605 hb->set_h_size_flags (SIZE_EXPAND_FILL);
@@ -1693,7 +1693,7 @@ void EditorPropertyRect2::setup(double p_min, double p_max, double p_step, bool
16931693}
16941694
16951695EditorPropertyRect2::EditorPropertyRect2 () {
1696- bool horizontal = EDITOR_GET ( " interface/inspector/horizontal_vector_types_editing" );
1696+ bool horizontal = EDITOR_GET_CACHED ( bool , " interface/inspector/horizontal_vector_types_editing" );
16971697
16981698 BoxContainer *bc;
16991699
@@ -1830,7 +1830,7 @@ void EditorPropertyVector3::setup(double p_min, double p_max, double p_step, boo
18301830}
18311831
18321832EditorPropertyVector3::EditorPropertyVector3 () {
1833- bool horizontal = EDITOR_GET ( " interface/inspector/horizontal_vector_types_editing" );
1833+ bool horizontal = EDITOR_GET_CACHED ( bool , " interface/inspector/horizontal_vector_types_editing" );
18341834
18351835 HBoxContainer *hb = memnew (HBoxContainer);
18361836 hb->set_h_size_flags (SIZE_EXPAND_FILL);
@@ -1925,7 +1925,7 @@ void EditorPropertyPlane::setup(double p_min, double p_max, double p_step, bool
19251925}
19261926
19271927EditorPropertyPlane::EditorPropertyPlane () {
1928- bool horizontal = EDITOR_GET ( " interface/inspector/horizontal_vector_types_editing" );
1928+ bool horizontal = EDITOR_GET_CACHED ( bool , " interface/inspector/horizontal_vector_types_editing" );
19291929
19301930 BoxContainer *bc;
19311931
@@ -2007,7 +2007,7 @@ void EditorPropertyQuat::setup(double p_min, double p_max, double p_step, bool p
20072007}
20082008
20092009EditorPropertyQuat::EditorPropertyQuat () {
2010- bool horizontal = EDITOR_GET ( " interface/inspector/horizontal_vector_types_editing" );
2010+ bool horizontal = EDITOR_GET_CACHED ( bool , " interface/inspector/horizontal_vector_types_editing" );
20112011
20122012 BoxContainer *bc;
20132013
@@ -2373,7 +2373,7 @@ void EditorPropertyColor::_popup_closed() {
23732373
23742374void EditorPropertyColor::_picker_created () {
23752375 // get default color picker mode from editor settings
2376- int default_color_mode = EDITOR_GET ( " interface/inspector/default_color_picker_mode" );
2376+ int default_color_mode = EDITOR_GET_CACHED ( int , " interface/inspector/default_color_picker_mode" );
23772377 if (default_color_mode == 1 ) {
23782378 picker->get_picker ()->set_hsv_mode (true );
23792379 } else if (default_color_mode == 2 ) {
@@ -2920,7 +2920,7 @@ void EditorPropertyResource::_bind_methods() {
29202920}
29212921
29222922EditorPropertyResource::EditorPropertyResource () {
2923- use_sub_inspector = bool ( EDITOR_GET ( " interface/inspector/open_resources_in_current_inspector" ) );
2923+ use_sub_inspector = EDITOR_GET_CACHED ( bool , " interface/inspector/open_resources_in_current_inspector" );
29242924
29252925 add_to_group (" _editor_resource_properties" );
29262926}
@@ -2936,7 +2936,7 @@ void EditorInspectorDefaultPlugin::parse_begin(Object *p_object) {
29362936}
29372937
29382938bool EditorInspectorDefaultPlugin::parse_property (Object *p_object, Variant::Type p_type, const String &p_path, PropertyHint p_hint, const String &p_hint_text, int p_usage) {
2939- double default_float_step = EDITOR_GET ( " interface/inspector/default_float_step" );
2939+ double default_float_step = EDITOR_GET_CACHED ( double , " interface/inspector/default_float_step" );
29402940
29412941 switch (p_type) {
29422942 // atomic types
0 commit comments