question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Ali-RScommented, May 13, 2021

I’m on it 😃

1reaction
stephengoldcommented, May 13, 2021

Okay, @Ali-RS. It’s your turn now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does java.lang.Cloneable not override the clone ...
A class implements the Cloneable interface to indicate to the java.lang.Object#clone() method that it is legal for that method to make a field- ......
Read more >
How to Clone Objects with Mutable field in Java? Example ...
It is known as co-variant method overriding. This will prevent lot of type casting at client side. Unfortunately clone() method of java.util.Date is...
Read more >
Java-Override clone judiciously - Learn - Medium
The base class Object” has a “clone()” method. When a class implements “Cloneable”, the class gets the clone functionality that is supported in ......
Read more >
fields module — Whoosh 2.7.4 documentation
This class has several methods for converting between the field name, field number, and field object itself. All keyword arguments to the constructor...
Read more >
Java Inheritance Tutorial: explained with examples
Inheritance is the process of building a new class based on the features of another existing class. It is used heavily in Java,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found