diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-03 11:21:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-03 11:21:33 +0400 |
commit | abb21a4da06868bdb2ff37fd9e362a225aae35ec (patch) | |
tree | efc02d8a43042491df5897d3333174eb06e29c0b /release | |
parent | 22bb09d0187845fb1e60fd9281940711018b9f7a (diff) |
fix for python error when pinning a non mesh object in mesh editmode.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 8c966825aee..618a88f0879 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -290,9 +290,8 @@ class DATA_PT_texface(MeshButtonsPanel, bpy.types.Panel): @classmethod def poll(cls, context): - ob = context.active_object - - return (context.mode == 'EDIT_MESH') and ob and ob.type == 'MESH' + obj = context.object + return (context.mode == 'EDIT_MESH') and obj and obj.type == 'MESH' def draw(self, context): layout = self.layout |