[Bf-blender-cvs] [628946ac662] greasepencil-object: Use cache_dirty instead of cache_free
Antonio Vazquez
noreply at git.blender.org
Sun Jul 9 16:24:00 CEST 2017
Commit: 628946ac662439c0fe461aa33668aefb7c1aca4d
Author: Antonio Vazquez
Date: Sun Jul 9 15:51:27 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB628946ac662439c0fe461aa33668aefb7c1aca4d
Use cache_dirty instead of cache_free
===================================================================
M source/blender/editors/gpencil/gpencil_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 549f8715069..fffaffdf47c 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -191,7 +191,7 @@ static void gp_stroke_added_enable(tGPsdata *p)
p->flags |= GP_PAINTFLAG_STROKEADDED;
/* drawing batch cache is dirty now */
- BKE_gpencil_batch_cache_free(p->gpd);
+ BKE_gpencil_batch_cache_dirty(p->gpd);
p->gpd->flag |= GP_DATA_CACHE_IS_DIRTY;
}
More information about the Bf-blender-cvs
mailing list