From 45d7ebbdf2f2cb3c2bb3ec175afcfd31052c9921 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 25 Jun 2013 09:27:31 +0000 Subject: 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. --- source/blender/editors/curve/curve_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/curve/curve_ops.c') 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" -- cgit v1.2.3