Fix ruler crash using stale snap-context
authorCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2016 08:47:16 +0000 (18:47 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 16 Jun 2016 08:49:39 +0000 (18:49 +1000)
commitef515822ce9743483d5de67d53b02b8fad66e0ce
tree63f077889b22c51a1bb5add6a23e3be203288a88
parent57cff46cec9599e5897de72f45ce735da79db0ff
Fix ruler crash using stale snap-context

Since ruler allows other operators to run (such as mode-switching).
Only cache snap-context while dragging.
source/blender/editors/space_view3d/view3d_ruler.c