[Bf-blender-cvs] [ed612d9ed59] greasepencil-object: Knock out old "tag all" functions so that we can check if everything is working properly

Joshua Leung noreply at git.blender.org
Sat Nov 4 05:47:20 CET 2017


Commit: ed612d9ed598c6bccd33a34c8cd24378188224ec
Author: Joshua Leung
Date:   Thu Oct 26 18:38:01 2017 +1300
Branches: greasepencil-object
https://developer.blender.org/rBed612d9ed598c6bccd33a34c8cd24378188224ec

Knock out old "tag all" functions so that we can check if everything is working properly

===================================================================

M	source/blender/blenkernel/intern/gpencil.c

===================================================================

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 2152470df81..fb49c078373 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -84,24 +84,31 @@ void BKE_gpencil_batch_cache_free(bGPdata *gpd)
 }
 
 /* Change draw manager status in all gpd datablocks */
+/* TODO: Remove and deprecate completely */
 void BKE_gpencil_batch_cache_alldirty()
 {
+#if 0 /* XXX: disabled so we can see how much is broken without this */
 	bGPdata *gpd;
 	Main *bmain = G.main; /* XXX: supply as arg? */
 
 	for (gpd = bmain->gpencil.first; gpd; gpd = gpd->id.next) {
 		BKE_gpencil_batch_cache_dirty(gpd);
 	}
+#endif
 }
 
 /* Change draw manager status in all gpd datablocks */
+/* TODO: Remove completely? */
 void BKE_gpencil_batch_cache_alldirty_main(Main *bmain)
 {
+#if 0 /* XXX: disabled so we can see how much is broken without this */
 	bGPdata *gpd;
 
 	for (gpd = bmain->gpencil.first; gpd; gpd = gpd->id.next) {
 		BKE_gpencil_batch_cache_dirty(gpd);
 	}
+#endif
+	(void)bmain;
 }
 
 /* ************************************************** */



More information about the Bf-blender-cvs mailing list