Fix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 19 Dec 2013 03:09:42 +0000 (05:09 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 19 Dec 2013 03:09:42 +0000 (05:09 +0200)
commite915ecdfc4681b479c90349ef1d6338179071800
tree745dcb7638fedeef32b347533e2ea89c0fd93994
parent58ae499fc12449b35e0b9da06506f429a70e9744
Fix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
sculpted object if last sculpt stroke ends outside the mesh.

Code here used the last true location which is invalid in that case,
just reuse the average stroke location instead.
source/blender/editors/include/ED_sculpt.h
source/blender/editors/sculpt_paint/sculpt.c