Fix T57896: Crash updating grease pencil material preview
This commit is contained in:
parent
bbd4613ed9
commit
5e61fd7c23
Notes:
blender-bot
2023-02-14 05:00:11 +01:00
Referenced by issue #57896, Crash updating grease pencil material preview
|
@ -244,7 +244,10 @@ Material *BKE_material_localize(Material *ma)
|
|||
man->nodetree = ntreeLocalize(ma->nodetree);
|
||||
}
|
||||
|
||||
/* man->gp_style = NULL; */ /* XXX: We probably don't want to clear here, or else we may get problems with COW later? */
|
||||
if (ma->gp_style != NULL) {
|
||||
man->gp_style = MEM_dupallocN(ma->gp_style);
|
||||
}
|
||||
|
||||
BLI_listbase_clear(&man->gpumaterial);
|
||||
|
||||
/* TODO Duplicate Engine Settings and set runtime to NULL */
|
||||
|
|
Loading…
Reference in New Issue