Blender Git Commit Log

Git Commits -> Revision 45d7ebb

Revision 45d7ebb by Sergey Sharybin (master)
June 25, 2013, 09:27 (GMT)
Include DNA_scene_types before ED_object instead of forward enum declaration

Forward enum declaration is a bad idea, especially for C++ which requires
enum specification to dteermine which data type to use to store it.

Alternative would be to not use enum as an arument and pass it as int,
but actually would rather be strict on typing -- using explicit enum
as parameter type helps understanding the code and prevents possible
mistakes when using the function.

Commit Details:

Full Hash: 45d7ebbdf2f2cb3c2bb3ec175afcfd31052c9921
SVN Revision: 57728
Parent Commit: d3b6117
Lines Changed: +13, -2

11 Modified Paths:

/source/blender/editors/curve/curve_ops.c (+1, -0) (Diff)
/source/blender/editors/include/ED_object.h (+0, -2) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+1, -0) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+1, -0) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+2, -0) (Diff)
/source/blender/editors/metaball/mball_ops.c (+2, -0) (Diff)
/source/blender/editors/physics/physics_ops.c (+2, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/space_logic/logic_ops.c (+1, -0) (Diff)
/source/blender/editors/space_view3d/view3d_iterators.c (+1, -0) (Diff)
/source/blender/editors/util/undo.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021