Fix T80238: Crash adding properties to material node-trees
The localized node-tree was freeing the materials ID properties twice. This matches how animation data behaves, setting to NULL after freeing.
This commit is contained in:
parent
fe08aa4e2c
commit
32057453ca
Notes:
blender-bot
2023-02-14 06:49:54 +01:00
Referenced by issue #80238, Crash on Node Tree Custom Property Update function Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -114,10 +114,12 @@ void BKE_libblock_free_data(ID *id, const bool do_id_user)
|
|||
if (id->properties) {
|
||||
IDP_FreePropertyContent_ex(id->properties, do_id_user);
|
||||
MEM_freeN(id->properties);
|
||||
id->properties = NULL;
|
||||
}
|
||||
|
||||
if (id->override_library) {
|
||||
BKE_lib_override_library_free(&id->override_library, do_id_user);
|
||||
id->override_library = NULL;
|
||||
}
|
||||
|
||||
BKE_animdata_free(id, do_id_user);
|
||||
|
|
Loading…
Reference in New Issue