You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MotionEvent class implements Control and could therefore be included in a model asset. It also contains a mutable MotionPath field, which gets serialized and de-serialized. And MotionPath contains a mutable Spline field, which gets serialized and de-serialized.
The usual use case for deserialization is to load scene-graph assets. Scene graphs are "smart assets" that get cached on first load. Subsequent loads are supposed to yield deep clones of the cached assets.
MotionPath and Spline are mutable objects; they ought to be replicated in any deep clone. However, path field isn't cloned in MotionEvent.cloneFields(), probably because MotionPath isn't cloneable. And MotionPath can't be cloned because Spline isn't cloneable.
MotionPath and Spline should implement the JmeCloneable interface, and MotionEvent.cloneFields() should clone the path field.
The text was updated successfully, but these errors were encountered:
The
MotionEvent
class implementsControl
and could therefore be included in a model asset. It also contains a mutableMotionPath
field, which gets serialized and de-serialized. AndMotionPath
contains a mutableSpline
field, which gets serialized and de-serialized.The usual use case for deserialization is to load scene-graph assets. Scene graphs are "smart assets" that get cached on first load. Subsequent loads are supposed to yield deep clones of the cached assets.
MotionPath
andSpline
are mutable objects; they ought to be replicated in any deep clone. However,path
field isn't cloned inMotionEvent.cloneFields()
, probably becauseMotionPath
isn't cloneable. AndMotionPath
can't be cloned becauseSpline
isn't cloneable.MotionPath
andSpline
should implement theJmeCloneable
interface, andMotionEvent.cloneFields()
should clone thepath
field.The text was updated successfully, but these errors were encountered: