Hi @caroline
In the 09-scene-graph Model.swift, the code in the override func update(deltaTime: Float) is duplicate, Iβm wondering if there is any reason for it?
for mesh in meshes
{
if let animationClip = currentAnimation // π
{
mesh.skeleton?.updatePose(animationClip:animationClip, at:currentTime) // π
mesh.transform?.currentTransform = .identity()
}
else
{
if let animationClip = currentAnimation // π, this code cannot run, since we are in the else state?
{
mesh.skeleton?.updatePose(animationClip:animationClip, at:currentTime) // π
}
mesh.transform?.setCurrentTransform(at: currentTime)
}
}
thx