Commit faacca01 authored by Jan Möbius's avatar Jan Möbius

Reset drawmodes only when not updateing the settings.

reset scenegraph after reading files from command line

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15095 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ba7d0ce7
......@@ -77,11 +77,9 @@ void Core::resetScenegraph( bool _resetTrackBall ) {
coreWidget_->examiner_widgets_[i]->updateGL();
}
coreWidget_->slotUpdateGlobalDrawMenu();
}
// Update the draw Modes Menu
if ( OpenFlipper::Options::gui() )
coreWidget_->slotUpdateGlobalDrawMenu();
}
//========================================================================================
......@@ -185,6 +183,9 @@ void Core::slotExecuteAfterStartup() {
OpenFlipper::Options::loadingSettings(false);
// Reset the scenegraph once to make sure everything is fine
resetScenegraph( true );
// If we have scripting support, execute the scripts given at the commandline.
if ( scriptingSupport )
for ( uint i = 0 ; i < commandLineScriptNames_.size() ; ++i ) {
......
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