Skip to content

Commit

Permalink
Fix bug where water conveyors set COLPOLY_IS_FLOOR_CONVEYOR (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
CDi-Fails authored Mar 4, 2025
1 parent 3f476df commit 095696f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fast64_internal/oot/exporter/collision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def getCollisionData(dataHolder: Optional[Object], transform: Matrix, useMacros:
colProp.ignoreCameraCollision,
colProp.ignoreActorCollision,
colProp.ignoreProjectileCollision,
useConveyor,
colProp.conveyorOption == "Land",
normal,
distance,
useMacros,
Expand Down
4 changes: 2 additions & 2 deletions fast64_internal/oot/exporter/collision/polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CollisionPoly:
ignoreCamera: bool
ignoreEntity: bool
ignoreProjectile: bool
enableConveyor: bool
isLandConveyor: bool
normal: Vector
dist: int
useMacros: bool
Expand Down Expand Up @@ -42,7 +42,7 @@ def getFlags_vIB(self):
"""Returns the value of ``flags_vIB``"""

vtxId = self.indices[1] & 0x1FFF
if self.enableConveyor:
if self.isLandConveyor:
flags = "COLPOLY_IS_FLOOR_CONVEYOR" if self.useMacros else "(1 << 0)"
else:
flags = "COLPOLY_IGNORE_NONE" if self.useMacros else "0"
Expand Down

0 comments on commit 095696f

Please # to comment.