[Bf-blender-cvs] [7436fb2ef1d] blender2.8: Merge branch 'master' into 28

Campbell Barton noreply at git.blender.org
Tue Jun 5 16:36:45 CEST 2018


Commit: 7436fb2ef1d8bb0af0589f8ec4b45c8800aed983
Author: Campbell Barton
Date:   Tue Jun 5 16:35:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB7436fb2ef1d8bb0af0589f8ec4b45c8800aed983

Merge branch 'master' into 28

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



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

diff --cc release/scripts/startup/bl_ui/properties_data_curve.py
index 057a7233206,f57156c1bae..47c53d6ffb5
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@@ -167,46 -166,26 +167,47 @@@ class DATA_PT_geometry_curve(CurveButto
  
          curve = context.curve
  
 -        split = layout.split()
 -
 -        col = split.column()
 -        col.label(text="Modification:")
 +        col = layout.column()
          col.prop(curve, "offset")
 -        col.prop(curve, "extrude")
 -        col.label(text="Taper Object:")
 -        col.prop(curve, "taper_object", text="")
  
 -        col = split.column()
 -        col.label(text="Bevel:")
 -        col.prop(curve, "bevel_depth", text="Depth")
 -        col.prop(curve, "bevel_resolution", text="Resolution")
 -        col.label(text="Bevel Object:")
 -        col.prop(curve, "bevel_object", text="")
 +        sub = col.column()
 +        sub.active = (curve.bevel_object is None)
 +        sub.prop(curve, "extrude")
 +
 +        col.prop(curve, "taper_object")
 +
 +        sub = col.column()
 +        sub.active = curve.taper_object is not None
 +        sub.prop(curve, "use_map_taper")
 +
++
 +class DATA_PT_geometry_curve_bevel(CurveButtonsPanelCurve, Panel):
 +    bl_label = "Bevel"
 +    bl_parent_id = "DATA_PT_geometry_curve"
 +
 +    @classmethod
 +    def poll(cls, context):
 +        return (type(context.curve) in {Curve, TextCurve})
 +
 +    def draw(self, context):
 +        layout = self.layout
 +        layout.use_property_split = True
 +
 +        curve = context.curve
 +
 +        col = layout.column()
 +        sub = col.column()
 +        sub.active = (curve.bevel_object is None)
 +        sub.prop(curve, "bevel_depth", text="Depth")
 +        sub.prop(curve, "bevel_resolution", text="Resolution")
 +
 +        col.prop(curve, "bevel_object", text="Object")
 +
 +        sub = col.column()
 +        sub.active = curve.bevel_object is not None
 +        sub.prop(curve, "use_fill_caps")
  
          if type(curve) is not TextCurve:
 -            col = layout.column(align=True)
 -            row = col.row()
 -            row.label(text="Bevel Factor:")
  
              col = layout.column()
              col.active = (
@@@ -340,45 -325,42 +341,46 @@@ class DATA_PT_font(CurveButtonsPanelTex
          row.label(text="Bold & Italic")
          row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink")
  
 -        # layout.prop(text, "font")
 +        layout.separator()
  
 -        split = layout.split()
 +        row = layout.row(align=True)
 +        row.prop(char, "use_bold", toggle=True)
 +        row.prop(char, "use_italic", toggle=True)
 +        row.prop(char, "use_underline", toggle=True)
 +        row.prop(char, "use_small_caps", toggle=True)
 +
++
 +class DATA_PT_font_transform(CurveButtonsPanelText, Panel):
 +    bl_label = "Transform"
 +    bl_parent_id = "DATA_PT_font"
 +
 +    def draw(self, context):
 +        layout = self.layout
 +
 +        text = context.curve
 +        char = context.curve.edit_format
 +
 +        layout.use_property_split = True
 +
 +        col = layout.column()
 +
 +        col.separator()
  
 -        col = split.column()
          col.prop(text, "size", text="Size")
 -        col = split.column()
          col.prop(text, "shear")
  
 -        split = layout.split()
 -
 -        col = split.column()
 -        col.label(text="Object Font:")
 -        col.prop(text, "family", text="")
 +        col.separator()
  
 -        col = split.column()
 -        col.label(text="Text on Curve:")
 -        col.prop(text, "follow_curve", text="")
 +        col.prop(text, "family")
 +        col.prop(text, "follow_curve")
  
 -        split = layout.split()
 +        col.separator()
  
 -        col = split.column()
          sub = col.column(align=True)
 -        sub.label(text="Underline:")
 -        sub.prop(text, "underline_position", text="Position")
 -        sub.prop(text, "underline_height", text="Thickness")
 -
 -        col = split.column()
 -        col.label(text="Character:")
 -        col.prop(char, "use_bold")
 -        col.prop(char, "use_italic")
 -        col.prop(char, "use_underline")
 +        sub.prop(text, "underline_position", text="Underline Position")
 +        sub.prop(text, "underline_height", text="Underline Thickness")
  
 -        row = layout.row()
 -        row.prop(text, "small_caps_scale", text="Small Caps")
 -        row.prop(char, "use_small_caps")
 +        col.prop(text, "small_caps_scale", text="Small Caps Scale")
  
  
  class DATA_PT_paragraph(CurveButtonsPanelText, Panel):
@@@ -389,41 -371,23 +391,40 @@@
  
          text = context.curve
  
 -        layout.label(text="Horizontal Alignment:")
 -        layout.row().prop(text, "align_x", expand=True)
  
 -        layout.label(text="Vertical Alignment:")
 +class DATA_PT_paragraph_alignment(CurveButtonsPanelText, Panel):
 +    bl_parent_id = "DATA_PT_paragraph"
 +    bl_label = "Alignment"
 +
 +    def draw(self, context):
 +        layout = self.layout
 +        layout.use_property_split = False
 +
 +        text = context.curve
 +
 +        layout.row().prop(text, "align_x", expand=True)
          layout.row().prop(text, "align_y", expand=True)
  
 -        split = layout.split()
  
- 
 -        col = split.column(align=True)
 -        col.label(text="Spacing:")
 -        col.prop(text, "space_character", text="Letter")
 -        col.prop(text, "space_word", text="Word")
 -        col.prop(text, "space_line", text="Line")
 +class DATA_PT_paragraph_spacing(CurveButtonsPanelText, Panel):
 +    bl_parent_id = "DATA_PT_paragraph"
 +    bl_label = "Spacing"
  
 -        col = split.column(align=True)
 -        col.label(text="Offset:")
 -        col.prop(text, "offset_x", text="X")
 +    def draw(self, context):
 +        layout = self.layout
 +        layout.use_property_split = True
 +
 +        text = context.curve
 +
 +        col = layout.column(align=True)
 +        col.prop(text, "space_character", text="Character Spacing")
 +        col.prop(text, "space_word", text="Word Spacing")
 +        col.prop(text, "space_line", text="Line Spacing")
 +
 +        layout.separator()
 +
 +        col = layout.column(align=True)
 +        col.prop(text, "offset_x", text="Offset X")
          col.prop(text, "offset_y", text="Y")
  
  
diff --cc release/scripts/startup/bl_ui/properties_data_lamp.py
index e5dd1bbd771,f9394139b42..2727c84e820
--- a/release/scripts/startup/bl_ui/properties_data_lamp.py
+++ b/release/scripts/startup/bl_ui/properties_data_lamp.py
@@@ -166,80 -210,104 +166,79 @@@ class DATA_PT_EEVEE_shadow(DataButtonsP
  
          lamp = context.lamp
  
 -        layout.row().prop(lamp, "shadow_method", expand=True)
 +        layout.active = lamp.use_shadow
  
 -        if lamp.shadow_method == 'NOSHADOW' and lamp.type == 'AREA':
 -            split = layout.split()
 -
 -            col = split.column()
 -            col.label(text="Form Factor Sampling:")
 -
 -            sub = col.row(align=True)
 -
 -            if lamp.shape == 'SQUARE':
 -                sub.prop(lamp, "shadow_ray_samples_x", text="Samples")
 -            elif lamp.shape == 'RECTANGLE':
 -                sub.prop(lamp, "shadow_ray_samples_x", text="Samples X")
 -                sub.prop(lamp, "shadow_ray_samples_y", text="Samples Y")
 -
 -        if lamp.shadow_method != 'NOSHADOW':
 -            split = layout.split()
 +        col = layout.column()
 +        sub = col.column(align=True)
 +        sub.prop(lamp, "shadow_buffer_clip_start", text="Clip Start")
 +        sub.prop(lamp, "shadow_buffer_clip_end", text="End")
  
 -            col = split.column()
 -            col.prop(lamp, "shadow_color", text="")
 +        col.prop(lamp, "shadow_buffer_soft", text="Softness")
  
 -            col = split.column()
 -            col.prop(lamp, "use_shadow_layer", text="This Layer Only")
 -            col.prop(lamp, "use_only_shadow")
 +        col.separator()
  
 -        if lamp.shadow_method == 'RAY_SHADOW':
 -            split = layout.split()
 +        col.prop(lamp, "shadow_buffer_bias", text="Bias")
 +        col.prop(lamp, "shadow_buffer_exp", text="Exponent")
 +        col.prop(lamp, "shadow_buffer_bleed_bias", text="Bleed Bias")
  
 -            col = split.column()
 -            col.label(text="Sampling:")
  
- 
 -            if lamp.type in {'POINT', 'SUN', 'SPOT'}:
 -                sub = col.row()
 +class DATA_PT_EEVEE_shadow_cascaded_shadow_map(DataButtonsPanel, Panel):
 +    bl_label = "Cascaded Shadow Map"
 +    bl_parent_id = "DATA_PT_EEVEE_shadow"
 +    bl_options = {'DEFAULT_CLOSED'}
 +    COMPAT_ENGINES = {'BLENDER_EEVEE'}
  
 -                sub.prop(lamp, "shadow_ray_samples", text="Samples")
 -                sub.prop(lamp, "shadow_soft_size", text="Soft Size")
 +    @classmethod
 +    def poll(cls, context):
 +        lamp = context.lamp
 +        engine = context.engine
  
 -            elif lamp.type == 'AREA':
 -                sub = col.row(align=True)
 +        return (lamp and lamp.type == 'SUN') and (engine in cls.COMPAT_ENGINES)
  
 -                if lamp.shape == 'SQUARE':
 -                    sub.prop(lamp, "shadow_ray_samples_x", text="Samples")
 -                elif lamp.shape == 'RECTANGLE':
 -                    sub.prop(lamp, "shadow_ray_samples_x", text="Samples X")
 -                    sub.prop(lamp, "shadow_ray_samples_y", text="Samples Y")
 +    def draw(self, context):
 +        layout = self.layout
 +        lamp = context.lamp
 +        layout.use_property_split = True
  
 -            col.row().prop(lamp, "shadow_ray_sample_method", expand=True)
 +        col = layout.column()
  
 -            if lamp.shadow_ray_sample_method == 'ADAPTIVE_QMC':
 -                layout.prop(lamp, "shadow_adaptive_threshold", text="Threshold")
 +        col.prop(lamp, "shadow_cascade_count", text="Count")
 +        col.prop(lamp, "shadow_cascade_fade", text="Fade")
  
 -            if lamp.type == 'AREA' and lamp.shadow_ray_sample_method == 'CONSTANT_JITTERED':
 -                row = layout.row()
 -                row.prop(lamp, "use_umbra")
 -                row.prop(lamp, "use_

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list