do not mark animations container as modified at runtime
this ensures that property inheritance works correctly for animations container
@@ -94,7 +94,7 @@ impl NodeTrait for AnimationPlayer {
fn restore_resources(&mut self, resource_manager: ResourceManager) {
self.base.restore_resources(resource_manager.clone());
- for animation in self.animations.iter_mut() {
+ for animation in self.animations.get_mut_silent().iter_mut() {
animation.restore_resources(resource_manager.clone());
}
}
@@ -104,8 +104,11 @@ impl NodeTrait for AnimationPlayer {
}
fn update(&mut self, context: &mut UpdateContext) -> bool {
- self.animations
- .update_animations(context.nodes, self.auto_apply, context.dt);
+ self.animations.get_mut_silent().update_animations(
+ context.nodes,
+ self.auto_apply,
+ context.dt,
+ );
self.base.update_lifetime(context.dt)
}
}
