Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / release / ui / buttons_data_lattice.py
index 895c1a65bea81d47940cc33ee87e5bb613465b7f..5d8a07c7d44142e3980cdf9aaa37687d981a6b99 100644 (file)
@@ -2,12 +2,12 @@
 import bpy
 
 class DataButtonsPanel(bpy.types.Panel):
-       __space_type__ = 'PROPERTIES'
-       __region_type__ = 'WINDOW'
+       __space_type__ = "PROPERTIES"
+       __region_type__ = "WINDOW"
        __context__ = "data"
        
        def poll(self, context):
-               return (context.lattice)
+               return (context.lattice != None)
        
 class DATA_PT_context_lattice(DataButtonsPanel):
        __show_header__ = False