Fix #90732: crash on alt+LMB to change custom properties in some cases #112910

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:90732_b into blender-v4.0-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Philipp Oeser 071f467660 Fix #90732: crash on alt+LMB to change custom properties in some cases
This crashed when alt-editing a custom property that existed e.g. on one
bone but not on another.

To check validity there are two mechanisms:
- remove non-valid in UI_context_copy_to_selected_list()
- check in UI_context_copy_to_selected_check()

This PR takes the first route [similar to filtering out different
sequences that dont share common properties], custom properties on real
IDs (such as objects or scenes) were not affected [since they kind of go
the second route and provide a path for
UI_context_copy_to_selected_check() which then gets validated there].

Found the first route more readable though.
2023-09-26 16:20:54 +02:00