Silence DNA deprecated warning in versioning_260.cc.
DNA-related defines (like `DNA_DEPRECATED_ALLOW`) should be defined before any Blender include, as some non-DNA Blender header may indirectly include some DNA ones.
This commit is contained in:
@@ -8,16 +8,16 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
/* allow readfile to use deprecated functionality */
|
||||
#define DNA_DEPRECATED_ALLOW
|
||||
|
||||
/* Define macros in `DNA_genfile.h`. */
|
||||
#define DNA_GENFILE_VERSIONING_MACROS
|
||||
|
||||
#include "BKE_idprop.hh"
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "DNA_anim_types.h"
|
||||
#include "DNA_brush_types.h"
|
||||
#include "DNA_camera_types.h"
|
||||
|
||||
Reference in New Issue
Block a user