diff options
| author | reduz <reduzio@gmail.com> | 2020-11-09 00:19:09 -0300 |
|---|---|---|
| committer | reduz <reduzio@gmail.com> | 2020-11-09 08:54:43 -0300 |
| commit | 221a2a17422dfbb7e0be5ca42fe56b91adb656e3 (patch) | |
| tree | 8b07402f807804ee8944b047a4ffe683c6027b12 /editor/editor_inspector.cpp | |
| parent | 593e35346ab182c36068c3dcfc741eeb7311a19e (diff) | |
| download | redot-engine-221a2a17422dfbb7e0be5ca42fe56b91adb656e3.tar.gz | |
Refactored variant constructor logic
Diffstat (limited to 'editor/editor_inspector.cpp')
| -rw-r--r-- | editor/editor_inspector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 1837b23a0b..371100652f 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2278,7 +2278,7 @@ void EditorInspector::_property_checked(const String &p_path, bool p_checked) { for (List<PropertyInfo>::Element *E = pinfo.front(); E; E = E->next()) { if (E->get().name == p_path) { Callable::CallError ce; - to_create = Variant::construct(E->get().type, nullptr, 0, ce); + Variant::construct(E->get().type, to_create, nullptr, 0, ce); break; } } |
