We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9820d1b commit 725a184Copy full SHA for 725a184
1 file changed
src/engine.zig
@@ -3230,6 +3230,10 @@ pub const Display = struct {
3230
/// Add an animator that points to a currently active/valid element.
3231
/// The element must not be destroyed for the lifetime of the animation.
3232
pub inline fn add_animator(self: *Display, animator: Animator) error{OutOfMemory}!void {
3233
+ if (animator.target == null) {
3234
+ err("add_animator called with without target", .{});
3235
+ return;
3236
+ }
3237
var new_animator = try self.allocator.create(Animator);
3238
new_animator.* = animator;
3239
new_animator.setup = false;
0 commit comments