You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Prevents TextureUniform in visual shaders from conversion to constant
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user