summaryrefslogtreecommitdiffstats
path: root/editor/property_selector.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2020-11-09 00:19:09 -0300
committerreduz <reduzio@gmail.com>2020-11-09 08:54:43 -0300
commit221a2a17422dfbb7e0be5ca42fe56b91adb656e3 (patch)
tree8b07402f807804ee8944b047a4ffe683c6027b12 /editor/property_selector.cpp
parent593e35346ab182c36068c3dcfc741eeb7311a19e (diff)
downloadredot-engine-221a2a17422dfbb7e0be5ca42fe56b91adb656e3.tar.gz
Refactored variant constructor logic
Diffstat (limited to 'editor/property_selector.cpp')
-rw-r--r--editor/property_selector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/property_selector.cpp b/editor/property_selector.cpp
index 27b11e4fb5..75420a1ef4 100644
--- a/editor/property_selector.cpp
+++ b/editor/property_selector.cpp
@@ -95,7 +95,7 @@ void PropertySelector::_update_search() {
} else if (type != Variant::NIL) {
Variant v;
Callable::CallError ce;
- v = Variant::construct(type, nullptr, 0, ce);
+ Variant::construct(type, v, nullptr, 0, ce);
v.get_property_list(&props);
} else {
@@ -200,7 +200,7 @@ void PropertySelector::_update_search() {
if (type != Variant::NIL) {
Variant v;
Callable::CallError ce;
- v = Variant::construct(type, nullptr, 0, ce);
+ Variant::construct(type, v, nullptr, 0, ce);
v.get_method_list(&methods);
} else {
Object *obj = ObjectDB::get_instance(script);