Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-12-28 00:01:46 +0300
committerAntonioya <blendergit@gmail.com>2018-12-28 00:01:46 +0300
commit4a0063664ec7217548182b7527839c1ac2e8fc23 (patch)
treeadaf059c15c19376a0923550fa16f82562c50dd0
parent3e5374bf1ecda6515808e348a768ed7afa536505 (diff)
GP: Avoid Onion calculation when play animation
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_draw_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 6c3577c2794..0dc3870b11a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -74,8 +74,9 @@ static void gpencil_calc_vertex(
Object *ob = cache_ob->ob;
const DRWContextState *draw_ctx = DRW_context_state_get();
const bool main_onion = draw_ctx->v3d != NULL ? (draw_ctx->v3d->gp_flag & V3D_GP_SHOW_ONION_SKIN) : true;
+ const bool playing = stl->storage->is_playing;
const bool do_onion = (bool)((gpd->flag & GP_DATA_STROKE_WEIGHTMODE) == 0) &&
- main_onion && DRW_gpencil_onion_active(gpd);
+ main_onion && DRW_gpencil_onion_active(gpd) && !playing;
const bool time_remap = BKE_gpencil_has_time_modifiers(ob);