Blender Git Commit Log
Git Commits -> Revision 2e71927
Revision 2e71927 by Sergey Sharybin (master) August 28, 2017, 09:21 (GMT) |
Make GS macro return proper IDType type Previously it was returning short, which was really easy to (a) compare against non-ID type value (b) forget to handle some specific value in switch statement. Both issues happened in the nearest past, so it's time to tighten some nuts here. Most of the change related on silencing strict compiler warning now, but there is also one tricky aspect: ID_NLA is not in the IDType enum. So there is still cast to short to handle that switch. If someone has better ideas how to deal with this please go ahead :) |
Commit Details:
Full Hash: 2e71927622ec7e25c400f23b58fd8d14e056482d
Parent Commit: f4b3678
Lines Changed: +61, -2
22 Modified Paths:
/source/blender/blenkernel/intern/anim_sys.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/key.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/material.c (+8, -0) (Diff)
/source/blender/blenkernel/intern/object_deform.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+6, -0) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/animation/anim_filter.c (+2, -0) (Diff)
/source/blender/editors/animation/keyingsets.c (+2, -0) (Diff)
/source/blender/editors/object/object_vgroup.c (+3, -0) (Diff)
/source/blender/editors/render/render_shading.c (+2, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+6, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+2, -0) (Diff)
/source/blender/editors/space_time/space_time.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_image.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_key.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/key.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/material.c (+8, -0) (Diff)
/source/blender/blenkernel/intern/object_deform.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+6, -0) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/animation/anim_filter.c (+2, -0) (Diff)
/source/blender/editors/animation/keyingsets.c (+2, -0) (Diff)
/source/blender/editors/object/object_vgroup.c (+3, -0) (Diff)
/source/blender/editors/render/render_shading.c (+2, -0) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+6, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+2, -0) (Diff)
/source/blender/editors/space_time/space_time.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_image.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_key.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -0) (Diff)