From Wang Rui, "Two small bugs were just found when I was writing examples for my book
in process: a wrong definition of the OSG_FATAL macro, and wrong logic inside the KeySwitchMatrixManipulator::getDistance() function. I believe both were slips."
This commit is contained in:
parent
363f32536b
commit
5435f6cf50
@ -80,7 +80,7 @@ extern OSG_EXPORT std::ostream& notify(const NotifySeverity severity);
|
||||
inline std::ostream& notify(void) { return notify(osg::INFO); }
|
||||
|
||||
#define OSG_NOTIFY(level) if (osg::isNotifyEnabled(level)) osg::notify(level)
|
||||
#define OSG_FATAL OSG_NOTIFY(osg::FALTAL)
|
||||
#define OSG_FATAL OSG_NOTIFY(osg::FATAL)
|
||||
#define OSG_WARN OSG_NOTIFY(osg::WARN)
|
||||
#define OSG_NOTICE OSG_NOTIFY(osg::NOTICE)
|
||||
#define OSG_INFO OSG_NOTIFY(osg::INFO)
|
||||
|
@ -69,7 +69,7 @@ void KeySwitchMatrixManipulator::setDistance(double distance)
|
||||
|
||||
double KeySwitchMatrixManipulator::getDistance() const
|
||||
{
|
||||
if(!_current)
|
||||
if(_current)
|
||||
{
|
||||
return _current->getDistance();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user