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

@@ -136,7 +136,7 @@ bool Polygon3DEditor::forward_spatial_gui_input(Camera *p_camera, const Ref<Inpu
Vector<Vector2> poly = node->call("get_polygon");
//first check if a point is to be added (segment split)
real_t grab_threshold = EDITOR_GET("editors/poly_editor/point_grab_radius");
real_t grab_threshold = EDITOR_GET_CACHED(real_t, "editors/poly_editor/point_grab_radius");
switch (mode) {
case MODE_CREATE: {