Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/anim.c
| Context not available. | |||||
| #include "GPU_batch.h" | #include "GPU_batch.h" | ||||
| #include "CLG_log.h" | |||||
| static CLG_LogRef LOG = { "bke.anim" }; | |||||
| // XXX bad level call... | // XXX bad level call... | ||||
| extern short compare_ak_cfraPtr(void *node, void *data); | extern short compare_ak_cfraPtr(void *node, void *data); | ||||
| extern void agroup_to_keylist(struct AnimData *adt, struct bActionGroup *agrp, struct DLRBT_Tree *keys, int saction_flag); | extern void agroup_to_keylist(struct AnimData *adt, struct bActionGroup *agrp, struct DLRBT_Tree *keys, int saction_flag); | ||||
| Context not available. | |||||
| } | } | ||||
| /* calculate path over requested range */ | /* calculate path over requested range */ | ||||
| printf("Calculating MotionPaths between frames %d - %d (%d frames)\n", sfra, efra, efra - sfra + 1); | CLOG_INFO(&LOG, 1, "Calculating MotionPaths between frames %d - %d (%d frames)", sfra, efra, efra - sfra + 1); | ||||
| for (CFRA = sfra; CFRA <= efra; CFRA++) { | for (CFRA = sfra; CFRA <= efra; CFRA++) { | ||||
| if (current_frame_only) { | if (current_frame_only) { | ||||
| /* For current frame, only update tagged. */ | /* For current frame, only update tagged. */ | ||||
| Context not available. | |||||
| if (ob == NULL || ob->type != OB_CURVE) return 0; | if (ob == NULL || ob->type != OB_CURVE) return 0; | ||||
| cu = ob->data; | cu = ob->data; | ||||
| if (ob->runtime.curve_cache == NULL || ob->runtime.curve_cache->path == NULL || ob->runtime.curve_cache->path->data == NULL) { | if (ob->runtime.curve_cache == NULL || ob->runtime.curve_cache->path == NULL || ob->runtime.curve_cache->path->data == NULL) { | ||||
| printf("no path!\n"); | CLOG_WARN(&LOG, "no path!"); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| path = ob->runtime.curve_cache->path; | path = ob->runtime.curve_cache->path; | ||||
| Context not available. | |||||