diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-02 19:03:01 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-02 19:03:01 +0300 |
commit | ce551ada928100e34b13e2ea8a6304d0631ec3e6 (patch) | |
tree | 61a98bef3ef451f3fda234888952aeff3f022412 /source/blender/blenkernel/intern/material.c | |
parent | 909556aa26845e9afe3e96ccb9d6e8b87eb8eae1 (diff) |
Fix missing type for material arry
This function was called by RNA Api and had grease pencil object type missing.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |