Skip to content

artboard.defaultStateMachine & artboard.defaultStateMachineId are empty #424

@asaworld

Description

@asaworld

Description

Using Windows Rive app Beta 0.8.1928 and flutter rive 0.13.14. I load the .riv file using:

RiveAnimation.direct(
      imported_file.riv
      artboard: "artboard",
      onInit: (Artboard artboard) {
            _logger.info(artboard.defaultStateMachine); // null
            _logger.info(artboard.defaultStateMachineId); // 0
      }
    );

Even though the default (any only) statemachine for this artboard is checked as default in the UI.
image
I can easily load this state machine using

StateMachineController.fromArtboard(artboard, "Default");

Device & Versions (please complete the following information)

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (3 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions