[Bf-blender-cvs] [397272e5611] blender2.8: fix: Collada: use reference to BezTriple instead of copy

Gaia Clary noreply at git.blender.org
Fri Nov 23 19:24:09 CET 2018


Commit: 397272e561182f0c48564e1efd1e3866c52cdd8d
Author: Gaia Clary
Date:   Fri Nov 23 19:21:29 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB397272e561182f0c48564e1efd1e3866c52cdd8d

fix: Collada: use reference to BezTriple instead of copy

===================================================================

M	source/blender/collada/BCAnimationCurve.cpp
M	source/blender/collada/BCAnimationCurve.h

===================================================================

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;



More information about the Bf-blender-cvs mailing list