Browse Source

Separate ATC and AgeGlobal in Props

Separates ATC and AgeGlobal animtaions so we don't get any doubles between the two. Also, AgeGlobal doesn't need auto start and loop values as it does that automatically.
pull/219/head
Patrick Dulebohn 4 years ago
parent
commit
c5552f890c
  1. 6
      korman/properties/modifiers/anim.py

6
korman/properties/modifiers/anim.py

@ -67,11 +67,15 @@ class PlasmaAnimationModifier(ActionModifier, PlasmaModifierProperties):
def export(self, exporter, bo, so): def export(self, exporter, bo, so):
action = self.blender_action action = self.blender_action
anim_data = bo.plasma_modifiers.animation
if anim_data.obj_sdl_anim:
atcanim = exporter.mgr.find_create_object(plAgeGlobalAnim, so=so)
else:
atcanim = exporter.mgr.find_create_object(plATCAnim, so=so) atcanim = exporter.mgr.find_create_object(plATCAnim, so=so)
atcanim.autoStart = self.auto_start atcanim.autoStart = self.auto_start
atcanim.loop = self.loop atcanim.loop = self.loop
# Simple start and loop info # Simple start and loop info for ATC
if action is not None: if action is not None:
markers = action.pose_markers markers = action.pose_markers
initial_marker = markers.get(self.initial_marker) initial_marker = markers.get(self.initial_marker)

Loading…
Cancel
Save