[Bf-blender-cvs] [ce17f9308cb] PSketch-279: Fix for API changes

Joshua Leung noreply at git.blender.org
Tue May 8 18:02:44 CEST 2018


Commit: ce17f9308cb6e5475e5dd5869d34f69b6c642d80
Author: Joshua Leung
Date:   Sun Dec 24 00:45:16 2017 +1300
Branches: PSketch-279
https://developer.blender.org/rBce17f9308cb6e5475e5dd5869d34f69b6c642d80

Fix for API changes

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

M	source/blender/editors/armature/pose_sketch.c

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

diff --git a/source/blender/editors/armature/pose_sketch.c b/source/blender/editors/armature/pose_sketch.c
index 0eb76f78c9e..30ce05445eb 100644
--- a/source/blender/editors/armature/pose_sketch.c
+++ b/source/blender/editors/armature/pose_sketch.c
@@ -585,7 +585,7 @@ static void psketch_exit_cleanup(PSketchSettings *ps, bGPDlayer *gpl)
 {
 	if ((ps->flag & PSKETCH_FLAG_KEEP_STROKE) == 0) {
 		// XXX: instead of deleting the last one, maybe delete the previous ones that got drawn?
-		gpencil_frame_delete_laststroke(gpl, gpl->actframe);
+		BKE_gpencil_frame_delete_laststroke(gpl, gpl->actframe);
 	}
 }
 
@@ -600,7 +600,7 @@ static int psketch_direct_exec(bContext *C, wmOperator *op)
 	const float cfra = BKE_scene_frame_get(scene);
 	
 	bGPdata *gpd = ED_gpencil_data_get_active(C);
-	bGPDlayer *gpl = gpencil_layer_getactive(gpd); // XXX: this assumes that any layer will do, as long as user drew in it recently
+	bGPDlayer *gpl = BKE_gpencil_layer_getactive(gpd); // XXX: this assumes that any layer will do, as long as user drew in it recently
 	bGPDframe *gpf = (gpl) ? gpl->actframe : NULL;
 	bGPDstroke *stroke = (gpf) ? gpf->strokes.last : NULL;



More information about the Bf-blender-cvs mailing list