From cc699871a32174f9a48d9fecf7b63b0306e8ec42 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 21 Jun 2020 23:26:15 +0100 Subject: [PATCH] simgear/scene/model/SGReaderWriterXML.cxx: minor change to addTooltipAnimations(). Improved calculation of num_new_animations. --- simgear/scene/model/SGReaderWriterXML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index 95050746..1a7ea435 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -396,10 +396,10 @@ void addTooltipAnimations(const SGPath& path, SGPropertyNode_ptr props, osg::ref /* Make a unique tooltip-id. */ std::string tooltip_id = "auto-tooltip-"; { - num_new_animations += 1; if (autoTooltipsMasterMax > 0 && num_new_animations > autoTooltipsMasterMax) { continue; } + num_new_animations += 1; std::ostringstream s; s << num_new_animations; tooltip_id += s.str();