Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-06-25 13:27:31 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-06-25 13:27:31 +0400
commit45d7ebbdf2f2cb3c2bb3ec175afcfd31052c9921 (patch)
treef2256d343aa13a837810f191b0304466309f02c1 /source/blender/editors/space_api
parentd3b6117068eb1d03f0c66aab7d0c667951223709 (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/space_api')
-rw-r--r--source/blender/editors/space_api/spacetypes.c1
1 files changed, 1 insertions, 0 deletions
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"