diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-19 04:33:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-19 04:33:14 +0300 |
commit | 57218638052c72d1e25f3201c8356d11bd690834 (patch) | |
tree | 699ab201c859bcd28f9769e05f46e1b5da6754fb /source/blender/editors/gpencil/gpencil_paint.c | |
parent | eee79641c362c974c40cbd289cf14685c6b86f92 (diff) |
RNA: pass only 0/1 to RNA_property_boolean_set
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 41caa777804..38a7ffaca86 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1642,7 +1642,7 @@ static void gpencil_draw_apply_event(wmOperator *op, const wmEvent *event) mousef[1] = p->mval[1]; RNA_float_set_array(&itemptr, "mouse", mousef); RNA_float_set(&itemptr, "pressure", p->pressure); - RNA_boolean_set(&itemptr, "is_start", (p->flags & GP_PAINTFLAG_FIRSTRUN)); + RNA_boolean_set(&itemptr, "is_start", (p->flags & GP_PAINTFLAG_FIRSTRUN) != 0); RNA_float_set(&itemptr, "time", p->curtime - p->inittime); |