[Bf-blender-cvs] [d70ea22f36d] temp-lanpr-cleanup: LANPR: Line type target hide selector when use==false.
YimingWu
noreply at git.blender.org
Sat Sep 14 10:20:12 CEST 2019
Commit: d70ea22f36d151cbc4091bae10e50d4ad85138cb
Author: YimingWu
Date: Thu Sep 12 22:29:36 2019 +0800
Branches: temp-lanpr-cleanup
https://developer.blender.org/rBd70ea22f36d151cbc4091bae10e50d4ad85138cb
LANPR: Line type target hide selector when use==false.
===================================================================
M release/scripts/startup/bl_ui/properties_collection.py
M release/scripts/startup/bl_ui/properties_lanpr.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index aab7d3be9cb..a20d416767c 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -35,7 +35,7 @@ class CollectionButtonsPanel:
def lanpr_make_line_type_entry(col, line_type, text_disp, expand, search_from):
col.prop(line_type, "use", text=text_disp)
- if expand:
+ if line_type.use and expand:
col.prop_search(line_type, "layer", search_from, "layers")
col.prop_search(line_type, "material", search_from, "materials")
diff --git a/release/scripts/startup/bl_ui/properties_lanpr.py b/release/scripts/startup/bl_ui/properties_lanpr.py
index 22f969cd894..d80b42cb975 100644
--- a/release/scripts/startup/bl_ui/properties_lanpr.py
+++ b/release/scripts/startup/bl_ui/properties_lanpr.py
@@ -34,7 +34,7 @@ class LanprButtonsPanel:
def lanpr_make_line_type_entry(col, line_type, text_disp, expand, search_from):
col.prop(line_type, "use", text=text_disp)
- if expand:
+ if line_type.use and expand:
col.prop_search(line_type, "layer", search_from, "layers")
col.prop_search(line_type, "material", search_from, "materials")
More information about the Bf-blender-cvs
mailing list