Skip to content

3DViewer fails to cast NumberTangentInterpolator #6

@omega09

Description

@omega09

In the 3DViewer sample, exporting a .ma model as .java fails due to a bad cast attempt.

In the file JavaSourceExporter, in the method private String toString(Interpolator interpolator) , there is a check if (interpolator instanceof NumberTangentInterpolator). However, the right side of the instanceof is com.javafx.experiments.utils3d.animation.NumberTangentInterpolator. The argument for the method is com.sun.scenario.animation.NumberTangentInterpolator. This causes the method to throw an UnsupportedOperationException even though the code for the classes is the same.

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