|
|
@ -35,6 +35,7 @@ void CSVRender::Object::clear()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mObject.setNull();
|
|
|
|
mObject.setNull();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mBase)
|
|
|
|
clearSceneNode (mBase);
|
|
|
|
clearSceneNode (mBase);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -156,12 +157,14 @@ CSVRender::Object::~Object()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
clear();
|
|
|
|
clear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mBase)
|
|
|
|
|
|
|
|
{
|
|
|
|
if(mPhysics) // preview may not have physics enabled
|
|
|
|
if(mPhysics) // preview may not have physics enabled
|
|
|
|
mPhysics->removeObject(mBase->getName());
|
|
|
|
mPhysics->removeObject(mBase->getName());
|
|
|
|
|
|
|
|
|
|
|
|
if (mBase)
|
|
|
|
|
|
|
|
mBase->getCreator()->destroySceneNode (mBase);
|
|
|
|
mBase->getCreator()->destroySceneNode (mBase);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
|
|
|
|
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
|
|
|
|
const QModelIndex& bottomRight)
|
|
|
|
const QModelIndex& bottomRight)
|
|
|
|