Depsgraph: Make object component conversion more accessible

This commit is contained in:
2019-07-04 14:43:54 +02:00
parent 609e16339f
commit ea05edceaa
3 changed files with 47 additions and 29 deletions

View File

@@ -27,6 +27,8 @@
#include "BLI_utildefines.h"
#include "DEG_depsgraph_build.h"
struct GHash;
struct ID;
struct Scene;
@@ -130,6 +132,9 @@ enum class NodeType {
};
const char *nodeTypeAsString(NodeType type);
NodeType nodeTypeFromSceneComponent(eDepsSceneComponentType component);
NodeType nodeTypeFromObjectComponent(eDepsObjectComponentType component);
/* All nodes in Depsgraph are descended from this. */
struct Node {
/* Helper class for static typeinfo in subclasses. */