CTX_data_depsgraph(bContext *C);
This commit is contained in:
@@ -40,6 +40,7 @@ extern "C" {
|
||||
struct ARegion;
|
||||
struct bScreen;
|
||||
struct CacheFile;
|
||||
struct Depsgraph;
|
||||
struct LayerCollection;
|
||||
struct ListBase;
|
||||
struct Main;
|
||||
@@ -303,6 +304,7 @@ int CTX_data_visible_gpencil_layers(const bContext *C, ListBase *list);
|
||||
int CTX_data_editable_gpencil_layers(const bContext *C, ListBase *list);
|
||||
int CTX_data_editable_gpencil_strokes(const bContext *C, ListBase *list);
|
||||
|
||||
struct Depsgraph *CTX_data_depsgraph(const bContext *C);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
#include "DNA_linestyle_types.h"
|
||||
#include "DNA_gpencil_types.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_threads.h"
|
||||
@@ -1209,3 +1211,8 @@ int CTX_data_editable_gpencil_strokes(const bContext *C, ListBase *list)
|
||||
return ctx_data_collection_get(C, "editable_gpencil_strokes", list);
|
||||
}
|
||||
|
||||
Depsgraph *CTX_data_depsgraph(const bContext *C)
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
return scene->depsgraph;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user