Gui: Fix saving light sources
This commit is contained in:
committed by
Chris Hennes
parent
4a3fe9cf99
commit
abe8a90f2f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user