Skip to content

Error in AnimateLibraryExporter when compiled to Windows target #21

@twilson90

Description

@twilson90

I thought I'd try compiling the swf lib to Windows for a slight speed up, I encountered this error:

Error: AnimateLibraryExporter.cpp
./src/swf/exporters/AnimateLibraryExporter.cpp(1582): error C2664: 'hx::ObjectPtr<lime::tools::Asset_obj> lime::tools::Asset_obj::__alloc(hx::Ctx *,String,String,lime::tools::AssetType,Dynamic,hx::Null<bool>)': cannot convert argument 4 from 'String' to 'lime::tools::AssetType'
./src/swf/exporters/AnimateLibraryExporter.cpp(1582): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called  
include\lime/tools/Asset.h(32): note: see declaration of 'lime::tools::Asset_obj::__alloc'

It's having trouble converting openfl.utils.AssetType to lime.tools.AssetType, which is confusing as the cast appears to be working on Neko and Hashlink targets.

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