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:
		@@ -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 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user