Browse Source

Merge pull request #343 from Hoikas/fix_wind_object

Fix potential wind object gotcha.
pull/351/head
Adam Johnson 2 years ago committed by GitHub
parent
commit
21a78d804f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      korman/properties/modifiers/water.py

2
korman/properties/modifiers/water.py

@ -243,7 +243,7 @@ class PlasmaWaterModifier(idprops.IDPropMixin, PlasmaModifierProperties, bpy.typ
def export(self, exporter, bo, so):
waveset = exporter.mgr.find_create_object(plWaveSet7, name=bo.name, so=so)
if self.wind_object:
if self.wind_object.plasma_object.enabled and self.wind_object.plasma_modifiers.animation.enabled:
if exporter.has_coordiface(self.wind_object):
waveset.refObj = exporter.mgr.find_create_key(plSceneObject, bl=self.wind_object)
waveset.setFlag(plWaveSet7.kHasRefObject, True)

Loading…
Cancel
Save