Scene loading fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user