You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convertToSeparateBuffers does not parse the whole subgeometry array. It removes compactSubgeometry elements in the loop, messing with the array order and causing it to skip over certain indices.
proposed solution:
public function convertToSeparateBuffers() : void
{
var subGeom : ISubGeometry;
var numSubGeoms : int = _subGeometries.length;
var _removableCompactSubGeometries:Vector.<CompactSubGeometry> = new Vector.<CompactSubGeometry>;
for (var i : int = 0; i < numSubGeoms; ++i) {
subGeom = _subGeometries[i];
if (subGeom is SubGeometry) continue;
_removableCompactSubGeometries.push(subGeom);
addSubGeometry(subGeom.cloneWithSeperateBuffers());
}
for each(var s:CompactSubGeometry in _removableCompactSubGeometries) {
removeSubGeometry(s);
s.dispose();
}
}
The text was updated successfully, but these errors were encountered:
convertToSeparateBuffers does not parse the whole subgeometry array. It removes compactSubgeometry elements in the loop, messing with the array order and causing it to skip over certain indices.
proposed solution:
The text was updated successfully, but these errors were encountered: