Skip to content

Commit

Permalink
Update PyHeliosSimulation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DimasfromLavoisier authored Sep 3, 2024
1 parent 3192981 commit a61246f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/python/PyHeliosSimulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ void PyHeliosSimulation::start (){
legacyEnergyModel,
exportToFile,
true
exportToFile,
true
);
playback->callback = callback;
playback->setCallbackFrequency(callbackFrequency);
Expand Down Expand Up @@ -406,7 +404,6 @@ void PyHeliosSimulation::buildPulseThreadPool(){
// *** SIMULATION COPY *** //
// ************************* //
PyHeliosSimulation * PyHeliosSimulation::copy(){
// Copy
// Copy
PyHeliosSimulation *phs = new PyHeliosSimulation(); // The copy itself
phs->xmlreader = std::make_shared<XmlSurveyLoader>(surveyPath, assetsPath);
Expand All @@ -429,12 +426,6 @@ PyHeliosSimulation * PyHeliosSimulation::copy(){
for(PyHeliosSimulation *phsi : copies) phsi->copies.push_back(phs);
copies.push_back(phs);
// Return
// Track copies
phs->copies = copies;
phs->copies.push_back(this);
for(PyHeliosSimulation *phsi : copies) phsi->copies.push_back(phs);
copies.push_back(phs);
// Return
return phs;
}

Expand Down Expand Up @@ -468,4 +459,4 @@ std::shared_ptr<DynScene> PyHeliosSimulation::_getDynScene(){
"Failed to obtain dynamic scene. Current scene is not dynamic."
);
}
}
}

0 comments on commit a61246f

Please sign in to comment.