update for changes in blenders api.

This commit is contained in:
Campbell Barton
2010-07-15 16:56:27 +00:00
parent f15da84f36
commit 29f96aa287
23 changed files with 80 additions and 80 deletions

View File

@ -101,12 +101,12 @@ def addMeshObj(mesh, objName):
scn = bpy.context.scene
for o in scn.objects:
o.selected = False
o.select = False
mesh.update()
nobj = bpy.data.objects.new(objName, mesh)
scn.objects.link(nobj)
nobj.selected = True
nobj.select = True
if scn.objects.active == None or scn.objects.active.mode == 'OBJECT':
scn.objects.active = nobj