|
@@ -1018,7 +1018,7 @@ class BaseLibrary {
|
|
|
return keepJoints.get(j.name);
|
|
|
}
|
|
|
|
|
|
- function createSkin( hskins : Map<Int,h3d.anim.Skin>, hgeom : Map<Int,{function getVerticesCount():Int;function setSkin(s:h3d.anim.Skin):Void;}>, rootJoints : Array<h3d.anim.Skin.Joint>, bonesPerVertex ) {
|
|
|
+ function createSkin( hskins : Map<Int,h3d.anim.Skin>, hgeom : Map<Int,{function vertexCount():Int;function setSkin(s:h3d.anim.Skin):Void;}>, rootJoints : Array<h3d.anim.Skin.Joint>, bonesPerVertex ) {
|
|
|
var allJoints = [];
|
|
|
function collectJoints(j:h3d.anim.Skin.Joint) {
|
|
|
// collect subs first (allow easy removal of terminal unskinned joints)
|
|
@@ -1059,7 +1059,7 @@ class BaseLibrary {
|
|
|
if( skin != null )
|
|
|
return skin;
|
|
|
var geom = hgeom.get(getParent(def, "Geometry").getId());
|
|
|
- skin = new h3d.anim.Skin(null, geom.getVerticesCount(), bonesPerVertex);
|
|
|
+ skin = new h3d.anim.Skin(null, geom.vertexCount(), bonesPerVertex);
|
|
|
geom.setSkin(skin);
|
|
|
hskins.set(def.getId(), skin);
|
|
|
}
|