[Bf-blender-cvs] [e5880eb1ffd] soc-2018-bevel: Fix exception in superellipse where precision_reached is used with proper initialization
Rohan Rathi
noreply at git.blender.org
Thu Jun 14 03:55:29 CEST 2018
Commit: e5880eb1ffdccc3295ca6a27fec8bb55fd20c27d
Author: Rohan Rathi
Date: Wed Jun 13 21:56:15 2018 +0530
Branches: soc-2018-bevel
https://developer.blender.org/rBe5880eb1ffdccc3295ca6a27fec8bb55fd20c27d
Fix exception in superellipse where precision_reached is used
with proper initialization
===================================================================
M source/blender/bmesh/tools/bmesh_bevel.c
===================================================================
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index 0fdf3a8868c..148196ec505 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -5146,7 +5146,7 @@ static void find_even_superellipse_chords_general(int seg, float r, double *xval
double sum;
double temp;
- bool precision_reached;
+ bool precision_reached = true; /* Exception: var used without being initialized */
bool seg_odd = seg % 2;
bool rbig;
More information about the Bf-blender-cvs
mailing list