2.5: fix python error when showing 3d view properties panel
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 23 Nov 2009 15:19:30 +0000 (15:19 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 23 Nov 2009 15:19:30 +0000 (15:19 +0000)
with no active bone.

release/scripts/ui/space_view3d.py

index 23f64d5e55720976778edc1631dbaa9a17a97426..21521e36cbafa70794af1eed7ea1d19f88cc34e6 100644 (file)
@@ -1786,7 +1786,8 @@ class VIEW3D_PT_context_properties(bpy.types.Panel):
     def poll(self, context):
         member = self._active_context_member(context)
         if member:
-            return getattr(context, member).keys()
+            context_member = getattr(context, member)
+            return context_member and context_member.keys()
 
         return False