Fix T56152: Rotate crash w/ individual origins

This commit is contained in:
Campbell Barton 2018-07-30 20:53:34 +10:00
parent 1d596e29df
commit 914e4d1212
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #56152, Crash on face/edge rotate around normal axis if individual origins set
1 changed files with 3 additions and 1 deletions

View File

@ -560,7 +560,9 @@ static void applyObjectConstraintRot(
/* on setup call, use first object */
if (td == NULL) {
td = TRANS_DATA_CONTAINER_FIRST_OK(t)->data;
BLI_assert(tc == NULL);
tc = TRANS_DATA_CONTAINER_FIRST_OK(t);
td = tc->data;
}
if (t->flag & T_EDIT) {