[Bf-blender-cvs] [c2ce9fdee97] lanpr-under-gp: LANPR: Chaininng panel is re-configured and shown.

YimingWu noreply at git.blender.org
Sun Jun 7 16:29:10 CEST 2020


Commit: c2ce9fdee9743b396398c8c270a0382acdac527b
Author: YimingWu
Date:   Thu Jun 4 21:47:05 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBc2ce9fdee9743b396398c8c270a0382acdac527b

LANPR: Chaininng panel is re-configured and shown.

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index 02da65bfba3..7d01096181c 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -871,8 +871,46 @@ class RENDER_PT_lanpr_options(RenderButtonsPanel, Panel):
         layout.use_property_decorate = False
 
         layout.prop(lanpr,"use_intersections")
+        layout.prop(lanpr,"enable_chaining", text = "Chained Lines")
 
 
+class RENDER_PT_lanpr_software_chain_styles(RenderButtonsPanel, Panel):
+    bl_label = "Chaining"
+    bl_parent_id = "RENDER_PT_lanpr"
+    bl_options = {'DEFAULT_CLOSED'}
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_LANPR', 'BLENDER_OPENGL', 'BLENDER_EEVEE'}
+
+    @classmethod
+    def poll(cls, context):
+        scene = context.scene
+        lanpr = scene.lanpr
+        return scene.render.engine!='BLENDER_LANPR' or lanpr.enable_chaining and (not (scene.render.engine=='BLENDER_LANPR' and lanpr.master_mode=='DPIX'))
+
+    def draw(self, context):
+        scene = context.scene
+        lanpr = scene.lanpr
+
+        layout = self.layout
+        layout.use_property_split = True
+        layout.use_property_decorate = False
+
+        if scene.render.engine=="BLENDER_LANPR":
+            layout.prop(lanpr, "use_same_taper", text="Taper Tips")
+            if lanpr.use_same_taper == "DISABLED":
+                col = layout.column(align = True)
+                col.prop(lanpr,"taper_left_distance")
+                col.prop(lanpr,"taper_left_strength", text="Strength")
+                col = layout.column(align = True)
+                col.prop(lanpr,"taper_right_distance")
+                col.prop(lanpr,"taper_right_strength", text="Strength")
+            else:
+                col = layout.column(align = True)
+                col.prop(lanpr,"taper_left_distance", text="Distance")
+                col.prop(lanpr,"taper_left_strength", text="Strength")
+        else:
+            layout.prop(lanpr, "chaining_geometry_threshold")
+            layout.prop(lanpr, "chaining_image_threshold")
+
 classes = (
     RENDER_PT_context,
     RENDER_PT_eevee_sampling,
@@ -909,6 +947,7 @@ classes = (
     RENDER_PT_lanpr_gpencil,
     RENDER_PT_lanpr_line_normal_effects,
     RENDER_PT_lanpr_options,
+    RENDER_PT_lanpr_software_chain_styles,
     LANPR_UL_linesets,
 )



More information about the Bf-blender-cvs mailing list