Changeset 849 for trunk/source/visualization/management/src
- Timestamp:
- Aug 28, 2008, 4:17:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VisCommands.cc
r772 r849 25 25 // 26 26 // 27 // $Id: G4VisCommands.cc,v 1.2 2 2007/03/27 15:47:32allison Exp $27 // $Id: G4VisCommands.cc,v 1.23 2008/07/27 10:46:23 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 … … 179 179 void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue) 180 180 { 181 static bool reviewing = false; 182 if (reviewing) { 183 G4cout << 184 "\"/vis/reviewKeptEvents\" not allowed within an already started review." 185 "\n No action taken." 186 << G4endl; 187 return; 188 } 189 181 190 G4String& macroFileName = newValue; 182 191 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); … … 223 232 224 233 // Event by event refreshing... 234 reviewing = true; 225 235 G4bool currentRefreshAtEndOfEvent = pScene->GetRefreshAtEndOfEvent(); 226 236 pScene->SetRefreshAtEndOfEvent(true); … … 286 296 } 287 297 pScene->SetRefreshAtEndOfEvent(currentRefreshAtEndOfEvent); 298 reviewing = false; 288 299 289 300 UImanager->SetVerboseLevel(keepVerbose);
Note:
See TracChangeset
for help on using the changeset viewer.
