Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-01-11 03:05:36 +0300
committerHans Goudey <h.goudey@me.com>2022-01-11 03:05:36 +0300
commit1ce13b7a3efc35f411e07ffb874af62a39035afd (patch)
tree0ec6b962f3e83be0a896e2084bf66b85c1f7349f /release/scripts
parentae8d54c1d1cfc4c9071c0d656ecfd7eaffcbf683 (diff)
parent922ae55a16a96784427080505f0a751c05a74fb6 (diff)
Merge branch 'master' into temp-geometry-nodes-extrude-mesh
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/modules/keyingsets_utils.py8
-rw-r--r--release/scripts/startup/bl_ui/properties_animviz.py16
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py6
-rw-r--r--release/scripts/startup/nodeitems_builtins.py1
4 files changed, 22 insertions, 9 deletions
diff --git a/release/scripts/modules/keyingsets_utils.py b/release/scripts/modules/keyingsets_utils.py
index de0b1435803..84a01ef3666 100644
--- a/release/scripts/modules/keyingsets_utils.py
+++ b/release/scripts/modules/keyingsets_utils.py
@@ -238,11 +238,15 @@ def RKS_GEN_custom_props(_ksi, _context, ks, data):
continue
prop_path = '["%s"]' % bpy.utils.escape_identifier(cprop_name)
+
try:
rna_property = data.path_resolve(prop_path, False)
except ValueError:
- # This happens when a custom property is set to None. In that case it cannot
- # be converted to an FCurve-compatible value, so we can't keyframe it anyway.
+ # Can technically happen, but there is no known case.
+ continue
+ if rna_property is None:
+ # In this case the property cannot be converted to an
+ # FCurve-compatible value, so we can't keyframe it anyways.
continue
if rna_property.rna_type not in prop_type_compat:
continue
diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py
index 44965a60489..28e456d023d 100644
--- a/release/scripts/startup/bl_ui/properties_animviz.py
+++ b/release/scripts/startup/bl_ui/properties_animviz.py
@@ -70,14 +70,10 @@ class MotionPathButtonsPanel:
col = layout.column(align=True)
- row = col.row(align=True)
if bones:
- row.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA')
- row.operator("pose.paths_clear", text="", icon='X')
+ col.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA')
else:
- row.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
- row.operator("object.paths_clear", text="", icon='X')
- col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
+ col.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
else:
col = layout.column(align=True)
col.label(text="Nothing to show yet...", icon='ERROR')
@@ -86,7 +82,13 @@ class MotionPathButtonsPanel:
col.operator("pose.paths_calculate", text="Calculate...", icon='BONE_DATA')
else:
col.operator("object.paths_calculate", text="Calculate...", icon='OBJECT_DATA')
- col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
+
+ row = col.row(align=True)
+ row.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
+ if bones:
+ row.operator("pose.paths_clear", text="", icon='X')
+ else:
+ row.operator("object.paths_clear", text="", icon='X')
class MotionPathButtonsPanel_display:
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 4d62d7072cb..4bd3d5cc3f2 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -694,9 +694,15 @@ class VIEW3D_PT_tools_weight_gradient(Panel, View3DPaintPanel):
#bl_context = ".weightpaint" # dot on purpose (access from topbar)
bl_label = "Falloff"
bl_options = {'DEFAULT_CLOSED'}
+ # also dont draw as an extra panel in the sidebar (already included in the Brush settings)
+ bl_space_type = 'TOPBAR'
+ bl_region_type = 'HEADER'
@classmethod
def poll(cls, context):
+ # since we dont give context above, check mode here (to not show in other modes like sculpt)
+ if context.mode != 'PAINT_WEIGHT':
+ return False
settings = context.tool_settings.weight_paint
if settings is None:
return False
diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py
index 92c63e060e4..6167dd8f78d 100644
--- a/release/scripts/startup/nodeitems_builtins.py
+++ b/release/scripts/startup/nodeitems_builtins.py
@@ -543,6 +543,7 @@ compositor_node_categories = [
NodeItem("CompositorNodeSepYCCA"),
NodeItem("CompositorNodeCombYCCA"),
NodeItem("CompositorNodeSwitchView"),
+ NodeItem("CompositorNodeConvertColorSpace"),
]),
CompositorNodeCategory("CMP_OP_FILTER", "Filter", items=[
NodeItem("CompositorNodeBlur"),