diff --git a/Simple.cpp b/Simple.cpp index 9b94b3e..0e924d4 100644 --- a/Simple.cpp +++ b/Simple.cpp @@ -903,8 +903,7 @@ void Simple::AddObject(QJsonObject json) AddObject(mesh); } - - + UpdateGeometry(); } @@ -928,7 +927,7 @@ void Simple::AddObject(SimpleObject *obj) ui->shapesList->setEnabled(true); ui->objectTree->setCurrentItem(t); on_objectTree_itemClicked(t,0); - UpdateGeometry(); + //UpdateGeometry(); ui->addObject->setText("Add "+ ui->shapesList->currentText()); } @@ -1089,6 +1088,7 @@ void Simple::on_duplicate_clicked() } } } + UpdateGeometry(); } diff --git a/SimpleDetectorConstruction.cpp b/SimpleDetectorConstruction.cpp index 6c551e1..417dc31 100644 --- a/SimpleDetectorConstruction.cpp +++ b/SimpleDetectorConstruction.cpp @@ -191,7 +191,7 @@ G4VPhysicalVolume* SimpleDetectorConstruction::Construct() if(magFieldChanged==false) magFieldChanged=obj->magFieldChanged(); Draw(obj); - if(ii<100) + //if(ii<100) print(obj); } if(magFieldChanged) // do this only if magnetic field changed