[Bf-blender-cvs] [6b31a14ff78] master: bezt_add_to_cfra_elem() - Use same keyframe equality test as in other places
Joshua Leung
noreply at git.blender.org
Wed Feb 21 13:59:52 CET 2018
Commit: 6b31a14ff7818898128152cdc4accea9cf888784
Author: Joshua Leung
Date: Thu Feb 15 17:40:19 2018 +1300
Branches: master
https://developer.blender.org/rB6b31a14ff7818898128152cdc4accea9cf888784
bezt_add_to_cfra_elem() - Use same keyframe equality test as in other places
This shouldn't affect anything currently, as this function doesn't appear
to get used anywhere.
===================================================================
M source/blender/blenkernel/intern/fcurve.c
===================================================================
diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c
index 9c85a26b58a..d7e8c62375b 100644
--- a/source/blender/blenkernel/intern/fcurve.c
+++ b/source/blender/blenkernel/intern/fcurve.c
@@ -804,7 +804,7 @@ void bezt_add_to_cfra_elem(ListBase *lb, BezTriple *bezt)
for (ce = lb->first; ce; ce = ce->next) {
/* double key? */
- if (ce->cfra == bezt->vec[1][0]) {
+ if (IS_EQT(ce->cfra, bezt->vec[1][0], BEZT_BINARYSEARCH_THRESH)) {
if (bezt->f2 & SELECT) ce->sel = bezt->f2;
return;
}
More information about the Bf-blender-cvs
mailing list