Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / draw / intern / draw_armature.c
index 90a5011069883d83527db054180d79d67ae2423f..58cf3aaf6cc219e4f022269d0b72509519221d22 100644 (file)
@@ -1413,11 +1413,11 @@ static void DRW_shgroup_armature(
 }
 
 void DRW_shgroup_armature_object(
-        Object *ob, SceneLayer *scene_layer, DRWPass *pass_bone_solid, DRWPass *pass_bone_wire, DRWPass *UNUSED(pass_bone_envelope),
+        Object *ob, ViewLayer *view_layer, DRWPass *pass_bone_solid, DRWPass *pass_bone_wire, DRWPass *UNUSED(pass_bone_envelope),
         DRWShadingGroup *shgrp_relationship_lines)
 {
        float *color;
-       DRW_object_wire_theme_get(ob, scene_layer, &color);
+       DRW_object_wire_theme_get(ob, view_layer, &color);
 
        DRW_shgroup_armature(ob, pass_bone_solid, pass_bone_wire, NULL, shgrp_relationship_lines);
        draw_armature_pose(ob, color);