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/curve/curve_ops.c
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/curve/curve_ops.c')
-rw-r--r--source/blender/editors/curve/curve_ops.c1
1 files changed, 1 insertions, 0 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"