[Bf-blender-cvs] [b5c994cd725] greasepencil-object: Make GP cache tagging happen in the BKE_object_eval_uber_data callback

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


Commit: b5c994cd725e6398e347b16d98a9e9971578dbe2
Author: Joshua Leung
Date:   Thu Oct 26 18:52:05 2017 +1300
Branches: greasepencil-object
https://developer.blender.org/rBb5c994cd725e6398e347b16d98a9e9971578dbe2

Make GP cache tagging happen in the BKE_object_eval_uber_data callback

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

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

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

diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c
index 3bd14ae2079..3cc3b99b585 100644
--- a/source/blender/blenkernel/intern/object_update.c
+++ b/source/blender/blenkernel/intern/object_update.c
@@ -323,6 +323,9 @@ void BKE_object_eval_uber_data(const EvaluationContext *eval_ctx,
 		case OB_SURF:
 			BKE_curve_batch_cache_dirty(ob->data, BKE_CURVE_BATCH_DIRTY_ALL);
 			break;
+		case OB_GPENCIL:
+			BKE_gpencil_batch_cache_dirty(ob->gpd);
+			break;
 	}
 
 	if (DEG_depsgraph_use_copy_on_write()) {



More information about the Bf-blender-cvs mailing list