Browse Source

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

pull/385/head
Adam Johnson 1 year 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 - report_groups: sequence of str bit names from plSimDefs
- collide_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: if so.sim is None:
simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo) simIface = self._mgr.add_object(pl=plSimulationInterface, bl=bo)
physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo) physical = self._mgr.add_object(pl=plGenericPhysical, bl=bo)
ver = self._mgr.getVer()
simIface.physical = physical.key simIface.physical = physical.key
physical.object = so.key physical.object = so.key

Loading…
Cancel
Save