summaryrefslogtreecommitdiffstats
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-03-07 17:45:13 +0100
committerkobewi <kobewi4e@gmail.com>2024-03-07 18:01:30 +0100
commit7319b612f3512b5077279c51230b48b56622c564 (patch)
tree7889d55102be9e53a6d0fee270703542aadfc9c1 /editor/editor_inspector.cpp
parentaef11a14274f6f9e74ad91ead1d7c07ea1dd7f5f (diff)
downloadredot-engine-7319b612f3512b5077279c51230b48b56622c564.tar.gz
Speed up inspector updates for TileMap
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 83a7e115c9..a14c6e8462 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -2009,6 +2009,10 @@ Array EditorInspectorArray::_extract_properties_as_array(const List<PropertyInfo
Array output;
for (const PropertyInfo &pi : p_list) {
+ if (!(pi.usage & PROPERTY_USAGE_EDITOR)) {
+ continue;
+ }
+
if (pi.name.begins_with(array_element_prefix)) {
String str = pi.name.trim_prefix(array_element_prefix);