Commit: 3c2e5f52152f24fa97160616e33d3a2d935ab9bc
Author: Antonio Vazquez
Date: Thu May 27 19:22:47 2021 +0200
Branches: temp-gpencil-camera-reproject
https://developer.blender.org/rB3c2e5f52152f24fa97160616e33d3a2d935ab9bc
GPencil: Avoid 2D conversion for Camera mode
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c
b/source/blender/editors/gpencil/gpencil_utils.c
index 95d3fe7947a..65016ffdf16 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1329,7 +1329,9 @@ void ED_gpencil_stroke_reproject(Depsgraph *depsgraph,
bGPDspoint pt2;
gpencil_point_to_parent_space(pt, diff_mat, &pt2);
- gpencil_point_to_xy_fl(gsc, gps_active, &pt2, &xy[0], &xy[1]);
+ if (mode != GP_REPROJECT_CAMERA) {
+ gpencil_point_to_xy_fl(gsc, gps_active, &pt2, &xy[0], &xy[1]);
+ }
/* Project stroke in one axis */
if (ELEM(mode, GP_REPROJECT_FRONT, GP_REPROJECT_SIDE, GP_REPROJECT_TOP,
GP_REPROJECT_CURSOR)) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs