Browse Source

Fix `UnboundLocalError` in the hull->tri override for regions.

pull/214/merge
Adam Johnson 7 months ago
parent
commit
11e8b2b7de
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/exporter/physics.py

2
korman/exporter/physics.py

@ -144,10 +144,10 @@ class PhysicsConverter:
- 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

Loading…
Cancel
Save