diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-06-25 13:27:31 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-06-25 13:27:31 +0400 |
commit | 45d7ebbdf2f2cb3c2bb3ec175afcfd31052c9921 (patch) | |
tree | f2256d343aa13a837810f191b0304466309f02c1 /source/blender/editors/mesh | |
parent | d3b6117068eb1d03f0c66aab7d0c667951223709 (diff) |
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.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 1 | ||||
-rw-r--r-- | source/blender/editors/mesh/mesh_ops.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index ed2744509a6..e544592365d 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -30,6 +30,7 @@ */ #include "DNA_object_types.h" +#include "DNA_scene_types.h" #include "BLI_math.h" diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 508936190c8..51d02e8cc2b 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -37,6 +37,7 @@ #include "DNA_meshdata_types.h" #include "DNA_modifier_types.h" #include "DNA_object_types.h" +#include "DNA_scene_types.h" #include "BLI_listbase.h" #include "BLI_noise.h" diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c index 7fe0c3b0344..c97b674dd2d 100644 --- a/source/blender/editors/mesh/mesh_ops.c +++ b/source/blender/editors/mesh/mesh_ops.c @@ -28,6 +28,8 @@ * \ingroup edmesh */ +#include "DNA_scene_types.h" + #include "BLI_math.h" #include "RNA_access.h" |