Physics improvements
This commit is contained in:
@@ -384,9 +384,7 @@ parse_fbx_node :: (model: *Model, fbx_node: *ufbx_node) {
|
||||
// }
|
||||
//}
|
||||
|
||||
array_add(*node.meshes, parray_add(*engine.renderer.meshes, mesh));struct {
|
||||
path: string;
|
||||
}
|
||||
array_add(*node.meshes, parray_add(*engine.renderer.meshes, mesh));
|
||||
array_add(*node.material_defaults, model.materials[mesh_mat.material.typed_id]); // @Incomplete
|
||||
}
|
||||
}
|
||||
@@ -673,7 +671,7 @@ load_fbx :: (path: string) -> Model_Handle, bool {
|
||||
get_or_load_model :: (path: string) -> Model_Handle {
|
||||
for * engine.renderer.model_lib {
|
||||
if it.path == path {
|
||||
return xx (it_index + 1);
|
||||
return cast(Model_Handle)(it_index + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user