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 /scene/main/shader_globals_override.cpp | |
parent | 593e35346ab182c36068c3dcfc741eeb7311a19e (diff) | |
download | redot-engine-221a2a17422dfbb7e0be5ca42fe56b91adb656e3.tar.gz |
Refactored variant constructor logic
Diffstat (limited to 'scene/main/shader_globals_override.cpp')
-rw-r--r-- | scene/main/shader_globals_override.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp index 86c08ca6e9..432fb5b4fb 100644 --- a/scene/main/shader_globals_override.cpp +++ b/scene/main/shader_globals_override.cpp @@ -202,7 +202,7 @@ void ShaderGlobalsOverride::_get_property_list(List<PropertyInfo> *p_list) const Override o; o.in_use = false; Callable::CallError ce; - o.override = Variant::construct(pinfo.type, nullptr, 0, ce); + Variant::construct(pinfo.type, o.override, nullptr, 0, ce); overrides[variables[i]] = o; } |