Blender Git Commit Log

Git Commits -> Revision 63e50cf

Revision 63e50cf by Philipp Oeser (master)
May 28, 2021, 09:06 (GMT)
Fix T88499: Copy data path operator does not consider library affiliation

When using the operator `ui.copy_data_path_button(full_path=True)` ({key
ctrl shift Alt C} on hover) the copied path does not consider the
library origin. That means that when there is a name clash the data path
is not accurate and refers to the local item instead.

This patch adds the library (if the ID is linked) of the returned string
from RNA_path_full_ID_py.

bpy.data.objects["Cube", "//library.blend"] instead of
bpy.data.objects["Cube"]

note: parsing this happens in
pyrna_prop_collection_subscript_str_lib_pair_ptr

Maniphest Tasks: T88499

Differential Revision: https://developer.blender.org/D11412

Commit Details:

Full Hash: 63e50cf265d6f17785ffdf0d0a7220237b054050
Parent Commit: 3ec57ce
Lines Changed: +14, -2

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021