Skip to content

Commit ee8ef25

Browse files
committed
UPBGE: Set material constant option flag enabled for all categories at material construction.
1 parent 9f79f86 commit ee8ef25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/blender/blenkernel/intern/material.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ void BKE_material_init(Material *ma)
219219
ma->mode2 = MA_CASTSHADOW;
220220
ma->shade_flag = MA_APPROX_OCCLUSION;
221221
ma->preview = NULL;
222+
223+
ma->constflag = MA_CONSTANT_MATERIAL | MA_CONSTANT_LAMP | MA_CONSTANT_TEXTURE | MA_CONSTANT_WORLD | MA_CONSTANT_MIST;
222224
}
223225

224226
Material *BKE_material_add(Main *bmain, const char *name)

0 commit comments

Comments
 (0)