Skip to content

Commit

Permalink
Fix UnboundLocalError in the hull->tri override for regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Sep 20, 2023
1 parent fdd46f3 commit 11e8b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion korman/exporter/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ def generate_physical(self, bo, so, **kwargs):
- report_groups: sequence of str bit names from plSimDefs
- collide_groups: sequence of str bit names from plSimDefs
"""
ver = self._mgr.getVer()
if so.sim is None:
simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo)
physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo)
ver = self._mgr.getVer()

simIface.physical = physical.key
physical.object = so.key
Expand Down

0 comments on commit 11e8b2b

Please sign in to comment.