Skip to content

MorphControl doesn't override cloneFields(), jmeClone(), read(), nor write() #1548

@stephengold

Description

@stephengold

As was pointed out at the Forum, the MorphControl class supposedly implements JmeCloneable and Savable, yet none of the relevant methods are overridden.

https://hub.jmonkeyengine.org/t/issue-with-multiple-models-and-morph-animations/44598

Obviously this makes it impossible to load a MorphControl from assets.

Also, the OP reported that after cloning a model with a MorphControl, the clone and the original morphed in synchrony.

In my own tests, cloning a model with a MorphControl resulted in a crash:

RendererException: Cannot recompile shader source

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions