dict.get() defaults to None as the second arg. no need to supply it.

This commit is contained in:
2010-01-04 21:10:51 +00:00
parent 2034a77a45
commit c79cf56b69
4 changed files with 9 additions and 9 deletions

View File

@@ -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')