[Bf-blender-cvs] [bfaf41663ab] blender2.8: Motion Path: Don't blit MSAA buffer if there is no motion paths
Clément Foucault
noreply at git.blender.org
Mon Jul 30 14:21:08 CEST 2018
Commit: bfaf41663abd929b3756f81f7cbbcb57419d21fd
Author: Clément Foucault
Date: Mon Jul 30 14:18:38 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBbfaf41663abd929b3756f81f7cbbcb57419d21fd
Motion Path: Don't blit MSAA buffer if there is no motion paths
===================================================================
M source/blender/draw/intern/draw_anim_viz.c
===================================================================
diff --git a/source/blender/draw/intern/draw_anim_viz.c b/source/blender/draw/intern/draw_anim_viz.c
index 6bf7bf9ca08..f976c7b4d05 100644
--- a/source/blender/draw/intern/draw_anim_viz.c
+++ b/source/blender/draw/intern/draw_anim_viz.c
@@ -322,6 +322,13 @@ static void MPATH_draw_scene(void *vedata)
DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
DefaultTextureList *dtxl = DRW_viewport_texture_list_get();
+ if (DRW_pass_is_empty(psl->lines) &&
+ DRW_pass_is_empty(psl->points))
+ {
+ /* Nothing to draw. */
+ return;
+ }
+
MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl)
DRW_draw_pass(psl->lines);
More information about the Bf-blender-cvs
mailing list