Once more T50565: Allow using planar constraints for scale manipulator

This commit is contained in:
Julian Eisel 2017-03-07 11:23:07 +01:00
parent 15fa806160
commit ca796f872e

@ -1872,10 +1872,8 @@ int BIF_do_manipulator(bContext *C, const struct wmEvent *event, wmOperator *op)
drawflags = manipulator_selectbuf(sa, ar, event->mval, 0.2f * (float)U.tw_hotspot);
if (drawflags == 0) drawflags = val;
/* We are not doing translation but were requested to do planar constraints.
* This wouldn't work, so we give other keymaps a chance.
*/
if ((drawflags & MAN_TRANS_C) == 0 && use_planar) {
/* Planar constraint doesn't make sense for rotation, give other keymaps a chance */
if ((drawflags & MAN_ROT_C) && use_planar) {
return 0;
}