Skip to content

Commit 69d87f0

Browse files
authored
Add autoAnimate related properties (#1038)
1 parent 86a4e94 commit 69d87f0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

3ds Max/Max2Babylon/Exporter/BabylonExporter.Mesh.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ private BabylonNode ExportMasterMesh(IIGameScene scene, IIGameNode meshNode, Bab
599599
if (animations.Count > 0)
600600
{
601601
babylonMorphTarget.animations = animations.ToArray();
602+
babylonMorphTarget.autoAnimate = true;
603+
babylonMorphTarget.autoAnimateLoop = true;
602604
}
603605
}
604606
}

SharedProjects/BabylonExport.Entities/BabylonMorphTarget.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,17 @@ public class BabylonMorphTarget
2525

2626
[DataMember(EmitDefaultValue = false)]
2727
public BabylonAnimation[] animations { get; set; }
28+
29+
[DataMember(EmitDefaultValue = false)]
30+
public bool autoAnimate { get; set; }
31+
32+
[DataMember(EmitDefaultValue = false)]
33+
public bool autoAnimateLoop { get; set; }
34+
35+
[DataMember(EmitDefaultValue = false)]
36+
public int? autoAnimateFrom { get; set; }
37+
38+
[DataMember(EmitDefaultValue = false)]
39+
public int? autoAnimateTo { get; set; }
2840
}
2941
}

0 commit comments

Comments
 (0)