Animations with a name ending in _loop will be exported with loop=true. Fixes #161.
@@ -489,6 +489,7 @@ class AnimationResource(InternalResource):
super().__init__('Animation', name)
self['step'] = 0.1
self['length'] = 0
+ self['loop'] = name.endswith("_loop")
# helper attributes, not exported to ESCN
self.tracks = collections.OrderedDict()
@@ -5,6 +5,7 @@
resource_name = "ArmatureAction001"
step = 0.1
length = 3.29167
+loop = false
tracks/0/type = "transform"
tracks/0/path = NodePath(".:Bone.002")
tracks/0/interp = 1
@@ -24,6 +24,7 @@ surfaces/0 = {
resource_name = "CubeAction"
length = 5.95833
tracks/0/path = NodePath(".:")
length = 7.04167
resource_name = "Cube001Action"
length = 0.791667
@@ -53,6 +54,7 @@ surfaces/0 = {
@@ -34,6 +34,7 @@ points = PoolVector3Array(1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0
resource_name = "Cube003Action001"
length = 1.0
resource_name = "ArmatureAction"
length = 2.45833
tracks/0/path = NodePath(".:Bone")
resource_name = "EmptyAction001"
length = 3.75
@@ -15,6 +16,7 @@ tracks/0/keys = [0.291667, 1.0, 0.0191494, 2.43195, 0.42693, 0.0, 0.0, 0.0, 1.0,
length = 7.83333
tracks/0/path = NodePath(".:Bone.001")
tracks/0/path = NodePath(".:bone")
resource_name = "Armature001Action"
length = 4.125
tracks/0/path = NodePath(".:Bone.003")
@@ -42,6 +43,7 @@ surfaces/0 = {
length = 4.16667
resource_name = "CameraAction"
length = 2.875
tracks/0/type = "value"
tracks/0/path = NodePath(".:far")
resource_name = "SunAction001"
length = 4.58333
tracks/0/path = NodePath(".:light_energy")
resource_name = "Spot003Action001"
length = 1.66667
tracks/0/path = NodePath(".:spot_range")
@@ -20,6 +21,7 @@ tracks/0/keys = {
resource_name = "SpotTransformChangeAction"
@@ -49,6 +51,7 @@ surfaces/0 = {
resource_name = "Spot001Action001"
length = 1.91667
tracks/0/path = NodePath(".:shadow_enabled")
tracks/0/interp = 0
@@ -92,6 +95,7 @@ surfaces/0 = {
resource_name = "SpotAction"
tracks/0/path = NodePath(".:spot_angle")
@@ -107,6 +111,7 @@ tracks/0/keys = {
resource_name = "LampAction001"
length = 1.25
tracks/0/path = NodePath(".:light_color")
length = 3.79167
resource_name = "CubeAction001"
length = 1.625
resource_name = "SuzanneAction001"
length = 1.16667
@@ -47,6 +47,7 @@ surfaces/0 = {
resource_name = "KeyAction"
length = 2.04167
tracks/0/path = NodePath(".:blend_shapes/Key 1")
resource_name = "SuzanneAction002"
length = 1.20833
@@ -34,6 +35,7 @@ tracks/0/keys = [0.0, 1.0, 0.826642, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0
resource_name = "SuzanneAction"
tracks/0/path = NodePath("Cube:")
@@ -36,6 +36,7 @@ surfaces/0 = {
resource_name = "Key002Action"
@@ -51,6 +52,7 @@ tracks/0/keys = {