mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Prevents TextureUniform in visual shaders from conversion to constant
This commit is contained in:
parent
cbf5408685
commit
44af52d62c
4 changed files with 37 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue