summaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-10 14:09:17 +0100
committerGitHub <noreply@github.com>2022-03-10 14:09:17 +0100
commit9b597364737cbc04ccb5ee8e5c18bccb4dd31362 (patch)
tree5e2cc8006e77d01596e323ad9bac586920fc080a /editor/property_editor.cpp
parent90faf04f293fcdf636f641bfe3d88c5857695d9b (diff)
parent6f51eca1e3045571ccc68414a922e8b0229111f0 (diff)
Merge pull request #58972 from reduz/expose-more-gdextension
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 0282504c70..dd4b963fc0 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -907,7 +907,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
}
}
- if (!is_custom_resource && !ClassDB::can_instantiate(t)) {
+ if (!is_custom_resource && (!ClassDB::can_instantiate(t) || ClassDB::is_virtual(t))) {
continue;
}