Skip to content

Commit

Permalink
Fix bool node button
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Sep 14, 2024
1 parent c438f24 commit 7d0abee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/iron_ui_nodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,9 @@ void ui_draw_node(ui_node_t *node, ui_node_canvas_t *canvas) {
current->_w = w;
ui_handle_t *h = ui_nest(nhandle, buti);
if (h->init) {
h->selected = ((uint8_t *)but->default_value->buffer)[0];
h->selected = ((float *)but->default_value->buffer)[0];
}
((uint8_t *)but->default_value->buffer)[0] = ui_check(h, ui_tr(but->name), "");
((float *)but->default_value->buffer)[0] = ui_check(h, ui_tr(but->name), "");
}
else if (strcmp(but->type, "CUSTOM") == 0) { // Calls external function for custom button drawing
ny += lineh;
Expand Down

0 comments on commit 7d0abee

Please sign in to comment.