[Bf-blender-cvs] [480abbe839e] soc-2018-npr: Fix: Ensure that LANPR panel is only enabled when that engine is enabled
Joshua Leung
noreply at git.blender.org
Mon Jul 30 16:05:22 CEST 2018
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
More information about the Bf-blender-cvs
mailing list