Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/BCAnimationCurve.cpp
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | void BCAnimationCurve::create_bezt(float frame, float output) | ||||
| BezTriple bez; | BezTriple bez; | ||||
| memset(&bez, 0, sizeof(BezTriple)); | memset(&bez, 0, sizeof(BezTriple)); | ||||
| bez.vec[1][0] = frame; | bez.vec[1][0] = frame; | ||||
| bez.vec[1][1] = output; | bez.vec[1][1] = output; | ||||
| bez.ipo = U.ipo_new; /* use default interpolation mode here... */ | bez.ipo = U.ipo_new; /* use default interpolation mode here... */ | ||||
| bez.f1 = bez.f2 = bez.f3 = SELECT; | bez.f1 = bez.f2 = bez.f3 = SELECT; | ||||
| bez.h1 = bez.h2 = HD_AUTO; | bez.h1 = bez.h2 = HD_AUTO; | ||||
| insert_bezt_fcurve(fcu, &bez, INSERTKEY_NOFLAGS); | insert_bezt_fcurve(fcu, &bez, INSERTKEY_NOFLAGS); | ||||
| calchandles_fcurve(fcu); | BKE_fcurve_handles_recalc(fcu); | ||||
| } | } | ||||
| BCAnimationCurve::~BCAnimationCurve() | BCAnimationCurve::~BCAnimationCurve() | ||||
| { | { | ||||
| if (curve_is_local_copy && fcurve) { | if (curve_is_local_copy && fcurve) { | ||||
| // fprintf(stderr, "removed fcurve %s\n", fcurve->rna_path); | // fprintf(stderr, "removed fcurve %s\n", fcurve->rna_path); | ||||
| delete_fcurve(fcurve); | delete_fcurve(fcurve); | ||||
| this->fcurve = nullptr; | this->fcurve = nullptr; | ||||
| ▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines | |||||