Fix #115166: Batch Rename Action Clips error #115185

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:115166 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 5 additions and 2 deletions

View File

@ -2868,8 +2868,11 @@ class WM_OT_batch_rename(Operator):
# Outliner.
tuple(set(
action for id in context.selected_ids
if (((animation_data := id.animation_data) is not None) and
((action := animation_data.action) is not None) and
if (((action := id) and action.rna_type.identifier == "Action")
or
(((animation_data := id.animation_data) is not None) and
((action := animation_data.action) is not None))
and
(action.library is None))
))
if space_type == 'OUTLINER' else