Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/object_mode.c
| Show First 20 Lines • Show All 2,265 Lines • ▼ Show 20 Lines | |||||
| static void DRW_shgroup_relationship_lines( | static void DRW_shgroup_relationship_lines( | ||||
| OBJECT_ShadingGroupList *sgl, | OBJECT_ShadingGroupList *sgl, | ||||
| Depsgraph *depsgraph, | Depsgraph *depsgraph, | ||||
| Scene *scene, | Scene *scene, | ||||
| Object *ob) | Object *ob) | ||||
| { | { | ||||
| if (ob->parent && DRW_object_is_visible_in_active_context(ob->parent)) { | 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]); | DRW_shgroup_call_dynamic_add(sgl->relationship_lines, ob->obmat[3]); | ||||
| } | } | ||||
| if (ob->rigidbody_constraint) { | if (ob->rigidbody_constraint) { | ||||
| Object *rbc_ob1 = ob->rigidbody_constraint->ob1; | Object *rbc_ob1 = ob->rigidbody_constraint->ob1; | ||||
| Object *rbc_ob2 = ob->rigidbody_constraint->ob2; | Object *rbc_ob2 = ob->rigidbody_constraint->ob2; | ||||
| if (rbc_ob1 && DRW_object_is_visible_in_active_context(rbc_ob1)) { | if (rbc_ob1 && DRW_object_is_visible_in_active_context(rbc_ob1)) { | ||||
| DRW_shgroup_call_dynamic_add(sgl->relationship_lines, rbc_ob1->obmat[3]); | DRW_shgroup_call_dynamic_add(sgl->relationship_lines, rbc_ob1->obmat[3]); | ||||
| ▲ Show 20 Lines • Show All 733 Lines • Show Last 20 Lines | |||||