Some commands leave behind "ghost selection"
ryan last edited by ryan
I have a script that sends selected contours to another glyph (the meat is in
When I run the script, it leaves some ghost "selection" behind until I click glyph view again. I've seen this happen before other times, but this is the most reproducible.
g.selectedContours = ()and
g.changed()to no avail. Any reason this would be happening? Thanks!
Version 3.5b (build 2007102200)
noted down for future RF version to auto deselect on removeContour :)
ryan last edited by
Ok I got some breadcrumbs from @frankrolf, and found the solution:
The contour needs to be deselected before it's removed.
c.selected = False g.removeContour(c) g.changed()