Blender Git Commit Log

Git Commits -> Revision 3ec3c5b

Revision 3ec3c5b by Bastien Montagne (master)
February 13, 2020, 15:23 (GMT)
Fix (unreported) fully broken `bpy.data.user_map()` helper.

The introduction of python instancing for ID data in 2.80 completely
broke the 'smart & efficient' hack of using a same py object as key for
initial quick check, since rebuilding the RNAPointer in the
BPy_StructRNA would actually affect the py instance of the first ID used
to generate that py object...

TL;DR: No need for this complex and unclear optimization anymore, since
we do not actually rebuild a whole py object anymore every time we call
`pyrna_id_CreatePyObject()` from a same ID pointer.

Commit Details:

Full Hash: 3ec3c5b557ded1e85b3952df242b138f5a8a634b
Parent Commit: c9c013f
Lines Changed: +4, -31

1 Modified Path:

/source/blender/python/intern/bpy_rna_id_collection.c (+4, -31) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021