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.
This commit is contained in:
2013-06-25 09:27:31 +00:00
parent d3b6117068
commit 45d7ebbdf2
11 changed files with 13 additions and 2 deletions

View File

@@ -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 */