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 | |
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.
-rw-r--r-- | source/blender/editors/curve/curve_ops.c | 1 | ||||
-rw-r--r-- | source/blender/editors/include/ED_object.h | 2 | ||||
-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 | ||||
-rw-r--r-- | source/blender/editors/metaball/mball_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/physics/physics_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_api/spacetypes.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_logic/logic_ops.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_iterators.c | 1 | ||||
-rw-r--r-- | source/blender/editors/util/undo.c | 1 |
11 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/editors/curve/curve_ops.c b/source/blender/editors/curve/curve_ops.c index 03b7697ecfa..5b525a089b3 100644 --- a/source/blender/editors/curve/curve_ops.c +++ b/source/blender/editors/curve/curve_ops.c @@ -34,6 +34,7 @@ #include "DNA_curve_types.h" +#include "DNA_scene_types.h" #include "BLI_math.h" #include "BLI_blenlib.h" diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index e891f648713..90b131e5acc 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -69,8 +69,6 @@ struct PointerRNA; struct PropertyRNA; struct EnumPropertyItem; -enum eVGroupSelect; - /* object_edit.c */ struct Object *ED_object_context(struct bContext *C); /* context.object */ struct Object *ED_object_active_context(struct bContext *C); /* context.object or context.active_object */ 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" diff --git a/source/blender/editors/metaball/mball_ops.c b/source/blender/editors/metaball/mball_ops.c index 8c705aac0d2..bba0dc5000b 100644 --- a/source/blender/editors/metaball/mball_ops.c +++ b/source/blender/editors/metaball/mball_ops.c @@ -28,6 +28,8 @@ * \ingroup edmeta */ +#include "DNA_scene_types.h" + #include "BLI_utildefines.h" #include "RNA_access.h" diff --git a/source/blender/editors/physics/physics_ops.c b/source/blender/editors/physics/physics_ops.c index 2ede7047b74..444c87ded34 100644 --- a/source/blender/editors/physics/physics_ops.c +++ b/source/blender/editors/physics/physics_ops.c @@ -29,6 +29,8 @@ #include <stdlib.h> +#include "DNA_scene_types.h" + #include "BLI_utildefines.h" #include "RNA_access.h" diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index 2739d41a73d..bb0521d6589 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -33,6 +33,7 @@ #include "BLI_utildefines.h" #include "DNA_object_types.h" +#include "DNA_scene_types.h" #include "DNA_windowmanager_types.h" diff --git a/source/blender/editors/space_logic/logic_ops.c b/source/blender/editors/space_logic/logic_ops.c index a85fec7bf87..fadf4c0b113 100644 --- a/source/blender/editors/space_logic/logic_ops.c +++ b/source/blender/editors/space_logic/logic_ops.c @@ -34,6 +34,7 @@ #include "DNA_sensor_types.h" #include "DNA_controller_types.h" #include "DNA_actuator_types.h" +#include "DNA_scene_types.h" #include "BLI_blenlib.h" #include "BLI_utildefines.h" diff --git a/source/blender/editors/space_view3d/view3d_iterators.c b/source/blender/editors/space_view3d/view3d_iterators.c index 180686b4b82..0490d8763d8 100644 --- a/source/blender/editors/space_view3d/view3d_iterators.c +++ b/source/blender/editors/space_view3d/view3d_iterators.c @@ -30,6 +30,7 @@ #include "DNA_mesh_types.h" #include "DNA_armature_types.h" #include "DNA_object_types.h" +#include "DNA_scene_types.h" #include "BLI_utildefines.h" #include "BLI_listbase.h" diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index e1451ee43e6..7f2e5b4b81c 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -39,6 +39,7 @@ #include "DNA_mesh_types.h" #include "DNA_object_types.h" +#include "DNA_scene_types.h" #include "BLI_blenlib.h" #include "BLI_dynstr.h" |