moved ifdef G4VIS_USE before the first include; removed unneed include
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jul 2000 18:38:00 +0000 (18:38 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jul 2000 18:38:00 +0000 (18:38 +0000)
TGeant4/TG4VisManager.cxx

index c43f794be664697ef16c6eacec67bf242c0b3f15..d9359d8a5f8d926d48efc22dc9c93aa3078f3d19 100644 (file)
 //   myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem);
 
 
+#ifdef G4VIS_USE
+
+#include "TG4VisManager.h"
 #include "TG4Globals.h"
 
 #include <G4LogicalVolumeStore.hh>
 #include <G4PhysicalVolumeStore.hh>
-#include <G4PhysicalVolumeModel.hh>
-#include <G4LogicalVolumeModel.hh>
 #include <G4TransportationManager.hh>
 #include <G4Material.hh>
-
-#ifdef G4VIS_USE
-#include "TG4VisManager.h"
-
+#include <G4PhysicalVolumeModel.hh>
 #include <G4VVisManager.hh>
 
 // Supported drivers...
@@ -806,7 +804,6 @@ void TG4VisManager::Gdraw(const char *name,Float_t theta, Float_t phi, Float_t p
     pPV = pvList[i];
     G4LogicalVolume* pLV = pPV->GetLogicalVolume();
     G4VSolid* pSolid = pLV->GetSolid();
-
     successful = fpScene->AddRunDurationModel(new G4PhysicalVolumeModel(pPV));
     if (!successful) 
     {