Skip to content

Assets not loading from object #11

@emilsedgh

Description

@emilsedgh

Using editor.constructFromObject to populate a whole editor fails on Assets.

From what I'm seeing here, this fails because at here, it's obvious that Asset can't really populate from an object.

It appears that for each asset, there is a different model defined, like LumaAsset or TitleAsset.

But the Clip model doesn't really distribute the asset to any of them. Instead it goes directly to Asset model, which does nothing.

I think Asset.constructFromObject should be able to see the type, and based on that, invoke another model.

I would normally provide a pull request, but this is all auto-generated so I have no idea how to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions