X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=scene.h;h=c53c7b3c3c383f8198a1877a3c19965d3fce3c9c;hb=44459e0aa734b6a090d60a309e29a9a2a232c731;hp=027f4bded5c3bd6b8dc9f2b9f1ed038a15b3ab2b;hpb=b4a83d4fcab39bee5a8cd6e8e6eec06314864e5b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index 027f4bd..c53c7b3 100644 --- a/scene.h +++ b/scene.h @@ -110,8 +110,8 @@ VG_STATIC void scene_add_mdl_submesh( scene_context *ctx, mdl_context *mdl, /* Transform and place vertices */ boxf bbxnew; - box_copy( sm->bbx, bbxnew ); - m4x3_transform_aabb( transform, bbxnew ); + box_init_inf( bbxnew ); + m4x3_expand_aabb_aabb( transform, bbxnew, sm->bbx ); box_concat( ctx->bbx, bbxnew ); m3x3f normal_matrix;