2.5 Buttons
[blender-staging.git] / release / ui / buttons_data_lattice.py
index c7d5b9cfe4a255bd294f050a828a0cb4ba966231..4bcff9f53892f75f0c4ba1d47dc93ae8b9f66a00 100644 (file)
@@ -18,9 +18,6 @@ class DATA_PT_lattice(DataButtonsPanel):
                lat = context.active_object.data
                layout = self.layout
 
-               if not lat:
-                       return
-               
                row = layout.row()
                row.itemR(lat, "points_u")
                row.itemR(lat, "interpolation_type_u", expand=True)
@@ -37,4 +34,4 @@ class DATA_PT_lattice(DataButtonsPanel):
                row.itemR(lat, "outside")
                row.itemR(lat, "shape_keys")
 
-bpy.types.register(DATA_PT_lattice)
+bpy.types.register(DATA_PT_lattice)
\ No newline at end of file