|
|
|
@ -114,7 +114,7 @@ class PlasmaSwimRegion(idprops.IDPropObjectMixin, PlasmaModifierProperties, bpy.
|
|
|
|
|
losdbs = ["kLOSDBSwimRegion"] |
|
|
|
|
member_group = "kGroupLOSOnly" if exporter.mgr.getVer() != pvMoul else "kGroupStatic" |
|
|
|
|
if bo.plasma_modifiers.water_basic.enabled: |
|
|
|
|
exporter.physics.generate_flat_proxy(bo, so, z_coord=bo.location[2], |
|
|
|
|
exporter.physics.generate_flat_proxy(bo, so, z_coord=bo.matrix_world.translation[2], |
|
|
|
|
member_group=member_group, |
|
|
|
|
losdbs=losdbs) |
|
|
|
|
else: |
|
|
|
@ -258,7 +258,7 @@ class PlasmaWaterModifier(idprops.IDPropMixin, PlasmaModifierProperties, bpy.typ
|
|
|
|
|
# Stuff we expose |
|
|
|
|
state = waveset.state |
|
|
|
|
state.rippleScale = self.ripple_scale |
|
|
|
|
state.waterHeight = bo.location[2] |
|
|
|
|
state.waterHeight = bo.matrix_world.translation[2] |
|
|
|
|
state.windDir = wind_dir |
|
|
|
|
state.specVector = hsVector3(self.noise / 100.0, self.specular_start, self.specular_end) |
|
|
|
|
state.specularTint = hsColorRGBA(*self.specular_tint, alpha=self.specular_alpha) |
|
|
|
@ -273,7 +273,7 @@ class PlasmaWaterModifier(idprops.IDPropMixin, PlasmaModifierProperties, bpy.typ
|
|
|
|
|
state.envCenter = dem.position |
|
|
|
|
state.envRefresh = dem.refreshRate |
|
|
|
|
else: |
|
|
|
|
state.envCenter = hsVector3(*bo.location) |
|
|
|
|
state.envCenter = hsVector3(*bo.matrix_world.translation) |
|
|
|
|
state.envRefresh = 0.0 |
|
|
|
|
state.envRadius = self.envmap_radius |
|
|
|
|
|
|
|
|
|