Fix T40438: Pressing G key to move the camera quits Blender.

This commit is contained in:
Bastien Montagne 2014-05-25 11:06:32 +02:00
parent b3f9117523
commit aef443ab2d
1 changed files with 2 additions and 1 deletions

View File

@ -394,7 +394,8 @@ static int transform_modal(bContext *C, wmOperator *op, const wmEvent *event)
/* XXX, workaround: active needs to be calculated before transforming,
* since we're not reading from 'td->center' in this case. see: T40241 */
if (t->tsnap.target == SCE_SNAP_TARGET_ACTIVE) {
if ((t->tsnap.status & TARGET_INIT) == 0) {
/* In camera view, tsnap callback is not set (see initSnappingMode() in transfrom_snap.c, and T40348). */
if (t->tsnap.targetSnap && ((t->tsnap.status & TARGET_INIT) == 0)) {
t->tsnap.targetSnap(t);
}
}