- all add object operators now take view_align as an argument, and enter_editmode where its used. Makes running the operator from python pradictable without having to know the user prefs.

- missing return in function
- python error in view3d (assumed active object exists)
This commit is contained in:
Campbell Barton
2009-11-02 16:07:49 +00:00
parent 9ea97203ae
commit 1d9f90ed42
8 changed files with 197 additions and 70 deletions

View File

@@ -1334,7 +1334,7 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
col.itemR(view, "all_object_centers")
col.itemR(view, "relationship_lines")
if ob and ob.type == 'MESH':
mesh = context.active_object.data
mesh = ob.data
col.itemR(mesh, "all_edges")
col = layout.column()