Skip to content

Commit

Permalink
BEEmod/BEE2-items#4325: Set corridors to force upright even if vertic…
Browse files Browse the repository at this point in the history
…al corridors are not available.
  • Loading branch information
TeamSpen210 committed May 31, 2023
1 parent 772fd64 commit f135c72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* Fix potential z-fighting near the hinge of static angled panels.
* Add a scrollbar if required to the corridor selection window.
* Fix single-dot antlines sometimes failing to be placed.
* BEEmod/BEE2-items#4325: Set corridors to force upright even if vertical corridors are not available.

------------------------------------------

Expand Down
8 changes: 4 additions & 4 deletions src/packages/corridor.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def export(cls, exp_data: packages.ExportData) -> None:

# Change out all the instances in items to names following a pattern.
# This allows the compiler to easily recognise. Also force 64-64-64 offset.
# TODO: Need to ensure this happens after Item.export()!
for item in exp_data.all_items:
try:
(mode, direction) = ID_TO_CORR[item.id]
Expand All @@ -421,8 +422,7 @@ def export(cls, exp_data: packages.ExportData) -> None:
)
has_vert = True
if has_vert:
# Add a rotation handle and desired facing.
# Add a rotation handle.
item.handle = editoritems.Handle.QUAD
# Set desired facing so they move upright.
# Note unlock default items also does this!
item.facing = editoritems.DesiredFacing.UP
# Set desired facing to make them face upright, no matter what.
item.facing = editoritems.DesiredFacing.UP

0 comments on commit f135c72

Please # to comment.