diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-08 20:01:21 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-08 20:01:21 +0400 |
commit | 23aa0c90678061a98dbc800780ca0490c57d5d31 (patch) | |
tree | 080d0c78da88adb5338c37b04cc1918f198b617f /release/scripts/startup/bl_ui/properties_render.py | |
parent | 32a6a3eb63b80e47fb083d49814090b89541e9ab (diff) |
Fix uilists showing data names translated (reported on bf-translations ML by Satoshi Yamasaki aka yamyam, thanks!).
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_render.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 29e32401d2b..1cd58328332 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -48,17 +48,11 @@ class RENDER_UL_renderlayers(UIList): # assert(isinstance(item, bpy.types.SceneRenderLayer) layer = item if self.layout_type in {'DEFAULT', 'COMPACT'}: - layout.label(layer.name, icon_value=icon) + layout.label(text=layer.name, translate=False, icon_value=icon) layout.prop(layer, "use", text="", index=index) elif self.layout_type in {'GRID'}: layout.alignment = 'CENTER' - layout.label("", icon_value=icon) - -# else if (RNA_struct_is_a(itemptr->type, &RNA_SceneRenderLayer)) { -# 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); -# } + layout.label(text="", icon_value=icon) class RenderButtonsPanel(): |