- fixed python error when there is no active object

- made sequence strip selection more like object mode - only de-select the active with Shift+RMB
This commit is contained in:
Campbell Barton
2009-10-19 11:39:57 +00:00
parent 915c40708e
commit a216ce6cf8
2 changed files with 7 additions and 6 deletions

View File

@@ -1233,7 +1233,6 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
view = context.space_data
gs = context.scene.game_data
ob = context.object
mesh = context.active_object.data
col = layout.column()
col.itemR(view, "display_floor", text="Grid Floor")
@@ -1243,7 +1242,8 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
col.itemR(view, "outline_selected")
col.itemR(view, "all_object_centers")
col.itemR(view, "relationship_lines")
if ob.type =='MESH':
if ob and ob.type =='MESH':
mesh = context.active_object.data
col.itemR(mesh, "all_edges")
col = layout.column()