skip unneeded calculations when calling calculateTransformCenter()
which gets called whenever the view is rotated when rotate-around-selected preference is enabled.
This commit is contained in:
@@ -1407,12 +1407,16 @@ int calculateTransformCenter(bContext *C, int centerMode, float cent3d[3], int c
|
||||
|
||||
t->state = TRANS_RUNNING;
|
||||
|
||||
t->options = CTX_NONE;
|
||||
/* avoid calculating PET */
|
||||
t->options = CTX_NONE | CTX_NO_PET;
|
||||
|
||||
t->mode = TFM_DUMMY;
|
||||
|
||||
initTransInfo(C, t, NULL, NULL); // internal data, mouse, vectors
|
||||
|
||||
/* avoid doing connectivity lookups (when V3D_LOCAL is set) */
|
||||
t->around = V3D_CENTER;
|
||||
|
||||
createTransData(C, t); // make TransData structs from selection
|
||||
|
||||
t->around = centerMode; // override userdefined mode
|
||||
|
||||
Reference in New Issue
Block a user