summaryrefslogtreecommitdiffstats
path: root/jni/feature_stab/src/dbreg/dbreg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jni/feature_stab/src/dbreg/dbreg.cpp')
-rw-r--r--jni/feature_stab/src/dbreg/dbreg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/feature_stab/src/dbreg/dbreg.cpp b/jni/feature_stab/src/dbreg/dbreg.cpp
index fb42838..dc7d58f 100644
--- a/jni/feature_stab/src/dbreg/dbreg.cpp
+++ b/jni/feature_stab/src/dbreg/dbreg.cpp
@@ -344,7 +344,7 @@ bool db_FrameToReferenceRegistration::NeedReferenceUpdate()
int db_FrameToReferenceRegistration::AddFrame(const unsigned char * const * im, double H[9],bool force_reference,bool prewarp)
{
m_current_is_reference = false;
- if(!m_reference_set)
+ if(!m_reference_set || force_reference)
{
db_Identity3x3(m_H_ref_to_ins);
db_Copy9(H,m_H_ref_to_ins);