Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: source/blender/editors/object/object_transform.c
- ===================================================================
- --- source/blender/editors/object/object_transform.c (revision 51814)
- +++ source/blender/editors/object/object_transform.c (working copy)
- @@ -903,11 +903,16 @@
- /* offset other selected objects */
- if (do_inverse_offset && (centermode != GEOMETRY_TO_ORIGIN)) {
- CollectionPointerLink *ctx_link_other;
- + float obmat[4][4];
- /* was the object data modified
- * note: the functions above must set 'cent' */
- +
- + /* convert the offset to parent space */
- + BKE_object_to_mat4(ob, obmat);
- copy_v3_v3(centn, cent);
- - mul_mat3_m4_v3(ob->obmat, centn); /* ommit translation part */
- + mul_mat3_m4_v3(obmat, centn); /* omit translation part */
- +
- add_v3_v3(ob->loc, centn);
- BKE_object_where_is_calc(scene, ob);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement