Commit 7f487398 authored by Jan Möbius's avatar Jan Möbius

Fixed Pluginfunction for isProjectionOrthographic which did not work for the...

Fixed Pluginfunction for isProjectionOrthographic which did not work for the active_viewer. (Thanks to Bengt Rosenberger for the report)



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14601 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cfdf3b2c
......@@ -800,13 +800,10 @@ ACG::Vec3d viewingDirection(int _viewer) {
bool isProjectionOrthographic( int _viewer ) {
if ( ( _viewer >= 0 ) && _viewer < (int)examiner_widgets_.size() ){
if ( examiner_widgets_[_viewer]->projectionMode() == 0) //ORTHOGRAPHIC_PROJECTION
return true;
else
return false;
if ( _viewer == ACTIVE_VIEWER) {
return (examiner_widgets_[activeExaminer_]->projectionMode() == 0);
} else if ( ( _viewer >= 0 ) && _viewer < (int)examiner_widgets_.size() ){
return ( examiner_widgets_[_viewer]->projectionMode() == 0); //ORTHOGRAPHIC_PROJECTION ?
} else
std::cerr << "Requested illegal viewer for isProjectionOrthographic!!" << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment