Fix issue with 'apply visual transfrom' not working. Based on fix for https://developer.blender.org/T55494
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
| source/blender/editors/object/object_transform.c | ||
|---|---|---|
| 821 | If the dependency graph is evaluated, then you don't need this. If it is not evaluated yet (i.e. on redo) this is not enough. It should be enough to replace CTX_data_depsgraph with CTX_data_evaluated_depsgraph few lines above and remove this manual copy. | |
| 824 | It is unreliable to use BKE_object_where_is_calc on original object: it might depend on constraints which needs final geometry which does not exist in an original domain. Not sure why this is even needed. Is it for applying transform when both children and parent are selected? | |
Okay I tried updating with comments from @Sergey Sharybin (sergey). Hope I understood it right - at least my use case still works :)
| source/blender/editors/object/object_transform.c | ||
|---|---|---|
| 822 | Think this should be BKE_object_apply_mat4(ob_eval, ob_eval->obmat, true, true); | |