Changeset 1087 for trunk/source/visualization
- Timestamp:
- Jul 24, 2009, 11:39:50 AM (15 years ago)
- Location:
- trunk/source/visualization/management
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/History
r1042 r1087 1 $Id: History,v 1.12 1 2009/05/13 18:18:03 allisonExp $1 $Id: History,v 1.122 2009/07/24 09:20:52 lgarnier Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 29 24th July 2009 Laurent Garnier 30 - G4VisCommandsSceneAdd::EventID::operator() : Add a protection if 31 CurrentSceneHandler has no model 28 32 29 33 13th May 2009 John Allison (visman-V09-02-02) -
trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc
r954 r1087 25 25 // 26 26 // 27 // $Id: G4VisCommandsSceneAdd.cc,v 1.7 3 2007/11/16 20:29:04 perlExp $27 // $Id: G4VisCommandsSceneAdd.cc,v 1.74 2009/07/24 09:20:52 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // /vis/scene commands - John Allison 9th August 1998 … … 232 232 233 233 G4VModel* model = fpVisManager->GetCurrentSceneHandler()->GetModel(); 234 const G4ModelingParameters* mp = model->GetModelingParameters(); 235 const G4Event* currentEvent = mp->GetEvent(); 236 234 const G4ModelingParameters* mp; 235 const G4Event* currentEvent; 236 if (model) { 237 mp = model->GetModelingParameters(); 238 currentEvent = mp->GetEvent(); 239 } else { 240 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); 241 if (verbosity >= G4VisManager::errors) { 242 G4cout << "ERROR: No model defined for this SceneHandler : "<< fpVisManager->GetCurrentSceneHandler()->GetName() << G4endl; 243 } 244 } 237 245 if (currentRun && currentEvent) { 238 246 G4int runID = currentRun->GetRunID();
Note: See TracChangeset
for help on using the changeset viewer.