Fix #32638: mesh double sided normals option not available in any Cycles panel.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 24 Sep 2012 14:36:20 +0000 (14:36 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 24 Sep 2012 14:36:20 +0000 (14:36 +0000)
intern/cycles/blender/addon/ui.py

index 4d44dc84fdfd6a8be1bdabc2105f54ba0b65886f..6d4a6750203b02fc73d50096f39f360b531e520d 100644 (file)
@@ -437,6 +437,27 @@ class Cycles_PT_mesh_displacement(CyclesButtonsPanel, Panel):
         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"