mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Makes Texture and TextureUniform in visual shaders to use UV by default
This commit is contained in:
parent
c9781df316
commit
b11d15d5c3
5 changed files with 57 additions and 15 deletions
|
@ -665,6 +665,15 @@ void VisualShaderEditor::_update_graph() {
|
|||
label->set_text(name_left);
|
||||
label->add_style_override("normal", label_style); //more compact
|
||||
hb->add_child(label);
|
||||
|
||||
if (vsnode->get_input_port_default_hint(i) != "" && !port_left_used) {
|
||||
|
||||
Label *hint_label = memnew(Label);
|
||||
hint_label->set_text("[" + vsnode->get_input_port_default_hint(i) + "]");
|
||||
hint_label->add_color_override("font_color", get_color("font_color_readonly", "TextEdit"));
|
||||
hint_label->add_style_override("normal", label_style);
|
||||
hb->add_child(hint_label);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue