Reload water

This commit is contained in:
Kyle Cooley 2017-08-20 20:55:56 -04:00
parent b62cb0e2a4
commit d4a722067d
3 changed files with 9 additions and 0 deletions

View file

@ -290,6 +290,8 @@ void CSVRender::Cell::reloadAssets()
{ {
iter->second->reloadAssets(); iter->second->reloadAssets();
} }
mCellWater->reloadAssets();
} }
void CSVRender::Cell::setSelection (int elementMask, Selection mode) void CSVRender::Cell::setSelection (int elementMask, Selection mode)

View file

@ -92,6 +92,11 @@ namespace CSVRender
} }
} }
void CellWater::reloadAssets()
{
recreate();
}
void CellWater::cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) void CellWater::cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
{ {
const CSMWorld::Collection<CSMWorld::Cell>& cells = mData.getCells(); const CSMWorld::Collection<CSMWorld::Cell>& cells = mData.getCells();

View file

@ -42,6 +42,8 @@ namespace CSVRender
void updateCellData(const CSMWorld::Record<CSMWorld::Cell>& cellRecord); void updateCellData(const CSMWorld::Record<CSMWorld::Cell>& cellRecord);
void reloadAssets();
private slots: private slots:
void cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); void cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);