Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/AnimationImporter.cpp
| Show First 20 Lines • Show All 642 Lines • ▼ Show 20 Lines | for (unsigned int j = 0; j < bindings.getCount(); j++) { | ||||
| animcurves = curve_map[bindings[j].animation]; | animcurves = curve_map[bindings[j].animation]; | ||||
| BLI_strncpy(rna_path, anim_type, sizeof(rna_path)); | BLI_strncpy(rna_path, anim_type, sizeof(rna_path)); | ||||
| modify_fcurve(&animcurves, rna_path, 0); | modify_fcurve(&animcurves, rna_path, 0); | ||||
| std::vector<FCurve *>::iterator iter; | std::vector<FCurve *>::iterator iter; | ||||
| //Add the curves of the current animation to the object | //Add the curves of the current animation to the object | ||||
| for (iter = animcurves.begin(); iter != animcurves.end(); iter++) { | for (iter = animcurves.begin(); iter != animcurves.end(); iter++) { | ||||
| FCurve *fcu = *iter; | FCurve *fcu = *iter; | ||||
| /* All anim_types whose values are to be converted from Degree to Radians can be ORed here | |||||
| *XXX What About " rotation " ? */ | |||||
| if (BLI_strcaseeq("spot_size", anim_type)) { | |||||
| /* Convert current values to Radians */ | |||||
| fcurve_deg_to_rad(fcu); | |||||
| } | |||||
| BLI_addtail(AnimCurves, fcu); | BLI_addtail(AnimCurves, fcu); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* | /* | ||||
| ▲ Show 20 Lines • Show All 1,349 Lines • Show Last 20 Lines | |||||