Blender Git Commit Log

Git Commits -> Revision 8a72c3b

Revision 8a72c3b by Lukas Toenne (master)
January 3, 2018, 13:15 (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: 8a72c3baefbae22949dee16c004f253197e93914
Parent Commit: f20bb6c
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