Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/ui/buttons_data_lattice.py')
-rw-r--r--release/ui/buttons_data_lattice.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/ui/buttons_data_lattice.py b/release/ui/buttons_data_lattice.py
index 8f83cbb45f9..ad9b1b518b8 100644
--- a/release/ui/buttons_data_lattice.py
+++ b/release/ui/buttons_data_lattice.py
@@ -12,12 +12,16 @@ class DataButtonsPanel(bpy.types.Panel):
class DATA_PT_lattice(DataButtonsPanel):
__idname__ = "DATA_PT_lattice"
__label__ = "Lattice"
+
+ def poll(self, context):
+ return (context.object and context.object.type == 'LATTICE')
def draw(self, context):
+ layout = self.layout
+
ob = context.object
lat = context.lattice
space = context.space_data
- layout = self.layout
split = layout.split(percentage=0.65)