fix [#32616] Changing parent does not keep transformation
authorCampbell Barton <ideasman42@gmail.com>
Thu, 27 Sep 2012 12:24:38 +0000 (12:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 27 Sep 2012 12:24:38 +0000 (12:24 +0000)
commitd4e40b52309b69b2a4379db6df5a6ace9fad65e8
tree1889b2be812b1946e0ddd8529d70dd647b276331
parentf3850ca13b2b8a970abaab05aab2b4e217420231
fix [#32616] Changing parent does not keep transformation

add an option to apply the transform of an object when re-parenting.

the reason for this is you dont always want to apply transform because...
- your object may be driven/animated and the transformation will be lost.
- with negative scales and rotation it can end up giving odd/not-useful results.
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/outliner_edit.c