summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-04-04 18:09:26 +0300
committerGitHub <noreply@github.com>2021-04-04 18:09:26 +0300
commit541bd559600d162343c890b95cc684ee002cbf96 (patch)
treeb70f82df1099f258536a4886895f6280f1a5414e /editor
parentcbf54086856cdc0bbbeb805a2daadfbc66045ed7 (diff)
parent44af52d62c815356ea7c3bdf9f3fd48c22268b4f (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.cpp2
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);
}
}