[Bf-blender-cvs] [7127bf45a6d] temp-gpencil-camera-reproject: GPencil: Fix wrong if condition

Antonio Vazquez noreply at git.blender.org
Sat May 29 15:59:06 CEST 2021


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]);
   }



More information about the Bf-blender-cvs mailing list