def __init__(self):
self.export_all = False
self.collection = True
+ self.looping_threshold = 0.001
def export_to_file(self, context, out_fn):
if self.export_all:
def export_animation(self, context, action):
from .animation import create_animation_from_action
- anim = create_animation_from_action(context, action)
+ anim = create_animation_from_action(context, action, looping_threshold=self.looping_threshold)
from .datafile import Resource, Statement
resource = Resource(action.name+".anim")
resource.statements.append(st)
+ resource.statements.append(Statement("looping", anim.looping))
+
return resource