Fix missing type for material arry

This function was called by RNA Api and had grease pencil object type missing.
This commit is contained in:
Antonioya 2018-08-02 18:03:01 +02:00
parent 909556aa26
commit ce551ada92
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}