Bugfix [#35686] Grease pencil to curve conversion causes NAN weights on vertices
authorJoshua Leung <aligorith@gmail.com>
Sun, 9 Jun 2013 12:05:29 +0000 (12:05 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 9 Jun 2013 12:05:29 +0000 (12:05 +0000)
commit79ef7169e9b9fc94088759cb254ba24b6dab096a
tree7c635996f07751d83f302d68ee75e09c1b82fe16
parentd749413ef73db693dd6661e91685f1e390675b29
Bugfix [#35686] Grease pencil to curve conversion causes NAN weights on vertices

When you convert a grease pencil stroke to a polygon curve and look at the
vertices, the first and last vertex have weight = 0, but all others have a -NaN
value. This was caused by division by zero issues when minmax_weights[0] ==
minmax_weights[1].
source/blender/editors/gpencil/gpencil_edit.c