Skip to content

Commit

Permalink
UPBGE: Set material constant option flag enabled for all categories a…
Browse files Browse the repository at this point in the history
…t material construction.
  • Loading branch information
panzergame committed Jun 3, 2016
1 parent 9f79f86 commit ee8ef25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/blender/blenkernel/intern/material.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ void BKE_material_init(Material *ma)
ma->mode2 = MA_CASTSHADOW;
ma->shade_flag = MA_APPROX_OCCLUSION;
ma->preview = NULL;

ma->constflag = MA_CONSTANT_MATERIAL | MA_CONSTANT_LAMP | MA_CONSTANT_TEXTURE | MA_CONSTANT_WORLD | MA_CONSTANT_MIST;
}

Material *BKE_material_add(Main *bmain, const char *name)
Expand Down

1 comment on commit ee8ef25

@youle31
Copy link
Collaborator

@youle31 youle31 commented on ee8ef25 Jun 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool :)

Please sign in to comment.