|
@@ -239,6 +239,11 @@
|
|
if (kind === VertexBuffer.PositionKind) {
|
|
if (kind === VertexBuffer.PositionKind) {
|
|
if (totalVertices != null) {
|
|
if (totalVertices != null) {
|
|
this._totalVertices = totalVertices;
|
|
this._totalVertices = totalVertices;
|
|
|
|
+ } else {
|
|
|
|
+ var data = <FloatArray>buffer.getData();
|
|
|
|
+ if (data != null) {
|
|
|
|
+ this._totalVertices = data.length / (buffer.byteStride * 4);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
this._updateExtend();
|
|
this._updateExtend();
|