Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/context.c
| Context not available. | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "CLG_log.h" | |||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| # include "BPY_extern.h" | # include "BPY_extern.h" | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.context" }; | |||||
| /* struct */ | /* struct */ | ||||
| struct bContext { | struct bContext { | ||||
| Context not available. | |||||
| return result.ptr.data; | return result.ptr.data; | ||||
| } | } | ||||
| else { | else { | ||||
| printf("PyContext '%s' is a '%s', expected a '%s'\n", | CLOG_WARN(&LOG, "PyContext '%s' is a '%s', expected a '%s'", | ||||
| member, | member, | ||||
| RNA_struct_identifier(result.ptr.type), | RNA_struct_identifier(result.ptr.type), | ||||
| RNA_struct_identifier(member_type)); | RNA_struct_identifier(member_type)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| return ptr; | return ptr; | ||||
| } | } | ||||
| else { | else { | ||||
| printf("%s: warning, member '%s' is '%s', not '%s'\n", | CLOG_WARN(&LOG, "member '%s' is '%s', not '%s'", | ||||
| __func__, member, RNA_struct_identifier(ptr.type), RNA_struct_identifier(type)); | member, RNA_struct_identifier(ptr.type), RNA_struct_identifier(type)); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||