Commit: 480abbe839e8b6305d92ded82f3acd2f69045ea0
Author: Joshua Leung
Date:   Tue Jul 31 02:05:13 2018 +1200
Branches: soc-2018-npr
https://developer.blender.org/rB480abbe839e8b6305d92ded82f3acd2f69045ea0

Fix: Ensure that LANPR panel is only enabled when that engine is enabled

- Fixed incorrect COMPAT_ENGINES define

- Removed poll() callback that was preventing the COMPAT_ENGINES
  set from working

- Have panel opened by default (since it doesn't need to stay collapsed
  when other engines are active anymore)

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

M       release/scripts/startup/bl_ui/properties_scene.py

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

diff --git a/release/scripts/startup/bl_ui/properties_scene.py 
b/release/scripts/startup/bl_ui/properties_scene.py
index 2d8a8d2242c..76ec27d9b4a 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -584,6 +584,7 @@ class SCENE_PT_viewport_display(SceneButtonsPanel, Panel):
         col.prop(scene.display, "light_direction")
         col.prop(scene.display, "shadow_shift")
 
+
 class LANPR_linesets(UIList):
     def draw_item(self, context, layout, data, item, icon, active_data, 
active_propname, index):
         lineset = item
@@ -597,14 +598,10 @@ class LANPR_linesets(UIList):
             layout.alignment = 'CENTER'
             layout.label("", icon_value=icon)
 
+
 class SCENE_PT_lanpr(SceneButtonsPanel, Panel):
-    COMPAT_ENGINES = {'BLENDER_CLAY'}
+    COMPAT_ENGINES = {'BLENDER_LANPR'}
     bl_label = "LANPR"
-    bl_options = {'DEFAULT_CLOSED'}
-    
-    @classmethod
-    def poll(cls, context):
-        return True
 
     def draw(self, context):
         layout = self.layout

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to