Skip to content

Commit

Permalink
Remove an annoying assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Aug 31, 2024
1 parent 04e9d6e commit bcf989d
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 34 deletions.
2 changes: 1 addition & 1 deletion generated/block_array_standing_spot_688853862.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.h:462:0
// src/engine/world_chunk.h:460:0

struct standing_spot_block
{
Expand Down
2 changes: 1 addition & 1 deletion generated/buffer_standing_spot.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.h:505:0
// src/engine/world_chunk.h:503:0

struct standing_spot_buffer
{
Expand Down
8 changes: 0 additions & 8 deletions generated/for_datatypes_0XxWqGSZ.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,6 @@ WorkQueueEntryAsyncFunction( render_to_texture_async_params *Params )














Expand Down
8 changes: 0 additions & 8 deletions generated/for_datatypes_fkubhsYl.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,14 +609,6 @@ render_to_texture_async_params render_to_texture_async_params;














Expand Down
8 changes: 0 additions & 8 deletions generated/for_datatypes_kv3WBTai.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,14 +609,6 @@ type_render_to_texture_async_params,














Expand Down
2 changes: 1 addition & 1 deletion generated/generate_stream_compact_standing_spot.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.h:511:0
// src/engine/world_chunk.h:509:0

link_internal standing_spot_buffer
Compact(standing_spot_stream *Stream, memory_arena *PermMemory)
Expand Down
2 changes: 1 addition & 1 deletion generated/generate_stream_compact_v3i.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.cpp:3027:0
// src/engine/world_chunk.cpp:3025:0

link_internal v3i_buffer
Compact(v3i_stream *Stream, memory_arena *PermMemory)
Expand Down
2 changes: 1 addition & 1 deletion generated/generate_stream_standing_spot.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.h:508:0
// src/engine/world_chunk.h:506:0

struct standing_spot_stream_chunk
{
Expand Down
2 changes: 1 addition & 1 deletion generated/maybe_standing_spot.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.h:459:0
// src/engine/world_chunk.h:457:0

struct maybe_standing_spot
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.cpp:2058:0
// src/engine/world_chunk.cpp:2056:0

link_internal void
BuildWorldChunkMeshFromMarkedVoxels_Greedy_v3( voxel *Voxels,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/world_chunk.cpp:2061:0
// src/engine/world_chunk.cpp:2059:0

link_internal void
BuildWorldChunkMeshFromMarkedVoxels_Greedy_v3_u8( voxel *Voxels,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/bonsai.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ SetFlag( u8 *Flags, voxel_flag Flag )
inline void
SetFlag( chunk_flag *Flags, chunk_flag Flag )
{
Assert( (*Flags & Flag) == 0);
/* Assert( (*Flags & Flag) == 0); */ // NOTE(Jesse): This should probably be in, but it's annoying ..
*Flags = (chunk_flag)(*Flags | Flag);
return;
}
Expand Down
3 changes: 2 additions & 1 deletion src/engine/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,8 @@ BrushSettingsForLayeredBrush(engine_resources *Engine, window_layout *BrushSetti
RebuildWorldChunkMesh(Thread, Chunk, {}, Chunk->Dim, MeshBit_Lod0, TempMesh, Thread->TempMemory);
}

FinalizeChunkInitialization(Root_LayeredBrushPreview); // TODO(Jesse): @duplicate_finalize_chunk_init
//NOTE(Jesse): Not sure what this was for..
/* FinalizeChunkInitialization(Root_LayeredBrushPreview); // TODO(Jesse): @duplicate_finalize_chunk_init */

Editor->RootChunkNeedsNewMesh = False;
Editor->NextSelectionRegionMin = Editor->MostRecentSelectionRegionMin;
Expand Down

0 comments on commit bcf989d

Please sign in to comment.