Fixed bug where PropertyAdjustmentCallback was being added multiple times.
This commit is contained in:
parent
751d7baf1c
commit
bbe59cd3e0
@ -41,7 +41,10 @@ public:
|
||||
osgVolume::VolumeTile* volumeTile = dynamic_cast<osgVolume::VolumeTile*>(&group);
|
||||
if (volumeTile)
|
||||
{
|
||||
volumeTile->addEventCallback(new osgVolume::PropertyAdjustmentCallback());
|
||||
if (dynamic_cast<osgVolume::PropertyAdjustmentCallback*>(volumeTile->getEventCallback())==0)
|
||||
{
|
||||
volumeTile->addEventCallback(new osgVolume::PropertyAdjustmentCallback());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user