[Bf-extensions-cvs] [9dcfa9d1] master: Add back Ouput Properties panel

Maurice Raybaud noreply at git.blender.org
Mon Oct 14 23:37:13 CEST 2019


Commit: 9dcfa9d13a1617e05b13bb4ea4d364242b48fdbe
Author: Maurice Raybaud
Date:   Mon Oct 14 23:37:02 2019 +0200
Branches: master
https://developer.blender.org/rBA9dcfa9d13a1617e05b13bb4ea4d364242b48fdbe

Add back Ouput Properties panel

Ouput panel was gone since 2.8 UI refactoring

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

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

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

diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 30f18340..69f58022 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -19,13 +19,14 @@
 # <pep8 compliant>
 
 bl_info = {
+    #coming soon: "name": "POV-3.8",
     "name": "POV-3.7",
     "author": "Campbell Barton, Maurice Raybaud, Leonid Desyatkov, "
               "Bastien Montagne, Constantin Rahn, Silvio Falcinelli",
     "version": (0, 1, 0),
     "blender": (2, 80, 0),
-    "location": "Render > Engine > POV-Ray 3.7",
-    "description": "POV-Ray 3.7 integration for blender",
+    "location": "Render > Engine > Persistence Of Vision",
+    "description": "POV-Ray integration for blender",
     "wiki_url": "https://archive.blender.org/wiki/index.php/"
                 "Extensions:2.6/Py/Scripts/Render/POV-Ray/",
     "category": "Render",
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 5f415727..aedccf77 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -214,6 +214,15 @@ for member in dir(properties_particle):  # add all "particle" panels from blende
         pass
 del properties_particle
 
+# Example of wrapping every class 'as is'
+from bl_ui import properties_output
+for member in dir(properties_output):
+    subclass = getattr(properties_output, member)
+    try:
+        subclass.COMPAT_ENGINES.add('POVRAY_RENDER')
+    except:
+        pass
+del properties_output
 
 class POV_WORLD_MT_presets(bpy.types.Menu):
     bl_label = "World Presets"



More information about the Bf-extensions-cvs mailing list