Fix #131597: Grease Pencil: Active pivot point doesn't work in edit mode
Grease Pencil never had an "active" point/stroke. So similar to like in 4.2, use objects location as pivot when `active` is selected. Pull Request: https://projects.blender.org/blender/blender/pulls/131603
This commit is contained in:
committed by
Falk David
parent
454677ad49
commit
fa0c927e76
@@ -92,6 +92,11 @@ bool calc_active_center_for_editmode(Object *obedit, const bool select_only, flo
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OB_GREASE_PENCIL: {
|
||||
copy_v3_v3(r_center, obedit->loc);
|
||||
mul_m4_v3(obedit->world_to_object().ptr(), r_center);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user