Fix #140581: Crash due to invalid info about potential ID dependencies of GP data.
GreasePencil ID type did not list `ID_OB` as its potential ID dependency type, leading to lack of remapping of its layers' parents objects pointers (e.g. on Object deletion), leading to crash from accessing freed data.
This commit is contained in:
@@ -336,7 +336,7 @@ static void grease_pencil_blend_read_data(BlendDataReader *reader, ID *id)
|
||||
IDTypeInfo IDType_ID_GP = {
|
||||
/*id_code*/ GreasePencil::id_type,
|
||||
/*id_filter*/ FILTER_ID_GP,
|
||||
/*dependencies_id_types*/ FILTER_ID_GP | FILTER_ID_MA,
|
||||
/*dependencies_id_types*/ FILTER_ID_GP | FILTER_ID_MA | FILTER_ID_OB,
|
||||
/*main_listbase_index*/ INDEX_ID_GP,
|
||||
/*struct_size*/ sizeof(GreasePencil),
|
||||
/*name*/ "GreasePencil",
|
||||
|
||||
Reference in New Issue
Block a user