Open devent opened 5 years ago
I familiarized myself with JMonkeyEngine for the last couple of weeks and I don't think that a MaterialList is used anywhere else.
Maybe we should just split the MaterialList into Material and load them separately?
Maybe you will elevate a MaterialList to be loaded by the asset manager? Something like assetManager.loadMaterialList()
and Geometry#setMaterialList()
.
Another ClassCastException. Code:
It finds all objects and loads the texture. DesktopAssetManager#loadLocatedAsset returns a MaterialList. The
obj = proc.postProcess(key, obj);
returns the same MaterialList. SeeThen
cache.addToCache(key, (T) obj)
is called with cache being WeakRefCloneAssetCache and obj being MaterialList. And then here we get the CCExCloneableSmartAsset asset = (CloneableSmartAsset) obj
because a MaterialList is not a CloneableSmartAsset.Error:
Version: 3.2.4-stable