From ce2d393099c54ecdb08f9210bf37a8bf5b36d5dd Mon Sep 17 00:00:00 2001 From: jb Date: Thu, 18 Feb 2016 22:03:26 +0100 Subject: [PATCH] Move make_physical_movable and make it private --- korman/properties/modifiers/anim.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/korman/properties/modifiers/anim.py b/korman/properties/modifiers/anim.py index dbd4690..556d693 100644 --- a/korman/properties/modifiers/anim.py +++ b/korman/properties/modifiers/anim.py @@ -130,12 +130,8 @@ class PlasmaAnimationModifier(PlasmaModifierProperties): @property def key_name(self): return "{}_(Entire Animation)".format(self.id_data.name) - - def post_export(self, exporter, bo, so): - # If this object has a physical, we need to tell the simulation iface that it can be animated - self.make_physical_movable(so) - def make_physical_movable(self, so): + def __make_physical_movable(self, so): sim = so.sim if sim is not None: sim = sim.object @@ -155,6 +151,10 @@ class PlasmaAnimationModifier(PlasmaModifierProperties): for child in so.coord.object.children: self.make_physical_movable(child.object) + def post_export(self, exporter, bo, so): + # If this object has a physical, we need to tell the simulation iface that it can be animated + self.__make_physical_movable(so) + class AnimGroupObject(bpy.types.PropertyGroup): object_name = StringProperty(name="Child",