Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/ipo.c
| Context not available. | |||||
| #include "BKE_nla.h" | #include "BKE_nla.h" | ||||
| #include "BKE_sequencer.h" | #include "BKE_sequencer.h" | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| # include "BLI_math_base.h" /* M_PI */ | # include "BLI_math_base.h" /* M_PI */ | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.ipo" }; | |||||
| /* *************************************************** */ | /* *************************************************** */ | ||||
| /* Old-Data Freeing Tools */ | /* Old-Data Freeing Tools */ | ||||
| Context not available. | |||||
| } | } | ||||
| /* for debugging only */ | /* for debugging only */ | ||||
| printf("ERROR: unmatched PoseChannel setting (code %d)\n", adrcode); | CLOG_ERROR(&LOG, "unmatched PoseChannel setting (code %d)", adrcode); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
| /* TODO... add other blocktypes... */ | /* TODO... add other blocktypes... */ | ||||
| default: | default: | ||||
| printf("IPO2ANIMATO WARNING: No path for blocktype %d, adrcode %d yet\n", blocktype, adrcode); | CLOG_WARN(&LOG, "No path for blocktype %d, adrcode %d yet", blocktype, adrcode); | ||||
| break; | break; | ||||
| } | } | ||||
| Context not available. | |||||
| if (ELEM(NULL, id, ipo)) | if (ELEM(NULL, id, ipo)) | ||||
| return; | return; | ||||
| if (adt == NULL) { | if (adt == NULL) { | ||||
| printf("ERROR ipo_to_animdata(): adt invalid\n"); | CLOG_ERROR(&LOG, "adt invalid"); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| ID *id; | ID *id; | ||||
| if (bmain == NULL) { | if (bmain == NULL) { | ||||
| printf("Argh! Main is NULL in do_versions_ipos_to_animato()\n"); | CLOG_ERROR(&LOG, "Argh! Main is NULL"); | ||||
| return; | return; | ||||
| } | } | ||||
| /* only convert if version is right */ | /* only convert if version is right */ | ||||
| if (bmain->versionfile >= 250) { | if (bmain->versionfile >= 250) { | ||||
| printf("WARNING: Animation data too new to convert (Version %d)\n", bmain->versionfile); | CLOG_WARN(&LOG, "Animation data too new to convert (Version %d)", bmain->versionfile); | ||||
| return; | return; | ||||
| } | } | ||||
| else if (G.debug & G_DEBUG) | else if (G.debug & G_DEBUG) | ||||
| Context not available. | |||||