|
|
|
@ -167,7 +167,6 @@ CSVRender::Object::Object (CSMWorld::Data& data, osg::Group* parentNode,
|
|
|
|
|
mBaseNode->addCullCallback(new SceneUtil::LightListCallback);
|
|
|
|
|
|
|
|
|
|
mOutline = new osgFX::Scribe;
|
|
|
|
|
mOutline->addChild(mBaseNode);
|
|
|
|
|
|
|
|
|
|
mBaseNode->setUserData(new ObjectTag(this));
|
|
|
|
|
|
|
|
|
@ -202,10 +201,14 @@ void CSVRender::Object::setSelected(bool selected)
|
|
|
|
|
{
|
|
|
|
|
mSelected = selected;
|
|
|
|
|
|
|
|
|
|
mOutline->removeChild(mBaseNode);
|
|
|
|
|
mRootNode->removeChild(mOutline);
|
|
|
|
|
mRootNode->removeChild(mBaseNode);
|
|
|
|
|
if (selected)
|
|
|
|
|
{
|
|
|
|
|
mOutline->addChild(mBaseNode);
|
|
|
|
|
mRootNode->addChild(mOutline);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
mRootNode->addChild(mBaseNode);
|
|
|
|
|
}
|
|
|
|
|