Blender Git Commit Log

Git Commits -> Revision 8fbbd69

Revision 8fbbd69 by Bastien Montagne (master)
November 1, 2021, 14:46 (GMT)
Fix T92629: Crash on mesh separate after rB43bc494892c3.

rB43bc494892c3 switched `BKE_libblock_relink_to_newid` to use new ID
remapping and libquery code.

However, that new code does protect by default against remapping an
objects's data pointer when that object is in Edit mode, since this is
not a behavior that generic BKE code can handle (due to required editing
data for most obdata types when in edit mode).

So specific code that does create new IDs and need remapping in Edit
mode has to pass specific exception flags to remaping code.

This commit adds those remapping flags to `BKE_libblock_relink_to_newid`
and add said exception flag to the remapping call from
`ED_object_add_duplicate` when the object is in edit mode.

Commit Details:

Full Hash: 8fbbd699467885c89920524be39dee50ae42bf80
Parent Commit: e85e126
Lines Changed: +27, -23

8 Modified Paths:

/source/blender/blenkernel/BKE_lib_remap.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/collection.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lib_remap.c (+11, -11) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -1) (Diff)
/source/blender/editors/object/object_add.c (+7, -4) (Diff)
/source/blender/editors/object/object_relations.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021