Gui: Fix saving light sources

This commit is contained in:
Kacper Donat
2025-03-29 17:44:03 +01:00
committed by Chris Hennes
parent 4a3fe9cf99
commit abe8a90f2f
3 changed files with 15 additions and 8 deletions

View File

@@ -45,22 +45,27 @@ using namespace Gui;
View3DSettings::View3DSettings(ParameterGrp::handle hGrp,
View3DInventorViewer* view)
: hGrp(hGrp)
, hLightSourcesGrp(hGrp->GetGroup("LightSources"))
, _viewers{view}
{
hGrp->Attach(this);
hLightSourcesGrp->Attach(this);
}
View3DSettings::View3DSettings(ParameterGrp::handle hGrp,
const std::vector<View3DInventorViewer *>& view)
: hGrp(hGrp)
, hLightSourcesGrp(hGrp->GetGroup("LightSources"))
, _viewers(view)
{
hGrp->Attach(this);
hLightSourcesGrp->Attach(this);
}
View3DSettings::~View3DSettings()
{
hGrp->Detach(this);
hLightSourcesGrp->Detach(this);
}
int View3DSettings::stopAnimatingIfDeactivated() const