We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f79f86 commit ee8ef25Copy full SHA for ee8ef25
source/blender/blenkernel/intern/material.c
@@ -219,6 +219,8 @@ void BKE_material_init(Material *ma)
219
ma->mode2 = MA_CASTSHADOW;
220
ma->shade_flag = MA_APPROX_OCCLUSION;
221
ma->preview = NULL;
222
+
223
+ ma->constflag = MA_CONSTANT_MATERIAL | MA_CONSTANT_LAMP | MA_CONSTANT_TEXTURE | MA_CONSTANT_WORLD | MA_CONSTANT_MIST;
224
}
225
226
Material *BKE_material_add(Main *bmain, const char *name)
0 commit comments