diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-02-03 19:14:04 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-02-03 19:14:04 +0300 |
commit | d02e644060bba0cab0111fdfa8b049f7d9cce443 (patch) | |
tree | 4211ea4de9959277866f9429ba15d54d4ba4e0fb /release | |
parent | 54d6e071ab6b89dd26ff652666f56bad161f4634 (diff) | |
parent | e49b702527440997ef32967ef368c1212a2311f9 (diff) |
Merge branch 'master' into eevee-dof-refactor
Diffstat (limited to 'release')
10 files changed, 95 insertions, 57 deletions
diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c index 191758277ed..2754b7f06f8 100644 --- a/release/datafiles/userdef/userdef_default_theme.c +++ b/release/datafiles/userdef/userdef_default_theme.c @@ -287,6 +287,7 @@ const bTheme U_theme_default = { .outline_width = 1, .facedot_size = 4, .match = RGBA(0x5680c2ff), + .active = RGBA(0x5680c2ff), }, .space_view3d = { .back = RGBA(0x393939ff), diff --git a/release/scripts/presets/interface_theme/blender_light.xml b/release/scripts/presets/interface_theme/blender_light.xml index 8ece3b46f5f..91ccd574c31 100644 --- a/release/scripts/presets/interface_theme/blender_light.xml +++ b/release/scripts/presets/interface_theme/blender_light.xml @@ -855,6 +855,7 @@ <properties> <ThemeProperties match="#5680c2" + active_modifier="#5680c2ff" > <space> <ThemeSpaceGeneric diff --git a/release/scripts/presets/keyconfig/blender_27x.py b/release/scripts/presets/keyconfig/blender_27x.py index efb013b9216..2a7f0b07fa6 100644 --- a/release/scripts/presets/keyconfig/blender_27x.py +++ b/release/scripts/presets/keyconfig/blender_27x.py @@ -1,3 +1,28 @@ +# +# Notes on this key-map: +# +# This uses Blender's key-map, running with `legacy=True`. +# +# The intention of this key-map is to match Blender 2.7x which had many more key-map items available. +# +# There are some differences with the original Blender 2.7x key-map. +# There is no intention to change these are they are not considered significant +# enough to make a 1:1 match with the previous Blender version. +# +# These include: +# +# 3D View +# ======= +# +# - Border Render (`Shift-B` -> `Ctrl-B`) +# Both `Shift-B` and `Ctrl-B` were used. +# +# Time Line/Animation Views +# ========================= +# +# - Start Frame/End Frame (`S/E` -> `Ctrl-Home/Ctrl-End`) +# + import os import bpy from bpy.props import ( diff --git a/release/scripts/startup/bl_ui/properties_physics_field.py b/release/scripts/startup/bl_ui/properties_physics_field.py index c8c49ee02b0..7e017b121b3 100644 --- a/release/scripts/startup/bl_ui/properties_physics_field.py +++ b/release/scripts/startup/bl_ui/properties_physics_field.py @@ -118,6 +118,9 @@ class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel): col.prop(field, "strength") + sub = col.column(heading="Affect") + sub.prop(field, "apply_to_location", text="Location") + col = flow.column() col.prop(field, "texture_nabla") col.prop(field, "use_object_coords") @@ -128,6 +131,10 @@ class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel): col.prop(field, "strength") col.prop(field, "flow") + sub = col.column(heading="Affect") + sub.prop(field, "apply_to_location", text="Location") + sub.prop(field, "apply_to_rotation", text="Rotation") + col = flow.column() col.prop(field, "source_object") col.prop(field, "use_smoke_density") diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index fdc3732f92a..68cded82ce3 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -503,6 +503,7 @@ class _defs_view3d_add: if extra: layout.use_property_split = True layout.row().prop(props, "plane_axis", expand=True) + layout.row().prop(props, "plane_axis_auto") layout.label(text="Base") layout.row().prop(props, "plane_origin_base", expand=True) diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e653ead21bb..ebb6280a42f 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -6247,17 +6247,20 @@ class VIEW3D_PT_overlay_edit_mesh(Panel): overlay = view.overlay display_all = overlay.show_overlays + is_any_solid_shading = not (shading.show_xray or (shading.type == 'WIREFRAME')) + col = layout.column() col.active = display_all split = col.split() sub = split.column() - sub.active = not ((shading.type == 'WIREFRAME') or shading.show_xray) + sub.active = is_any_solid_shading sub.prop(overlay, "show_edges", text="Edges") sub = split.column() sub.prop(overlay, "show_faces", text="Faces") sub = split.column() + sub.active = is_any_solid_shading sub.prop(overlay, "show_face_center", text="Center") row = col.row(align=True) diff --git a/release/scripts/templates_py/gizmo_custom_geometry.py b/release/scripts/templates_py/gizmo_custom_geometry.py index b8621c834ab..4105a99c633 100644 --- a/release/scripts/templates_py/gizmo_custom_geometry.py +++ b/release/scripts/templates_py/gizmo_custom_geometry.py @@ -127,25 +127,25 @@ class MyCustomShapeWidgetGroup(GizmoGroup): def setup(self, context): # Assign the 'offset' target property to the light energy. ob = context.object - mpr = self.gizmos.new(MyCustomShapeWidget.bl_idname) - mpr.target_set_prop("offset", ob.data, "energy") + gz = self.gizmos.new(MyCustomShapeWidget.bl_idname) + gz.target_set_prop("offset", ob.data, "energy") - mpr.color = 1.0, 0.5, 1.0 - mpr.alpha = 0.5 + gz.color = 1.0, 0.5, 1.0 + gz.alpha = 0.5 - mpr.color_highlight = 1.0, 1.0, 1.0 - mpr.alpha_highlight = 0.5 + gz.color_highlight = 1.0, 1.0, 1.0 + gz.alpha_highlight = 0.5 # units are large, so shrink to something more reasonable. - mpr.scale_basis = 0.1 - mpr.use_draw_modal = True + gz.scale_basis = 0.1 + gz.use_draw_modal = True - self.energy_widget = mpr + self.energy_gizmo = gz def refresh(self, context): ob = context.object - mpr = self.energy_widget - mpr.matrix_basis = ob.matrix_world.normalized() + gz = self.energy_gizmo + gz.matrix_basis = ob.matrix_world.normalized() classes = ( diff --git a/release/scripts/templates_py/gizmo_operator.py b/release/scripts/templates_py/gizmo_operator.py index 7ab694c1619..450f67ba3a4 100644 --- a/release/scripts/templates_py/gizmo_operator.py +++ b/release/scripts/templates_py/gizmo_operator.py @@ -34,7 +34,7 @@ def main(context, plane_co, plane_no): class SelectSideOfPlane(Operator): - """UV Operator description""" + """Select all vertices on one side of a plane defined by a location and a direction""" bl_idname = "mesh.select_side_of_plane" bl_label = "Select Side of Plane" bl_options = {'REGISTER', 'UNDO'} @@ -126,20 +126,20 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): # XXX, this may change! op.execute(context) - mpr = self.gizmos.new("GIZMO_GT_move_3d") - mpr.target_set_handler("offset", get=move_get_cb, set=move_set_cb) + gz = self.gizmos.new("GIZMO_GT_move_3d") + gz.target_set_handler("offset", get=move_get_cb, set=move_set_cb) - mpr.use_draw_value = True + gz.use_draw_value = True - mpr.color = 0.8, 0.8, 0.8 - mpr.alpha = 0.5 + gz.color = 0.8, 0.8, 0.8 + gz.alpha = 0.5 - mpr.color_highlight = 1.0, 1.0, 1.0 - mpr.alpha_highlight = 1.0 + gz.color_highlight = 1.0, 1.0, 1.0 + gz.alpha_highlight = 1.0 - mpr.scale_basis = 0.2 + gz.scale_basis = 0.2 - self.widget_move = mpr + self.gizmo_move = gz # ---- # Dial @@ -147,7 +147,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): def direction_get_cb(): op = SelectSideOfPlaneGizmoGroup.my_target_operator(context) - no_a = self.widget_dial.matrix_basis.col[1].xyz + no_a = self.gizmo_dial.matrix_basis.col[1].xyz no_b = Vector(op.plane_no) no_a = (no_a @ self.view_inv).xy.normalized() @@ -157,23 +157,23 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): def direction_set_cb(value): op = SelectSideOfPlaneGizmoGroup.my_target_operator(context) matrix_rotate = Matrix.Rotation(-value, 3, self.rotate_axis) - no = matrix_rotate @ self.widget_dial.matrix_basis.col[1].xyz + no = matrix_rotate @ self.gizmo_dial.matrix_basis.col[1].xyz op.plane_no = no op.execute(context) - mpr = self.gizmos.new("GIZMO_GT_dial_3d") - mpr.target_set_handler("offset", get=direction_get_cb, set=direction_set_cb) - mpr.draw_options = {'ANGLE_START_Y'} + gz = self.gizmos.new("GIZMO_GT_dial_3d") + gz.target_set_handler("offset", get=direction_get_cb, set=direction_set_cb) + gz.draw_options = {'ANGLE_START_Y'} - mpr.use_draw_value = True + gz.use_draw_value = True - mpr.color = 0.8, 0.8, 0.8 - mpr.alpha = 0.5 + gz.color = 0.8, 0.8, 0.8 + gz.alpha = 0.5 - mpr.color_highlight = 1.0, 1.0, 1.0 - mpr.alpha_highlight = 1.0 + gz.color_highlight = 1.0, 1.0, 1.0 + gz.alpha_highlight = 1.0 - self.widget_dial = mpr + self.gizmo_dial = gz def draw_prepare(self, context): from mathutils import Vector @@ -194,7 +194,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): no_y = no_z.orthogonal() no_x = no_z.cross(no_y) - matrix = self.widget_move.matrix_basis + matrix = self.gizmo_move.matrix_basis matrix.identity() matrix.col[0].xyz = no_x matrix.col[1].xyz = no_y @@ -206,7 +206,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): no_y = (no - (no.project(no_z))).normalized() no_x = self.rotate_axis.cross(no_y) - matrix = self.widget_dial.matrix_basis + matrix = self.gizmo_dial.matrix_basis matrix.identity() matrix.col[0].xyz = no_x matrix.col[1].xyz = no_y diff --git a/release/scripts/templates_py/gizmo_operator_target.py b/release/scripts/templates_py/gizmo_operator_target.py index efb6a70489a..30126763daf 100644 --- a/release/scripts/templates_py/gizmo_operator_target.py +++ b/release/scripts/templates_py/gizmo_operator_target.py @@ -24,27 +24,27 @@ class MyCameraWidgetGroup(GizmoGroup): def setup(self, context): # Run an operator using the dial gizmo ob = context.object - mpr = self.gizmos.new("GIZMO_GT_dial_3d") - props = mpr.target_set_operator("transform.rotate") + gz = self.gizmos.new("GIZMO_GT_dial_3d") + props = gz.target_set_operator("transform.rotate") props.constraint_axis = False, False, True props.orient_type = 'LOCAL' props.release_confirm = True - mpr.matrix_basis = ob.matrix_world.normalized() - mpr.line_width = 3 + gz.matrix_basis = ob.matrix_world.normalized() + gz.line_width = 3 - mpr.color = 0.8, 0.8, 0.8 - mpr.alpha = 0.5 + gz.color = 0.8, 0.8, 0.8 + gz.alpha = 0.5 - mpr.color_highlight = 1.0, 1.0, 1.0 - mpr.alpha_highlight = 1.0 + gz.color_highlight = 1.0, 1.0, 1.0 + gz.alpha_highlight = 1.0 - self.roll_widget = mpr + self.roll_gizmo = gz def refresh(self, context): ob = context.object - mpr = self.roll_widget - mpr.matrix_basis = ob.matrix_world.normalized() + gz = self.roll_gizmo + gz.matrix_basis = ob.matrix_world.normalized() bpy.utils.register_class(MyCameraWidgetGroup) diff --git a/release/scripts/templates_py/gizmo_simple.py b/release/scripts/templates_py/gizmo_simple.py index 396378da04c..65d125adecc 100644 --- a/release/scripts/templates_py/gizmo_simple.py +++ b/release/scripts/templates_py/gizmo_simple.py @@ -25,23 +25,23 @@ class MyLightWidgetGroup(GizmoGroup): def setup(self, context): # Arrow gizmo has one 'offset' property we can assign to the light energy. ob = context.object - mpr = self.gizmos.new("GIZMO_GT_arrow_3d") - mpr.target_set_prop("offset", ob.data, "energy") - mpr.matrix_basis = ob.matrix_world.normalized() - mpr.draw_style = 'BOX' + gz = self.gizmos.new("GIZMO_GT_arrow_3d") + gz.target_set_prop("offset", ob.data, "energy") + gz.matrix_basis = ob.matrix_world.normalized() + gz.draw_style = 'BOX' - mpr.color = 1.0, 0.5, 0.0 - mpr.alpha = 0.5 + gz.color = 1.0, 0.5, 0.0 + gz.alpha = 0.5 - mpr.color_highlight = 1.0, 0.5, 1.0 - mpr.alpha_highlight = 0.5 + gz.color_highlight = 1.0, 0.5, 1.0 + gz.alpha_highlight = 0.5 - self.energy_widget = mpr + self.energy_gizmo = gz def refresh(self, context): ob = context.object - mpr = self.energy_widget - mpr.matrix_basis = ob.matrix_world.normalized() + gz = self.energy_gizmo + gz.matrix_basis = ob.matrix_world.normalized() bpy.utils.register_class(MyLightWidgetGroup) |