Skip to content

Commit

Permalink
Implement shader generation for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometror committed Nov 18, 2024
1 parent f25f10b commit 9d3af3e
Show file tree
Hide file tree
Showing 5 changed files with 1,803 additions and 1,318 deletions.
4 changes: 2 additions & 2 deletions editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id, bool
// Add "Edit" button to group node titlebar.
Button *edit_group_btn = memnew(Button);
edit_group_btn->set_text(TTR("Edit"));
edit_group_btn->set_icon(editor->get_theme_icon("Edit", "EditorIcons"));
edit_group_btn->set_button_icon(editor->get_theme_icon("Edit", "EditorIcons"));
edit_group_btn->connect("pressed", callable_mp(editor, &VisualShaderEditor::_edit_group_in_graph).bind(p_id), CONNECT_DEFERRED);
titlebar->add_child(edit_group_btn);

Expand Down Expand Up @@ -2725,7 +2725,7 @@ void VisualShaderEditor::_update_parameter_refs(HashSet<String> &p_deleted_names
}

void VisualShaderEditor::_update_graph() {
if (editing_shader_graph == nullptr) {
if (editing_shader_graph.is_null()) {
return;
}

Expand Down
Loading

0 comments on commit 9d3af3e

Please sign in to comment.