summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-04-24 08:08:29 +0300
committerChaosus <chaosus89@gmail.com>2019-04-24 08:08:29 +0300
commit9ac770be45c0d167178e83d63446f72d3e138585 (patch)
treef870276eef317e4ed754c54cc9a8477803e46661 /editor/plugins
parent80f91c9d3664ab8dd226a3708e36886381e4508b (diff)
Removes preview from existing transform nodes in visual shader
Diffstat (limited to 'editor/plugins')
-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 c619b5d224..4fc323f119 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -523,7 +523,7 @@ void VisualShaderEditor::_update_graph() {
}
}
- if (vsnode->get_output_port_for_preview() >= 0) {
+ if (vsnode->get_output_port_for_preview() >= 0 && vsnode->get_output_port_type(vsnode->get_output_port_for_preview()) != VisualShaderNode::PORT_TYPE_TRANSFORM) {
VisualShaderNodePortPreview *port_preview = memnew(VisualShaderNodePortPreview);
port_preview->setup(visual_shader, type, nodes[n_i], vsnode->get_output_port_for_preview());
port_preview->set_h_size_flags(SIZE_SHRINK_CENTER);