Fixed NPE in model variant handling.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@64 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -740,9 +740,11 @@ public class Model extends ModelNode
|
|||||||
}
|
}
|
||||||
// create an instance and rebind all animations
|
// create an instance and rebind all animations
|
||||||
final Model prototype = createInstance();
|
final Model prototype = createInstance();
|
||||||
for (Map.Entry<String, Animation> entry : _anims.entrySet()) {
|
if (_anims != null) {
|
||||||
prototype._anims.put(entry.getKey(),
|
for (Map.Entry<String, Animation> entry : _anims.entrySet()) {
|
||||||
entry.getValue().rebind(prototype._pnodes));
|
prototype._anims.put(entry.getKey(),
|
||||||
|
entry.getValue().rebind(prototype._pnodes));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
prototype._prototype = null;
|
prototype._prototype = null;
|
||||||
prototype._pnodes = null;
|
prototype._pnodes = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user