Particle ID block controls:
[blender.git] / source / blender / blenkernel / intern / modifier.c
index 1a6f57e75c421f457e953fe2aad38c1b0de1a2aa..80a9f173d6ac119b23c9d0918fc9e670f5d41e90 100644 (file)
@@ -6295,6 +6295,9 @@ CustomDataMask particleSystemModifier_requiredDataMask(Object *ob, ModifierData
        MTex *mtex;
        int i;
 
+       if(!psmd->psys->part)
+               return 0;
+
        ma= give_current_material(ob, psmd->psys->part->omat);
        if(ma) {
                for(i=0; i<MAX_MTEX; i++) {