Skip to content

Commit

Permalink
Fix a couple edge cases with 1-voxel selections in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Sep 1, 2024
1 parent adb4c0a commit 81955d9
Show file tree
Hide file tree
Showing 58 changed files with 866 additions and 104 deletions.
2 changes: 1 addition & 1 deletion generated/are_equal_brush_settings.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:891:0
// src/engine/editor.h:903:0

link_internal b32
AreEqual(brush_settings *Thing1, brush_settings *Thing2)
Expand Down
2 changes: 1 addition & 1 deletion generated/are_equal_perlin_noise_params.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:657:0
// src/engine/editor.h:669:0

link_internal b32
AreEqual(perlin_noise_params *Thing1, perlin_noise_params *Thing2)
Expand Down
2 changes: 1 addition & 1 deletion generated/block_array_h_asset_thumbnail_688856411.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:506:0
// src/engine/editor.h:518:0

struct asset_thumbnail_block
{
Expand Down
2 changes: 1 addition & 1 deletion generated/default_marshal_brush_settings_0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:949:0
// src/engine/editor.h:961:0

Live->Type = Stored->Type;

Expand Down
2 changes: 1 addition & 1 deletion generated/default_marshal_brush_settings_1.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:942:0
// src/engine/editor.h:954:0

Live->Type = Stored->Type;

Expand Down
2 changes: 1 addition & 1 deletion generated/default_marshal_layered_brush_editor_0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:1015:0
// src/engine/editor.h:1027:0

Live->LayerCount = Stored->LayerCount;

Expand Down
2 changes: 1 addition & 1 deletion generated/default_marshal_layered_brush_editor_1.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:1008:0
// src/engine/editor.h:1020:0

RangeIterator(Index, (256))
{
Expand Down
2 changes: 1 addition & 1 deletion generated/default_marshal_noise_layer_0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// src/engine/editor.h:848:0
// src/engine/editor.h:860:0

Live->Type = Stored->Type;

Expand Down
15 changes: 15 additions & 0 deletions generated/do_editor_ui_for_compound_type_brush_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,21 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, brush_settings *Element, cs N



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3i*,&Element->NoiseBasisOffset),
CSz("NoiseBasisOffset"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down
60 changes: 60 additions & 0 deletions generated/do_editor_ui_for_compound_type_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, camera *Element, cs Name, ui_



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->RenderSpacePosition),
CSz("RenderSpacePosition"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down Expand Up @@ -200,6 +215,51 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, camera *Element, cs Name, ui_

PushNewRow(Ui);

DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->Front),
CSz("Front"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->Right),
CSz("Right"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->Up),
CSz("Up"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down
15 changes: 15 additions & 0 deletions generated/do_editor_ui_for_compound_type_chunk_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, chunk_data *Element, cs Name,



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3i*,&Element->Dim),
CSz("Dim"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down
30 changes: 30 additions & 0 deletions generated/do_editor_ui_for_compound_type_entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ DoEditorUi_entity_P(Ui, Window, Element, CSz("cp P"), EDITOR_UI_FUNCTION_INSTANC



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->EulerAngles),
CSz("EulerAngles"),
Params
,-PI32, PI32 );








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand All @@ -63,6 +78,21 @@ DoEditorUi_entity_P(Ui, Window, Element, CSz("cp P"), EDITOR_UI_FUNCTION_INSTANC

PushNewRow(Ui);

DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->_CollisionVolumeRadius),
CSz("_CollisionVolumeRadius"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down
23 changes: 22 additions & 1 deletion generated/do_editor_ui_for_compound_type_entity_position_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, entity_position_info *Element



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->_CollisionVolumeRadius),
CSz("_CollisionVolumeRadius"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand All @@ -57,7 +72,13 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, entity_position_info *Element

PushNewRow(Ui);


DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->EulerAngles),
CSz("EulerAngles"),
Params
);
if (DidToggle) { CLOSE_INDENT_FOR_TOGGLEABLE_REGION(); }
PushTableEnd(Ui);
}
Expand Down
45 changes: 45 additions & 0 deletions generated/do_editor_ui_for_compound_type_graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, graphics *Element, cs Name, u



DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->SunBasis),
CSz("SunBasis"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand All @@ -83,6 +98,36 @@ DoEditorUi(renderer_2d *Ui, window_layout *Window, graphics *Element, cs Name, u

PushNewRow(Ui);

DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->FogColor),
CSz("FogColor"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Cast(v3*,&Element->SkyColor),
CSz("SkyColor"),
Params
);








DoEditorUi(Ui,
Window,
// Cast to remove const/volatile keywords if they're there
Expand Down
Loading

0 comments on commit 81955d9

Please sign in to comment.