diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2018-11-23 21:21:29 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2018-11-23 21:21:29 +0300 |
commit | 397272e561182f0c48564e1efd1e3866c52cdd8d (patch) | |
tree | e73ea4a93a851a8f605622714c7422bcf5696945 /source/blender/collada | |
parent | 7eb9091e96f4db4fbea03d52c1cc140862723f14 (diff) |
fix: Collada: use reference to BezTriple instead of copy
Diffstat (limited to 'source/blender/collada')
-rw-r--r-- | source/blender/collada/BCAnimationCurve.cpp | 2 | ||||
-rw-r--r-- | source/blender/collada/BCAnimationCurve.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/BCAnimationCurve.cpp b/source/blender/collada/BCAnimationCurve.cpp index 3925cde8516..903a6eab3bb 100644 --- a/source/blender/collada/BCAnimationCurve.cpp +++ b/source/blender/collada/BCAnimationCurve.cpp @@ -628,7 +628,7 @@ const bool BCCurveKey::operator<(const BCCurveKey &other) const return this->curve_array_index < other.curve_array_index; } -BCBezTriple::BCBezTriple(BezTriple bezt) : +BCBezTriple::BCBezTriple(BezTriple &bezt) : bezt(bezt) {} const float BCBezTriple::get_frame() const diff --git a/source/blender/collada/BCAnimationCurve.h b/source/blender/collada/BCAnimationCurve.h index 5d0580210ef..c575c969e0f 100644 --- a/source/blender/collada/BCAnimationCurve.h +++ b/source/blender/collada/BCAnimationCurve.h @@ -82,7 +82,7 @@ class BCBezTriple { public: BezTriple & bezt; - BCBezTriple(BezTriple bezt); + BCBezTriple(BezTriple &bezt); const float get_frame() const; const float get_time(Scene *scene) const; const float get_value() const; |