Skip to content

Missing initializer for anim_state in timeline.tsx #1017

@lylezumbrun

Description

@lylezumbrun

Generated code for anim struct is:
static struct {
float last_timeline_position;
int32_t obj_obj1_y_init_value;
} anim_state = { -1 };

This causes compiler error: missing initializer for field 'obj_obj1_y_init_value' of 'struct

Should be:

    static struct {
        float last_timeline_position;
        int32_t obj_obj1_y_init_value;
    } anim_state = { -1,0 };

So that int32_t obj_obj1_y_init_value is initialized.

In timeline.tsx file:

Modify line 3332
build.line(} anim_state = { -1 };);
to build.line(} anim_state = { -1,0 };);

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions