Depsgraph: Move DAG_get_object function

BKE_depsgraph.h will be deprecated eventually, so moving it to DEG_depsgraph_query.h
This commit is contained in:
Dalai Felinto 2017-04-21 11:29:47 +02:00
parent 3e7968c35f
commit 6294bd1b8b
5 changed files with 10 additions and 15 deletions

View File

@ -128,10 +128,6 @@ void DAG_print_dependencies(struct Main *bmain, struct Scene *scene, struct Obje
short DAG_get_eval_flags_for_object(struct Scene *scene, void *object);
/* ************************ DAG ********************* */
struct Object *DAG_get_object(struct Depsgraph *depsgraph, struct Object *ob);
#ifdef __cplusplus
}
#endif

View File

@ -55,16 +55,6 @@
/* ************************ DAG ********************* */
/**
* Get the object as properly evaluated by depsgraph.
*/
Object *DAG_get_object(Depsgraph *depsgraph, Object *ob)
{
/* XXX TODO */
UNUSED_VARS(depsgraph);
return ob;
}
/* ************************************
* This functions are to be supported *
* ************************************

View File

@ -54,6 +54,9 @@ struct Scene *DAG_get_scene(struct Depsgraph *graph);
/* Get scene layer the despgraph is created for. */
struct SceneLayer *DAG_get_scene_layer(struct Depsgraph *graph);
/* Get the object as properly evaluated by depsgraph. */
struct Object *DAG_get_object(struct Depsgraph *depsgraph, struct Object *ob);
#ifdef __cplusplus
} /* extern "C" */
#endif

View File

@ -93,3 +93,9 @@ SceneLayer *DAG_get_scene_layer(Depsgraph *graph)
}
return NULL;
}
Object *DAG_get_object(Depsgraph * /*depsgraph*/, Object *ob)
{
/* XXX TODO */
return ob;
}

View File

@ -46,7 +46,6 @@
#include "BLI_buffer.h"
#include "BLI_bitmap.h"
#include "BKE_depsgraph.h"
#include "BKE_DerivedMesh.h"
#include "BKE_editmesh.h"
#include "BKE_material.h"
@ -56,6 +55,7 @@
#include "BIF_glutil.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"