summaryrefslogtreecommitdiffstats
path: root/scene/main/shader_globals_override.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 /scene/main/shader_globals_override.cpp
parent593e35346ab182c36068c3dcfc741eeb7311a19e (diff)
downloadredot-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.cpp2
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;
}