paint: ensure udims are present
This commit is contained in:
@@ -17,6 +17,7 @@ void import_obj_parse(buffer_t *b, bool replace_existing) {
|
||||
char *name = part->name;
|
||||
u32_array_t *inda_full = part->inda;
|
||||
bool first = true;
|
||||
if (part->udims != NULL) {
|
||||
for (i32 i = 0; i < part->udims->length; ++i) {
|
||||
u32_array_t *a = part->udims->buffer[i];
|
||||
if (a->length == 0) {
|
||||
@@ -54,6 +55,7 @@ void import_obj_parse(buffer_t *b, bool replace_existing) {
|
||||
free(name);
|
||||
free(part);
|
||||
}
|
||||
}
|
||||
else {
|
||||
raw_mesh_t_array_t *parts = any_array_create_from_raw((void *[]){}, 0);
|
||||
raw_mesh_t_array_t *discarded = any_array_create_from_raw((void *[]){}, 0);
|
||||
|
||||
Reference in New Issue
Block a user