[Bf-extensions-cvs] [6b23a109] master: fixed SSS presets. UI now works.

Maurice Raybaud noreply at git.blender.org
Sat Apr 27 21:33:13 CEST 2019


Commit: 6b23a109624390c0685b4e479585610571aa7818
Author: Maurice Raybaud
Date:   Sat Apr 27 21:33:06 2019 +0200
Branches: master
https://developer.blender.org/rBA6b23a109624390c0685b4e479585610571aa7818

fixed SSS presets. UI now works.

===================================================================

M	render_povray/__init__.py
M	render_povray/ui.py

===================================================================

diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index cbf7b4c0..fabe865d 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -1153,7 +1153,12 @@ class MaterialRaytraceMirror(PropertyGroup):
                         "sampling is stopped)",
             min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, default=0.005, precision=3)
 
-    
+    mirror_color: FloatVectorProperty(
+            name="Mirror color",
+            description=("Mirror color of the material"),
+            precision=4, step=0.01,
+            default=(1.0,1.0,1.0), options={'ANIMATABLE'}, subtype='COLOR')
+            
     reflect_factor: FloatProperty(
             name="Reflectivity",
             description="Amount of mirror reflection for raytrace",
@@ -3691,6 +3696,7 @@ def unregister():
     del bpy.types.Scene.pov
     del bpy.types.Material.pov
     del bpy.types.Material.pov_subsurface_scattering
+    del bpy.types.Material.pov_raytrace_mirror
     #del bpy.types.Modifier.pov
     del bpy.types.Texture.pov
     del bpy.types.Object.pov
diff --git a/render_povray/ui.py b/render_povray/ui.py
index cfb0051c..f033da53 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -103,12 +103,6 @@ class AddPresetWorld(AddPresetBase, bpy.types.Operator):
     # where to store the preset
     preset_subdir = "pov/world"
 
-
-# classes = (
-    # POV_WORLD_MT_presets,
-    # AddPresetWorld,
-    # )
-
 # Example of wrapping every class 'as is'
 from bl_ui import properties_texture
 from bl_ui.properties_texture import context_tex_datablock
@@ -567,11 +561,6 @@ def light_panel_func(self, context):
     row.operator(AddPresetLamp.bl_idname, text="", icon='ADD')
     row.operator(AddPresetLamp.bl_idname, text="", icon='REMOVE').remove_active = True
 
-
-# classes = (
-    # POV_LIGHT_MT_presets,
-    # AddPresetLamp,
-    # )
 '''#TORECREATE##DEPRECATED#
 class LIGHT_PT_POV_sunsky(PovLampButtonsPanel, bpy.types.Panel):
     bl_label = properties_data_light.DATA_PT_sunsky.bl_label
@@ -1000,13 +989,6 @@ def rad_panel_func(self, context):
     row.operator(AddPresetRadiosity.bl_idname, text="", icon='ADD')
     row.operator(AddPresetRadiosity.bl_idname, text="", icon='REMOVE').remove_active = True
 
-
-# classes = (
-    # POV_RADIOSITY_MT_presets,
-    # AddPresetRadiosity,
-    # )
-
-
 class RENDER_PT_povray_media(WorldButtonsPanel, bpy.types.Panel):
     bl_label = "Atmosphere Media"
     COMPAT_ENGINES = {'POVRAY_RENDER'}
@@ -1140,9 +1122,9 @@ class MATERIAL_PT_POV_sss(MaterialButtonsPanel, bpy.types.Panel):
 
         row = layout.row().split()
         sub = row.row(align=True).split(align=True, factor=0.75)
-        sub.menu("MATERIAL_MT_POV_sss_presets", text=MATERIAL_MT_POV_sss_presets.bl_label)
-        sub.operator("AddPresetSSS.bl_idname", text="", icon='ADD')
-        sub.operator("AddPresetSSS.bl_idname", text="", icon='REMOVE').remove_active = True
+        sub.menu(MATERIAL_MT_POV_sss_presets.__name__, text=MATERIAL_MT_POV_sss_presets.bl_label)
+        sub.operator(AddPresetSSS.bl_idname, text="", icon='ADD')
+        sub.operator(AddPresetSSS.bl_idname, text="", icon='REMOVE').remove_active = True
 
         split = layout.split()
 
@@ -1264,7 +1246,7 @@ class MATERIAL_PT_POV_mirror(MaterialButtonsPanel, bpy.types.Panel):
 
         col = split.column()
         col.prop(raym, "reflect_factor")
-        col.prop(mat, "mirror_color", text="")
+        col.prop(raym, "mirror_color", text="")
 
         col = split.column()
         col.prop(raym, "fresnel")



More information about the Bf-extensions-cvs mailing list