Fix T42199: PET displays when transforming around centers

Old code only worked for faces.
This commit is contained in:
Campbell Barton
2014-11-10 14:37:53 +01:00
parent da31052b45
commit c8ef04e726

View File

@@ -1203,7 +1203,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
}
/* exceptional case */
if (t->around == V3D_LOCAL && (t->settings->selectmode & SCE_SELECT_FACE)) {
if (t->around == V3D_LOCAL) {
if (ELEM(t->mode, TFM_ROTATION, TFM_RESIZE, TFM_TRACKBALL)) {
t->options |= CTX_NO_PET;
}