Blender Git Commit Log

Git Commits -> Revision 0206d49

January 3, 2018, 13:10 (GMT)
Static assert for correct strings from context mode enum.

Adding new context modes requires adding a string in CTX_data_mode_string,
but there is no error when omitting this other than panels using
incorrect contexts. The static assert should help detect simple
missing strings at least to avoid confusing errors.

Commit Details:

Full Hash: 0206d499603133550ca4b4309221a8c6b517b56e
Parent Commit: dc34c0d
Lines Changed: +3, -1

2 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/context.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021