X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gen.c;h=51d0302badbeba28a6a7a7d5581f6b426df0348a;hb=1e7fe72948f9f6f93639f5d003522ce3afa24409;hp=7d3cc81dc30be79cdfd4c68df8d13e2b5d1e9e05;hpb=2c91a71533b4ce86b9e7fd708420ae05c74d8f52;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gen.c b/world_gen.c index 7d3cc81..51d0302 100644 --- a/world_gen.c +++ b/world_gen.c @@ -300,6 +300,17 @@ static void world_gen_generate_meshes( world_instance *world ){ } } + /* unpack prop models */ + for( u32 i=0; ient_prop ); i++ ){ + ent_prop *prop = mdl_arritm( &world->ent_prop, i ); + + for( u32 j=0; jsubmesh_count; j ++ ){ + mdl_submesh *sm = mdl_arritm( &world->meta.submeshs, + prop->submesh_start+j ); + world_unpack_submesh_dynamic( world, &world->scene_no_collide, sm ); + } + } + vg_async_dispatch( call, async_scene_upload ); }