diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-24 13:15:57 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-24 13:15:57 +0300 |
commit | b61adec1fd1bbaadbb3d4fc97e13ed474713f5a6 (patch) | |
tree | 7712002d82871b4cd212b2b3e1064cebb80fc8ce /release/scripts/ui/properties_data_mesh.py | |
parent | 4d0c10d5ca9f2fb03a6183e77ed0265ed2218cae (diff) |
Bugfix #25365
Property buttons: the "ID template" allowed to unlink data from object,
like Mesh or Curve etc, which is not supported. Button now is hidden.
Thanks Dan Eicher for patch.
Also: improved tooltip for 'data browse'. It was generic, now it gives
specific per-type information.
Diffstat (limited to 'release/scripts/ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/ui/properties_data_mesh.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py index 4814d067436..52ac88ba168 100644 --- a/release/scripts/ui/properties_data_mesh.py +++ b/release/scripts/ui/properties_data_mesh.py @@ -70,13 +70,10 @@ class DATA_PT_context_mesh(MeshButtonsPanel, bpy.types.Panel): mesh = context.mesh space = context.space_data - split = layout.split(percentage=0.65) if ob: - split.template_ID(ob, "data") - split.separator() + layout.template_ID(ob, "data", unlink="None") elif mesh: - split.template_ID(space, "pin_id") - split.separator() + layout.template_ID(space, "pin_id", unlink="None") class DATA_PT_normals(MeshButtonsPanel, bpy.types.Panel): |