From 9dcfa9d13a1617e05b13bb4ea4d364242b48fdbe Mon Sep 17 00:00:00 2001
From: Maurice Raybaud <mauriceraybaud@hotmail.fr>
Date: Mon, 14 Oct 2019 23:37:02 +0200
Subject: [PATCH] Add back Ouput Properties panel

Ouput panel was gone since 2.8 UI refactoring
---
 render_povray/__init__.py | 5 +++--
 render_povray/ui.py       | 9 +++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 30f183402..69f580220 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 5f4157270..aedccf776 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"
-- 
GitLab