Fix uilists showing data names translated (reported on bf-translations ML by Satoshi...
[blender.git] / release / scripts / startup / bl_ui / properties_render.py
index 29e32401d2b53b4be88b3787332e0660c8fc78de..1cd583283324cdb7927dec8f3e34b9c33d6af872 100644 (file)
@@ -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():