Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/constraint.c
| Context not available. | |||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| #include "CLG_log.h" | |||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| # include "BPY_extern.h" | # include "BPY_extern.h" | ||||
| #endif | #endif | ||||
| Context not available. | |||||
| /* Constraint Target Macros */ | /* Constraint Target Macros */ | ||||
| #define VALID_CONS_TARGET(ct) ((ct) && (ct->tar)) | #define VALID_CONS_TARGET(ct) ((ct) && (ct->tar)) | ||||
| static CLG_LogRef LOG = { "bke.constraint" }; | |||||
| /* ************************ Constraints - General Utilities *************************** */ | /* ************************ Constraints - General Utilities *************************** */ | ||||
| /* These functions here don't act on any specific constraints, and are therefore should/will | /* These functions here don't act on any specific constraints, and are therefore should/will | ||||
| * not require any of the special function-pointers afforded by the relevant constraint | * not require any of the special function-pointers afforded by the relevant constraint | ||||
| Context not available. | |||||
| return constraintsTypeInfo[type]; | return constraintsTypeInfo[type]; | ||||
| } | } | ||||
| else { | else { | ||||
| printf("No valid constraint type-info data available. Type = %i\n", type); | CLOG_WARN(&LOG, "No valid constraint type-info data available. Type = %i", type); | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| Context not available. | |||||