diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-08-12 21:23:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 21:23:18 +0300 |
commit | b2b33ce4f6c6f32681f7fa71a8af78242cbf7c19 (patch) | |
tree | 411d69942091138ff300c4700763987ba78ac4f5 /scene/resources/visual_shader_nodes.cpp | |
parent | 71873057bcfa2ba3091813949b228e91c8b3c2f3 (diff) | |
parent | c43b7c113f1158db6c4436122550d6402c92abd7 (diff) |
Merge pull request #51572 from Chaosus/vs_fix_transform_instance
Fix printing error about unsupported modifier on `TransformUniform`
Diffstat (limited to 'scene/resources/visual_shader_nodes.cpp')
-rw-r--r-- | scene/resources/visual_shader_nodes.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp index 6fd6fd8f3b..afe0bdfd5c 100644 --- a/scene/resources/visual_shader_nodes.cpp +++ b/scene/resources/visual_shader_nodes.cpp @@ -4575,7 +4575,10 @@ bool VisualShaderNodeTransformUniform::is_use_prop_slots() const { } bool VisualShaderNodeTransformUniform::is_qualifier_supported(Qualifier p_qual) const { - return true; // all qualifiers are supported + if (p_qual == Qualifier::QUAL_INSTANCE) { + return false; + } + return true; } bool VisualShaderNodeTransformUniform::is_convertible_to_constant() const { |