From 4341159fe38f4d30cd6121514688c381906e27d7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 16 Jul 2015 14:26:42 -0400 Subject: [PATCH] Expose wavesets to PFMs --- korman/nodes/node_python.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/korman/nodes/node_python.py b/korman/nodes/node_python.py index a46ade6..eee490d 100644 --- a/korman/nodes/node_python.py +++ b/korman/nodes/node_python.py @@ -423,7 +423,8 @@ class PlasmaAttribObjectNode(PlasmaAttribNodeBase, bpy.types.Node): bl_idname = "PlasmaAttribObjectNode" bl_label = "Object Attribute" - pl_attrib = ("ptAttribSceneobject", "ptAttribSceneobjectList", "ptAttribAnimation") + pl_attrib = ("ptAttribSceneobject", "ptAttribSceneobjectList", "ptAttribAnimation", + "ptAttribWaveSet") object_name = StringProperty(name="Object", description="Object containing the required data") @@ -456,6 +457,11 @@ class PlasmaAttribObjectNode(PlasmaAttribNodeBase, bpy.types.Node): agmod = exporter.mgr.find_create_key(plAGModifier, so=ref_so, name=anim.display_name) agmaster = exporter.mgr.find_create_key(plAGMasterModifier, so=ref_so, name=anim.display_name) return agmaster + elif attrib == "ptAttribWaveSet": + waveset = bo.plasma_modifiers.water_basic + if not waveset.enabled: + self.raise_error("water modifier not enabled on '{}'".format(self.object_name)) + return exporter.mgr.find_create_key(plWaveSet7, so=ref_so, bl=bo) class PlasmaAttribStringNode(PlasmaAttribNodeBase, bpy.types.Node):