diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-04-04 18:09:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 18:09:26 +0300 |
commit | 541bd559600d162343c890b95cc684ee002cbf96 (patch) | |
tree | b70f82df1099f258536a4886895f6280f1a5414e /editor | |
parent | cbf54086856cdc0bbbeb805a2daadfbc66045ed7 (diff) | |
parent | 44af52d62c815356ea7c3bdf9f3fd48c22268b4f (diff) |
Merge pull request #47616 from Chaosus/vs_prevent_texture_uniform_convert
Prevents TextureUniform in visual shaders from conversion to constant
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 290d715bfc..ccfc1f6fab 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -2627,7 +2627,7 @@ void VisualShaderEditor::_graph_gui_input(const Ref<InputEvent> &p_event) { selected_constants.insert(id); } VisualShaderNodeUniform *uniform_node = Object::cast_to<VisualShaderNodeUniform>(node.ptr()); - if (uniform_node != nullptr) { + if (uniform_node != nullptr && uniform_node->is_convertible_to_constant()) { selected_uniforms.insert(id); } } |