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:
authorFalk David <falkdavid@gmx.de>2021-02-01 18:27:42 +0300
committerFalk David <falkdavid@gmx.de>2021-02-01 18:27:42 +0300
commit5ec9e3a26e8cf69bf8a0845a6e51953b1d6bc801 (patch)
tree554c7e7feddf9fd6972369958c08c035743c5c93 /source/blender/editors/gpencil/gpencil_fill.c
parent82e2d70024e2fa6e0ab9d32f6fb798613f6bdeee (diff)
parent006e70dbd7e29c105809eded93169754ade03de5 (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_fill.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 8e17816dcc1..e3e73d5deb5 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1156,8 +1156,9 @@ static void gpencil_stroke_from_buffer(tGPDfill *tgpf)
ToolSettings *ts = tgpf->scene->toolsettings;
const char align_flag = ts->gpencil_v3d_align;
const bool is_depth = (bool)(align_flag & (GP_PROJECT_DEPTH_VIEW | GP_PROJECT_DEPTH_STROKE));
- const bool is_camera = (bool)(ts->gp_sculpt.lock_axis == 0) &&
- (tgpf->rv3d->persp == RV3D_CAMOB) && (!is_depth);
+ const bool is_lock_axis_view = (bool)(ts->gp_sculpt.lock_axis == 0);
+ const bool is_camera = is_lock_axis_view && (tgpf->rv3d->persp == RV3D_CAMOB) && (!is_depth);
+
Brush *brush = BKE_paint_brush(&ts->gp_paint->paint);
if (brush == NULL) {
return;
@@ -1285,7 +1286,7 @@ static void gpencil_stroke_from_buffer(tGPDfill *tgpf)
}
/* If camera view or view projection, reproject flat to view to avoid perspective effect. */
- if ((align_flag & GP_PROJECT_VIEWSPACE) || is_camera) {
+ if (((align_flag & GP_PROJECT_VIEWSPACE) && is_lock_axis_view) || is_camera) {
ED_gpencil_project_stroke_to_view(tgpf->C, tgpf->gpl, gps);
}