Bugfix #5289: "Shape Wizard Widget" script was using non-existant key:

changed so "Key 0" is substituted for "Basis".  This may not be correct...
Also, fix to make ob.setEuler() accept a tuple again.
This commit is contained in:
Ken Hughes
2006-11-23 00:28:09 +00:00
parent d80b7cc5c4
commit 7b9fac49f5
2 changed files with 6 additions and 3 deletions

View File

@@ -106,10 +106,13 @@ def verifyIpocurve(ky,index):
nip = Ipo.New("Key","keyipo")
ky.ipo = nip
ipo = ky.ipo
idx = "Key " + str(index)
if index == 0:
idx = "Basis"
else:
idx = "Key " + str(index)
crv = ipo.getCurve(index)
if crv == None:
crv = ipo.addCurve(idx)
crv = ipo.addCurve(idx)
crv.setInterpolation("Linear")
return crv