Mon, 28 Apr 2014 18:27:02 +0300
- buh
src/glRenderer.cc | file | annotate | diff | comparison | revisions |
--- a/src/glRenderer.cc Mon Apr 28 18:25:15 2014 +0300 +++ b/src/glRenderer.cc Mon Apr 28 18:27:02 2014 +0300 @@ -1284,6 +1284,7 @@ QList<qint32> indices; // Go through each pixel read and add them to the selection. + // Note: black is background, those indices are skipped. for (qint32 i = 0; i < numpixels; ++i) { qint32 idx = @@ -1300,9 +1301,6 @@ for (qint32 idx : indices) { - if (idx == 0) - continue; // Black is background; skip - LDObject* obj = LDObject::fromID (idx); assert (obj != null);