[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24098] trunk/blender/source/blender/ editors/interface/interface_templates.c: Bugfix: material texture slot checkboxes were not showing up anymore.
Brecht Van Lommel
brecht at blender.org
Mon Oct 26 20:54:55 CET 2009
Revision: 24098
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24098
Author: blendix
Date: 2009-10-26 20:54:55 +0100 (Mon, 26 Oct 2009)
Log Message:
-----------
Bugfix: material texture slot checkboxes were not showing up anymore.
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface_templates.c
Modified: trunk/blender/source/blender/editors/interface/interface_templates.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_templates.c 2009-10-26 19:50:07 UTC (rev 24097)
+++ trunk/blender/source/blender/editors/interface/interface_templates.c 2009-10-26 19:54:55 UTC (rev 24098)
@@ -1989,14 +1989,15 @@
name= (namebuf)? namebuf: "";
/* hardcoded types */
- uiBlockSetEmboss(block, UI_EMBOSSN);
-
if(itemptr->type == &RNA_MeshTextureFaceLayer || itemptr->type == &RNA_MeshColorLayer) {
uiItemL(sub, name, icon);
+ uiBlockSetEmboss(block, UI_EMBOSSN);
uiDefIconButR(block, TOG, 0, ICON_SCENE, 0, 0, UI_UNIT_X, UI_UNIT_Y, itemptr, "active_render", 0, 0, 0, 0, 0, NULL);
+ uiBlockSetEmboss(block, UI_EMBOSS);
}
- else if(itemptr->type == &RNA_MaterialTextureSlot) {
+ else if(RNA_struct_is_a(itemptr->type, &RNA_MaterialTextureSlot)) {
uiItemL(sub, name, icon);
+ uiBlockSetEmboss(block, UI_EMBOSS);
uiDefButR(block, OPTION, 0, "", 0, 0, UI_UNIT_X, UI_UNIT_Y, ptr, "use_textures", i, 0, 0, 0, 0, NULL);
}
else if(itemptr->type == &RNA_ShapeKey) {
@@ -2006,6 +2007,7 @@
uiItemL(split, name, icon);
+ uiBlockSetEmboss(block, UI_EMBOSSN);
row= uiLayoutRow(split, 1);
if(i == 0) uiItemL(row, "", 0);
else uiItemR(row, "", 0, itemptr, "value", 0);
@@ -2013,12 +2015,11 @@
if(ob->mode == OB_MODE_EDIT && !((ob->shapeflag & OB_SHAPE_EDIT_MODE) && ob->type == OB_MESH))
uiLayoutSetActive(row, 0);
//uiItemR(row, "", ICON_MUTE_IPO_OFF, itemptr, "mute", 0);
+ uiBlockSetEmboss(block, UI_EMBOSS);
}
else
uiItemL(sub, name, icon);
- uiBlockSetEmboss(block, UI_EMBOSS);
-
/* free name */
if(namebuf)
MEM_freeN(namebuf);
More information about the Bf-blender-cvs
mailing list