[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50847] trunk/blender/intern/cycles/ blender/addon/ui.py: Fix #32638: mesh double sided normals option not available in any Cycles panel.

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Sep 24 16:36:21 CEST 2012


Revision: 50847
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50847
Author:   blendix
Date:     2012-09-24 14:36:20 +0000 (Mon, 24 Sep 2012)
Log Message:
-----------
Fix #32638: mesh double sided normals option not available in any Cycles panel.

Modified Paths:
--------------
    trunk/blender/intern/cycles/blender/addon/ui.py

Modified: trunk/blender/intern/cycles/blender/addon/ui.py
===================================================================
--- trunk/blender/intern/cycles/blender/addon/ui.py	2012-09-24 13:48:37 UTC (rev 50846)
+++ trunk/blender/intern/cycles/blender/addon/ui.py	2012-09-24 14:36:20 UTC (rev 50847)
@@ -437,7 +437,28 @@
         layout.prop(cdata, "use_subdivision")
         layout.prop(cdata, "dicing_rate")
 
+class Cycles_PT_mesh_normals(CyclesButtonsPanel, Panel):
+    bl_label = "Normals"
+    bl_context = "data"
 
+    @classmethod
+    def poll(cls, context):
+        return CyclesButtonsPanel.poll(context) and context.mesh
+
+    def draw(self, context):
+        layout = self.layout
+
+        mesh = context.mesh
+
+        split = layout.split()
+
+        col = split.column()
+        col.prop(mesh, "show_double_sided")
+
+        col = split.column()
+        prop.label()
+
+
 class CyclesObject_PT_ray_visibility(CyclesButtonsPanel, Panel):
     bl_label = "Ray Visibility"
     bl_context = "object"




More information about the Bf-blender-cvs mailing list