Skip to content

Commit

Permalink
Fix an assertion in voxel_synthesis_rule_baker
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Aug 31, 2024
1 parent 31824c1 commit ef160ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tools/voxel_synthesis_rule_baker/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ BONSAI_API_MAIN_THREAD_INIT_CALLBACK()

asset *Asset = MaybeAsset.Value;
Asset->LoadState = AssetLoadState_Loaded;
Asset->Type = AssetType_Models;
Asset->Models.Start = Model;
Asset->Models.Count = 1;

Expand All @@ -827,6 +828,7 @@ BONSAI_API_MAIN_THREAD_INIT_CALLBACK()
{
asset *Asset = MaybeAsset.Value;
Asset->LoadState = AssetLoadState_Loaded;
Asset->Type = AssetType_Models;

model *Model = Allocate(model, Resources->GameMemory, 1);
untextured_3d_geometry_buffer *Mesh = AllocateTempMesh(Resources->GameMemory, DataType_v3);
Expand Down

0 comments on commit ef160ad

Please sign in to comment.