Commit: 7127bf45a6d2011ea6569b654cea28d792c0c134
Author: Antonio Vazquez
Date: Sat May 29 15:58:59 2021 +0200
Branches: temp-gpencil-camera-reproject
https://developer.blender.org/rB7127bf45a6d2011ea6569b654cea28d792c0c134
GPencil: Fix wrong if condition
===================================================================
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 e6a1bef7f31..6aae2515a35 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1277,7 +1277,7 @@ void ED_gpencil_project_point_to_render_space(const
struct Scene *scene,
float parent_co[3];
mul_v3_m4v3(parent_co, persmat, &pt->x);
- if (is_ortho) {
+ if (!is_ortho) {
parent_co[0] = parent_co[0] / max_ff(FLT_MIN, parent_co[2]);
parent_co[1] = parent_co[1] / max_ff(FLT_MIN, parent_co[2]);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs