From f94ef379d9fccf64e6eac82eb7570b1a60d212a1 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 10 Sep 2018 20:56:00 -0400 Subject: [PATCH] Swim Surfaces don't have to be flat --- korman/properties/modifiers/water.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/korman/properties/modifiers/water.py b/korman/properties/modifiers/water.py index 28f7749..9920e77 100644 --- a/korman/properties/modifiers/water.py +++ b/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