Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_depsgraph.h
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| struct ListBase; | struct ListBase; | ||||
| /* Dependency graph evaluation context | /* Dependency graph evaluation context | ||||
| * | * | ||||
| * This structure stores all the local dependency graph data, | * This structure stores all the local dependency graph data, | ||||
| * which is needed for it's evaluation, | * which is needed for it's evaluation, | ||||
| */ | */ | ||||
| typedef struct EvaluationContext { | typedef struct EvaluationContext { | ||||
| bool for_render; /* Set to true if evaluation shall be performed for render purposes, | int mode; /* evaluation mode */ | ||||
| * keep at false if update shall happen for the viewport. */ | |||||
| } EvaluationContext; | } EvaluationContext; | ||||
| typedef enum eEvaluationMode { | |||||
| DAG_EVAL_VIEWPORT = 0, /* evaluate for OpenGL viewport */ | |||||
| DAG_EVAL_PREVIEW = 1, /* evaluate for render with preview settings */ | |||||
| DAG_EVAL_RENDER = 2, /* evaluate for render purposes */ | |||||
| } eEvaluationMode; | |||||
sergey: Can we make it:
DAG_EVAL_VIEWPORT = 0
DAG_EVAL_PREVIEW = 1
DAG_EVAL_RENDER = 2
so… | |||||
Not Done Inline ActionsYes, can do that ... unlikely it would be an issue, only used for dupli eval mode and fixed int ids are usually avoided in bpy (are they even possible?). Anyway, will change this and commit. lukastoenne: Yes, can do that ... unlikely it would be an issue, only used for dupli eval mode and fixed int… | |||||
| /* DagNode->eval_flags */ | /* DagNode->eval_flags */ | ||||
| enum { | enum { | ||||
| /* Regardless to curve->path animation flag path is to be evaluated anyway, | /* Regardless to curve->path animation flag path is to be evaluated anyway, | ||||
| * to meet dependencies with such a things as curve modifier and other guys | * to meet dependencies with such a things as curve modifier and other guys | ||||
| * who're using curve deform, where_on_path and so. | * who're using curve deform, where_on_path and so. | ||||
| */ | */ | ||||
| DAG_EVAL_NEED_CURVE_PATH = 1, | DAG_EVAL_NEED_CURVE_PATH = 1, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||
Can we make it:
so no constant changes happens in py api?