dict.get() defaults to None as the second arg. no need to supply it.
This commit is contained in:
@@ -886,12 +886,12 @@ def create_nurbs(scn, context_nurbs, vert_loc, new_objects):
|
||||
Add nurbs object to blender, only support one type at the moment
|
||||
'''
|
||||
deg = context_nurbs.get('deg', (3,))
|
||||
curv_range = context_nurbs.get('curv_range', None)
|
||||
curv_range = context_nurbs.get('curv_range')
|
||||
curv_idx = context_nurbs.get('curv_idx', [])
|
||||
parm_u = context_nurbs.get('parm_u', [])
|
||||
parm_v = context_nurbs.get('parm_v', [])
|
||||
name = context_nurbs.get('name', 'ObjNurb')
|
||||
cstype = context_nurbs.get('cstype', None)
|
||||
cstype = context_nurbs.get('cstype')
|
||||
|
||||
if cstype == None:
|
||||
print('\tWarning, cstype not found')
|
||||
|
||||
Reference in New Issue
Block a user