[Bf-blender-cvs] [bec3a00e593] greasepencil-object: Annotations Fix: "Freehand" mode now works
Joshua Leung
noreply at git.blender.org
Thu Jun 28 11:15:35 CEST 2018
Commit: bec3a00e59377d5ca0fe344a69f7c3966363fa5f
Author: Joshua Leung
Date: Thu Jun 28 21:11:39 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rBbec3a00e59377d5ca0fe344a69f7c3966363fa5f
Annotations Fix: "Freehand" mode now works
Was over-zealous when removing code from the drawing operator
to remove all the non-essential additions here.
Now annotations work in some of the 2D views:
* Nodes/Image Editor are confirmed to work
* Sequencer Preview needs further work
* Movie Clip editor works
===================================================================
M source/blender/editors/gpencil/annotate_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 98ba3afe9e7..6210f50d43e 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -440,6 +440,7 @@ static short gp_stroke_addpoint(
pt = ((tGPspoint *)(gpd->sbuffer) + gpd->sbuffer_size);
/* store settings */
+ copy_v2_v2_int(&pt->x, mval);
pt->pressure = pressure;
pt->strength = 1.0f; /* unused for annotations, but initialise for easier conversions to GP Object */
More information about the Bf-blender-cvs
mailing list