Fix T40438: Pressing G key to move the camera quits Blender.
This commit is contained in:
parent
b3f9117523
commit
aef443ab2d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue