From ce551ada928100e34b13e2ea8a6304d0631ec3e6 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Thu, 2 Aug 2018 18:03:01 +0200 Subject: [PATCH] Fix missing type for material arry This function was called by RNA Api and had grease pencil object type missing. --- source/blender/blenkernel/intern/material.c | 2 ++ 1 file changed, 2 insertions(+) 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; }