doesAnimationVertexDeform property
bool
get
doesAnimationVertexDeform
Implementation
bool get doesAnimationVertexDeform {
return _animationDeformedVertices != null;
}
set
doesAnimationVertexDeform
(bool value)
Implementation
set doesAnimationVertexDeform(bool value) {
if (value) {
if (_animationDeformedVertices == null ||
_animationDeformedVertices!.length != _vertexCount * 2) {
_animationDeformedVertices = Float32List(vertexCount * 2);
// Copy the deform verts from the rig verts.
int writeIdx = 0;
int readIdx = 0;
int readStride = vertexStride;
for (int i = 0; i < _vertexCount; i++) {
_animationDeformedVertices![writeIdx++] = _vertices![readIdx];
_animationDeformedVertices![writeIdx++] = _vertices![readIdx + 1];
readIdx += readStride;
}
}
} else {
_animationDeformedVertices = null;
}
}