diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-01 09:54:57 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-01 09:54:57 +0200 |
commit | de00cfbc017a8f7fc6c68084369abfda5ed2cb59 (patch) | |
tree | cb0e4983dc95f5e39e8ce866bf7b09189429fb0c /scene/resources/visual_shader.cpp | |
parent | 645be5cdbb2a75a76137dfe3d5d015f1f7b94730 (diff) | |
parent | 56d843724e6ffdc804a789949e828eebccc20060 (diff) | |
download | redot-engine-de00cfbc017a8f7fc6c68084369abfda5ed2cb59.tar.gz |
Merge pull request #90892 from Chaosus/vs_fix_expression_port_expand
Prevent expanding output port in visual shader expression
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r-- | scene/resources/visual_shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 6f1aa5c850..4b51f6c471 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -4928,6 +4928,10 @@ String VisualShaderNodeExpression::generate_code(Shader::Mode p_mode, VisualShad return code; } +bool VisualShaderNodeExpression::is_output_port_expandable(int p_port) const { + return false; +} + void VisualShaderNodeExpression::_bind_methods() { ClassDB::bind_method(D_METHOD("set_expression", "expression"), &VisualShaderNodeExpression::set_expression); ClassDB::bind_method(D_METHOD("get_expression"), &VisualShaderNodeExpression::get_expression); |