Armature: Add multisampling to posemode.
authorClément Foucault <foucault.clem@gmail.com>
Fri, 27 Apr 2018 14:30:03 +0000 (16:30 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 2 May 2018 18:49:38 +0000 (20:49 +0200)
source/blender/draw/modes/pose_mode.c

index 12c78e8550050d7c3a90191fb2bc2033626103e6..d764ce93baeeba4b53de45e629c59debd03b0aa1 100644 (file)
@@ -166,12 +166,18 @@ bool DRW_pose_mode_armature(Object *ob, Object *active_ob)
 static void POSE_draw_scene(void *vedata)
 {
        POSE_PassList *psl = ((POSE_Data *)vedata)->psl;
+       DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
+       DefaultTextureList *dtxl = DRW_viewport_texture_list_get();
+
+       MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl)
 
        DRW_draw_pass(psl->bone_envelope);
        DRW_draw_pass(psl->bone_outline);
        DRW_draw_pass(psl->bone_wire);
        DRW_draw_pass(psl->bone_solid);
        DRW_draw_pass(psl->relationship);
+
+       MULTISAMPLE_SYNC_DISABLE(dfbl, dtxl)
 }
 
 /* Create collection settings here.