paint: fix group node buttons

This commit is contained in:
luboslenco
2026-04-08 11:31:01 +02:00
parent 87ac7e50b2
commit 1d7d25ee48
+2 -2
View File
@@ -47,7 +47,7 @@ void nodes_material_new_group_button(i32 node_id) {
.outputs = any_array_create_from_raw((void *[]){}, 0),
.buttons = any_array_create_from_raw(
(void *[]){
GC_ALLOC_INIT(ui_node_button_t, {.name = "nodes_material_group_input_button", .type = "CUSTOM", .height = 1}),
GC_ALLOC_INIT(ui_node_button_t, {.name = "nodes_material_group_input_button", .type = "CUSTOM", .height = 1, .output = -1, .default_value = f32_array_create_x(0.0) }),
},
1),
.width = 0,
@@ -63,7 +63,7 @@ void nodes_material_new_group_button(i32 node_id) {
.outputs = any_array_create_from_raw((void *[]){}, 0),
.buttons = any_array_create_from_raw(
(void *[]){
GC_ALLOC_INIT(ui_node_button_t, {.name = "nodes_material_group_output_button", .type = "CUSTOM", .height = 1}),
GC_ALLOC_INIT(ui_node_button_t, {.name = "nodes_material_group_output_button", .type = "CUSTOM", .height = 1, .output = -1, .default_value = f32_array_create_x(0.0) }),
},
1),
.width = 0,