[Bf-blender-cvs] [0af4a286bc3] greasepencil-refactor: GPencil: Cleanup unused code
Antonio Vazquez
noreply at git.blender.org
Wed Jan 8 16:34:33 CET 2020
Commit: 0af4a286bc31e6465a09a0970d0e71c558ea173b
Author: Antonio Vazquez
Date: Wed Jan 8 16:34:26 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB0af4a286bc31e6465a09a0970d0e71c558ea173b
GPencil: Cleanup unused code
===================================================================
M source/blender/draw/intern/draw_cache_impl_gpencil.c
===================================================================
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index 209c9efb4a7..58cc7c01d2c 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -101,11 +101,6 @@ static bool gpencil_batch_cache_valid(GpencilBatchCache *cache, bGPdata *gpd, in
gpd->flag &= ~GP_DATA_PYTHON_UPDATED;
valid = false;
}
- else if (cache->is_editmode) {
- /* XXX FIXME This is bad as it means we cannot call gpencil_batch_cache_get twice in a row.
- * Disabling for now. Edit: seems to work without it... */
- // valid = false;
- }
else if (cache->is_dirty) {
/* TODO, maybe get rid of the other dirty flags. */
valid = false;
More information about the Bf-blender-cvs
mailing list