mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 16:28:21 +03:00
opr: All meshes are selected by default
This commit is contained in:
+4
-1
@@ -487,7 +487,10 @@ struct amt_material *amt_find_material(struct amt *amt, const char *name)
|
||||
|
||||
void opr_load(uint8_t *data, size_t size, struct pol *pol)
|
||||
{
|
||||
bool *selected = xcalloc(pol->nr_meshes, sizeof(bool));
|
||||
bool *selected = xmalloc(pol->nr_meshes * sizeof(bool));
|
||||
for (int i = 0; i < pol->nr_meshes; i++) {
|
||||
selected[i] = !!pol->meshes[i];
|
||||
}
|
||||
while (size > 0) {
|
||||
char line[200];
|
||||
uint8_t *nl = memchr(data, '\n', size);
|
||||
|
||||
Reference in New Issue
Block a user