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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-03-22 17:27:24 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-03-22 17:27:24 +0400
commitbdebaf0fb49ff05750b283bbd92d21bb57127a19 (patch)
tree0e9e1645a983364e15cbc0abb9b3c910c0edf2b9 /release
parent44eb9cc2721463ee302dc3a74d45092bd10c12ac (diff)
Fix [#30614] (some Display settings are uneeded for non-geometry/material object types, and armature have no boundbox).
This commit: * Removes the Wire and Color options from the UI for all object types but meshes, curves/surfaces/texts, and metas. * Adds a basic bounding box drawing (and computing) for armatures.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 3570feb6f56..3a84517a369 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -211,8 +211,11 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
col = split.column()
col.prop(ob, "show_name", text="Name")
col.prop(ob, "show_axis", text="Axis")
- col.prop(ob, "show_wire", text="Wire")
- col.prop(ob, "color", text="Object Color")
+ if ob.type in {"MESH", "CURVE", "SURFACE", "META", "FONT"}:
+ # Makes no sense for cameras, armtures, etc.!
+ col.prop(ob, "show_wire", text="Wire")
+ # Only useful with object having faces/materials...
+ col.prop(ob, "color", text="Object Color")
col = split.column()
col.prop(ob, "show_texture_space", text="Texture Space")