[Bf-blender-cvs] [ce551ada928] blender2.8: Fix missing type for material arry
Antonioya
noreply at git.blender.org
Thu Aug 2 18:03:10 CEST 2018
Commit: ce551ada928100e34b13e2ea8a6304d0631ec3e6
Author: Antonioya
Date: Thu Aug 2 18:03:01 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBce551ada928100e34b13e2ea8a6304d0631ec3e6
Fix missing type for material arry
This function was called by RNA Api and had grease pencil object type missing.
===================================================================
M source/blender/blenkernel/intern/material.c
===================================================================
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 03ec26c07d0..5edf9b9048f 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -319,6 +319,8 @@ Material ***give_matarar_id(ID *id)
return &(((Curve *)id)->mat);
case ID_MB:
return &(((MetaBall *)id)->mat);
+ case ID_GD:
+ return &(((bGPdata *)id)->mat);
default:
break;
}
More information about the Bf-blender-cvs
mailing list