I think I added one to def p_linear_extrude_with_transform(p):
Code: Select all
def p_linear_extrude_with_transform(p):
'linear_extrude_with_transform : linear_extrude LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE'
if printverbose: print("Linear Extrude With Transform")
h = float(p[3]['height'])
s = 1.0
t = 0.0
if printverbose: print("Twist : ",p[3])
if 'scale' in p[3]:
s = [float(p[3]['scale'][0]), float(p[3]['scale'][1])]
#print('Scale: '+str(s))
if 'twist' in p[3]:
t = float(p[3]['twist'])
# Test if null object like from null text
if (len(p[6]) == 0) :
p[0] = []
return
if (len(p[6]) > 1) :
obj = fuse(p[6],"Linear Extrude Union")
else :
obj = p[6][0]
checkObjShape(obj)
if t != 0.0 or s != 1.0:
newobj = process_linear_extrude_with_transform(obj,h,t,s)
else:
newobj = process_linear_extrude(obj,h)
if p[3]['center']=='true' :
center(newobj,0,0,h)
p[0] = [newobj]
if gui:
obj.ViewObject.hide()
if printverbose: print("End Linear Extrude with twist")