Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2018-12-14 13:59:22 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-12-14 15:27:49 +0300
commitc1adf86a2ef30a9033ff7cfe757b1e7c7b174784 (patch)
tree8fae7948475adc184392d897c81613eecb7ebb0c /source/blender/draw
parent0e76ff18b5bac34fb7f3b96c4849024ec9b2c2fb (diff)
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
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/modes/object_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index 179726de7ab..c44413ca579 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -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]);
}