Fix for missing toggle switches to enable/disable linesets. Also gave

uniform property name "use" to all toggle switches in Freestyle-related
options, according to recent RNA renaming.
This commit is contained in:
2010-10-10 23:34:27 +00:00
parent 84f5a9a718
commit cc77207ca4
5 changed files with 12 additions and 12 deletions

View File

@@ -1991,7 +1991,7 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe
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(RNA_struct_is_a(itemptr->type, &RNA_SceneRenderLayer)) {
else if(RNA_struct_is_a(itemptr->type, &RNA_SceneRenderLayer) || RNA_struct_is_a(itemptr->type, &RNA_FreestyleLineSet)) {
uiItemL(sub, name, icon);
uiBlockSetEmboss(block, UI_EMBOSS);
uiDefButR(block, OPTION, 0, "", 0, 0, UI_UNIT_X, UI_UNIT_Y, itemptr, "use", 0, 0, 0, 0, 0, NULL);