Scene loading fixes

This commit is contained in:
Daniel Bross
2025-01-09 22:02:23 +01:00
parent 4d97d7bc39
commit 040a5fa23a
5 changed files with 21 additions and 4 deletions

View File

@@ -546,7 +546,7 @@ ui_figure_out_sizes :: () {
// Downwards-dependent
for *box : ui_state.boxes {
if box.semantic_size[0].size_kind == .CHILDREN_SUM {
assert(box.num_children != 0);
//assert(box.num_children != 0);
size : float = 0.0;
child := box.first_child;
@@ -564,7 +564,7 @@ ui_figure_out_sizes :: () {
box.size.x = size + box.padding_left + box.padding_right;
}
if box.semantic_size[1].size_kind == .CHILDREN_SUM {
assert(box.num_children != 0);
//assert(box.num_children != 0);
size : float = 0.0;
child := box.first_child;