Fix #128946: GPv3: Can't select materials in Modifier
Should have been `value.data`. Pull Request: https://projects.blender.org/blender/blender/pulls/128971
This commit is contained in:
committed by
Falk David
parent
a4ee79b3d3
commit
99b876e2bc
@@ -2103,7 +2103,7 @@ static void rna_GreasePencilModifier_material_set(PointerRNA *ptr,
|
||||
Material **ma_target)
|
||||
{
|
||||
Object *ob = reinterpret_cast<Object *>(ptr->owner_id);
|
||||
Material *ma = reinterpret_cast<Material *>(value.owner_id);
|
||||
Material *ma = reinterpret_cast<Material *>(value.data);
|
||||
|
||||
if (ma == nullptr || BKE_object_material_index_get(ob, ma) != -1) {
|
||||
id_lib_extern(reinterpret_cast<ID *>(ob));
|
||||
|
||||
Reference in New Issue
Block a user