Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <Blendify>2021-07-27 01:52:48 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-07-27 01:53:30 +0300
commit6ee14c966d05362228511756c4906e043b87e346 (patch)
treefc53c724fccc6bda9e6bb51f6db751e1bd692486 /source/blender/editors
parent05315af81dec2dd503c73f92680d2d6d72cd2b28 (diff)
Anotations: Fix a several issues with stroke placement
Previously, this option was not exposed in the UI, only for the clip editor. There were also multiple rna properties that did the same thing for each of the 2D editors. There was also an issue where the property enum items were the same as the 3d view which didnt make much sense. Reviewed By: antoniov Differential Revision: https://developer.blender.org/D12027
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 4b0c5ccd285..9bf44370c80 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -1320,7 +1320,7 @@ static bool annotation_session_initdata(bContext *C, tGPsdata *p)
p->area = curarea;
p->region = region;
p->v2d = &region->v2d;
- p->align_flag = &ts->gpencil_seq_align;
+ p->align_flag = &ts->gpencil_v2d_align;
/* check that gpencil data is allowed to be drawn */
if (sseq->mainb == SEQ_DRAW_SEQUENCE) {
@@ -1339,7 +1339,7 @@ static bool annotation_session_initdata(bContext *C, tGPsdata *p)
p->area = curarea;
p->region = region;
p->v2d = &region->v2d;
- p->align_flag = &ts->gpencil_ima_align;
+ p->align_flag = &ts->gpencil_v2d_align;
break;
}
case SPACE_CLIP: {