diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 19:28:11 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-06 19:36:47 +0300 |
commit | 1c3f953565cefd7d59499e0ea99c3fea5890357f (patch) | |
tree | bfc5de15129c17de1004b632070b6a4b8fc9f32b /source/blender/draw/modes/edit_armature_mode.c | |
parent | 2bc0c4ec5940eafb02ce30c03c0e002dc21d5f66 (diff) |
Armature: Put passes in a struct easier to pass around.
Diffstat (limited to 'source/blender/draw/modes/edit_armature_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_armature_mode.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/draw/modes/edit_armature_mode.c b/source/blender/draw/modes/edit_armature_mode.c index bc992c8741a..f9bf003758f 100644 --- a/source/blender/draw/modes/edit_armature_mode.c +++ b/source/blender/draw/modes/edit_armature_mode.c @@ -118,9 +118,13 @@ static void EDIT_ARMATURE_cache_populate(void *vedata, Object *ob) if (ob->type == OB_ARMATURE) { if (arm->edbo) { - DRW_shgroup_armature_edit( - ob, psl->bone_solid, psl->bone_outline, psl->bone_wire, - psl->bone_envelope, stl->g_data->relationship_lines); + DRWArmaturePasses passes = { + .bone_solid = psl->bone_solid, + .bone_outline = psl->bone_outline, + .bone_wire = psl->bone_wire, + .bone_envelope = psl->bone_envelope, + }; + DRW_shgroup_armature_edit(ob, passes, stl->g_data->relationship_lines); } } } |