unlockables basics
[carveJwlIkooP6JGAAIwe30JlM.git] / scene.h
diff --git a/scene.h b/scene.h
index 027f4bded5c3bd6b8dc9f2b9f1ed038a15b3ab2b..c53c7b3c3c383f8198a1877a3c19965d3fce3c9c 100644 (file)
--- 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;