Skip to content

Commit

Permalink
Merge pull request godotengine#28372 from Chaosus/fix_vs_transform_pr…
Browse files Browse the repository at this point in the history
…eview2

Removes preview from existing transform nodes in visual shader
  • Loading branch information
Chaosus authored Apr 24, 2019
2 parents 80f91c9 + 9ac770b commit 6cf7cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6cf7cfa

Please sign in to comment.