Object transparency setting should only show on MESH type
authorDaniel Salazar <zanqdo@gmail.com>
Sun, 5 Dec 2010 10:38:45 +0000 (10:38 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Sun, 5 Dec 2010 10:38:45 +0000 (10:38 +0000)
release/scripts/ui/properties_object.py
source/blender/makesrna/intern/rna_object.c

index 2532a99b402a954ce49dd58f125d5175e9dfbf94..40a1edafe872317abadd96ab9d86837be4a300c3 100644 (file)
@@ -217,7 +217,8 @@ class OBJECT_PT_display(ObjectButtonsPanel, bpy.types.Panel):
         col = split.column()
         col.prop(ob, "show_texture_space", text="Texture Space")
         col.prop(ob, "show_x_ray", text="X-Ray")
-        col.prop(ob, "show_transparent", text="Transparency")
+        if ob.type == 'MESH':
+            col.prop(ob, "show_transparent", text="Transparency")
 
 
 class OBJECT_PT_duplication(ObjectButtonsPanel, bpy.types.Panel):
index 555b84484c475a578c320372c2c7a53b10afed24..cd16b75a8ed233129942b76ac6c87c6f1c675020 100644 (file)
@@ -2159,7 +2159,7 @@ static void rna_def_object(BlenderRNA *brna)
        
        prop= RNA_def_property(srna, "show_transparent", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "dtx", OB_DRAWTRANSP);
-       RNA_def_property_ui_text(prop, "Draw Transparent", "Enables transparent materials for the object (Mesh only)");
+       RNA_def_property_ui_text(prop, "Draw Transparent", "Displays material transparency in the object");
        RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
        
        prop= RNA_def_property(srna, "show_x_ray", PROP_BOOLEAN, PROP_NONE);