Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-08-02 19:03:01 +0300
committerAntonioya <blendergit@gmail.com>2018-08-02 19:03:01 +0300
commitce551ada928100e34b13e2ea8a6304d0631ec3e6 (patch)
tree61a98bef3ef451f3fda234888952aeff3f022412 /source/blender/blenkernel/intern/material.c
parent909556aa26845e9afe3e96ccb9d6e8b87eb8eae1 (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.c2
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;
}