From 1df6677248dff9790312f2b5319dc2667256daa6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 1 Jul 2022 09:51:00 -0400 Subject: [PATCH] Fix potential wind object gotcha. If a wind object is *not* animated but rather moved via logic nodes (eg a Python script), then the previous logic wouldn't allow for the in-game wind direction to change. It's important to check if the wind object has a coordinate interface (can it move?) instead of if it's animated (did the artist move it?). --- korman/properties/modifiers/water.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/properties/modifiers/water.py b/korman/properties/modifiers/water.py index 51e50e8..ccaa2f7 100644 --- a/korman/properties/modifiers/water.py +++ b/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)