|
|
|
@ -33,7 +33,6 @@ package com.jme3.asset.cache; |
|
|
|
|
|
|
|
|
|
import com.jme3.asset.AssetKey; |
|
|
|
|
import com.jme3.asset.CloneableSmartAsset; |
|
|
|
|
|
|
|
|
|
import java.lang.ref.PhantomReference; |
|
|
|
|
import java.lang.ref.ReferenceQueue; |
|
|
|
|
import java.lang.ref.WeakReference; |
|
|
|
@ -124,6 +123,7 @@ public class WeakRefCloneAssetCache implements AssetCache { |
|
|
|
|
public <T> void addToCache(AssetKey<T> originalKey, T obj) { |
|
|
|
|
// Make room for new asset
|
|
|
|
|
removeCollectedAssets(); |
|
|
|
|
|
|
|
|
|
CloneableSmartAsset asset = (CloneableSmartAsset) obj; |
|
|
|
|
|
|
|
|
|
// No circular references, since the original asset is
|
|
|
|
|