Various tweaks, plus prune nodes with no geometry descendants that

aren't used as bones in models.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4074 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-04-28 04:21:30 +00:00
parent 33ab4146c8
commit ecee4e292e
4 changed files with 37 additions and 30 deletions
+5 -4
View File
@@ -233,10 +233,8 @@ public class Model extends ModelNode
FileChannel fc = fis.getChannel();
if (map) {
long pos = fc.position();
MappedByteBuffer buf = fc.map(FileChannel.MapMode.READ_ONLY,
pos, fc.size() - pos);
buf.order(ByteOrder.LITTLE_ENDIAN);
model.sliceBuffers(buf);
model.sliceBuffers(fc.map(FileChannel.MapMode.READ_ONLY,
pos, fc.size() - pos));
} else {
model.readBuffers(fc);
}
@@ -343,6 +341,9 @@ public class Model extends ModelNode
*/
public Animation getAnimation (String name)
{
if (_anims == null) {
return null;
}
Animation anim = _anims.get(name);
if (anim != null) {
return anim;