clicking on the second point of the gradient outside the mesh should have blended to alpha zero, but was raising an error, fixed.

This commit is contained in:
Campbell Barton 2006-07-09 14:54:47 +00:00
parent 6bd0091a08
commit 4c357b4ffa
2 changed files with 6 additions and 1 deletions

@ -355,6 +355,9 @@ def pickMeshRayFace(me, orig, dir):
def pickMeshGroupWeight(me, act_group, orig, dir):
f, side, w0, w1, w2= pickMeshRayFace(me, orig, dir)
if f==None:
return None
f_v= f.v
if side==0:
f_vi= (f_v[0].index, f_v[1].index, f_v[2].index)
@ -372,6 +375,9 @@ def pickMeshGroupVCol(me, orig, dir):
Vector= Blender.Mathutils.Vector
f, side, w0, w1, w2= pickMeshRayFace(me, orig, dir)
if f==None:
return None
def col2vec(c):
return Vector(c.r, c.g, c.b)

@ -98,7 +98,6 @@ def vertexGradientPick(ob, MODE):
pickValB= 0.0
TOALPHA= True
# set up 2 lines so we can measure their distances and calc the gradient
# make a line 90d to the grad in screenspace.