Browse Source

Swim Surfaces don't have to be flat

pull/123/head
Adam Johnson 6 years ago
parent
commit
f94ef379d9
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 5
      korman/properties/modifiers/water.py

5
korman/properties/modifiers/water.py

@ -115,10 +115,7 @@ class PlasmaSwimRegion(idprops.IDPropObjectMixin, PlasmaModifierProperties, bpy.
if bo.plasma_modifiers.water_basic.enabled:
simIface, physical = exporter.physics.generate_flat_proxy(bo, so, bo.location[2], swim_phys_name)
else:
try:
simIface, physical = exporter.physics.generate_flat_proxy(bo, so, None, swim_phys_name)
except ExportAssertionError:
raise ExportError("Swimming Surface '{}' must be flat".format(bo.name))
simIface, physical = exporter.physics.generate_physical(bo, so, "trimesh", swim_phys_name)
physical.LOSDBs |= plSimDefs.kLOSDBSwimRegion
if exporter.mgr.getVer() != pvMoul:
physical.memberGroup = plSimDefs.kGroupLOSOnly

Loading…
Cancel
Save