Browse Source

Move make_physical_movable and make it private

pull/28/head
jb 9 years ago
parent
commit
ce2d393099
  1. 10
      korman/properties/modifiers/anim.py

10
korman/properties/modifiers/anim.py

@ -131,11 +131,7 @@ class PlasmaAnimationModifier(PlasmaModifierProperties):
def key_name(self): def key_name(self):
return "{}_(Entire Animation)".format(self.id_data.name) return "{}_(Entire Animation)".format(self.id_data.name)
def post_export(self, exporter, bo, so): def __make_physical_movable(self, 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):
sim = so.sim sim = so.sim
if sim is not None: if sim is not None:
sim = sim.object sim = sim.object
@ -155,6 +151,10 @@ class PlasmaAnimationModifier(PlasmaModifierProperties):
for child in so.coord.object.children: for child in so.coord.object.children:
self.make_physical_movable(child.object) 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): class AnimGroupObject(bpy.types.PropertyGroup):
object_name = StringProperty(name="Child", object_name = StringProperty(name="Child",

Loading…
Cancel
Save