Hello!
I’m trying to use the SkinnedSubGeometry with the following lines
var sglist:SubGeometryList;
var sg:SkinnedSubGeometry;
for (i = 0; i < _MaterialsSubGeometries.length; i++)
{
sglist = _MaterialsSubGeometries[i];
sg = new SkinnedSubGeometry(1);
if (sg && sglist.vertices.length > 0)
{
sg.updateVertexData(sglist.vertices);
sg.updateIndexData(sglist.indices);
sg.updateUVData(sglist.uvs);
sg.updateJointIndexData(sglist.jointIndices);
sg.updateJointWeightsData(sglist.jointWeigths);
_geom.addSubGeometry(sg);
this.subMeshes[this.subMeshes.length - 1].material = sglist.material;
}
}
I have the following error for both updateVertexData and updateUVData functions
Error: Call to a possibly undefined method updateVertexData through a reference with static type away3d.core.base:SkinnedSubGeometry. sg.updateVertexData(sglist.vertices);
Did I miss anything?
thanks