fix relationship line always drawing from the parents origin

this can be different though (e.g. vertex parenting) and correct location
is already stored in ob->orig

spotted while looking into T59332

Reviewers: fclem, brecht

Differential Revision: https://developer.blender.org/D4076
This commit is contained in:
Philipp Oeser 2018-12-14 11:59:22 +01:00
parent 0e76ff18b5
commit c1adf86a2e
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #59371, Make Single User Crashes Blender
1 changed files with 1 additions and 1 deletions

View File

@ -2271,7 +2271,7 @@ static void DRW_shgroup_relationship_lines(
Object *ob)
{
if (ob->parent && DRW_object_is_visible_in_active_context(ob->parent)) {
DRW_shgroup_call_dynamic_add(sgl->relationship_lines, ob->parent->obmat[3]);
DRW_shgroup_call_dynamic_add(sgl->relationship_lines, ob->orig);
DRW_shgroup_call_dynamic_add(sgl->relationship_lines, ob->obmat[3]);
}