forked from mirror/openmw-tes3mp
Reload water
This commit is contained in:
parent
b62cb0e2a4
commit
d4a722067d
3 changed files with 9 additions and 0 deletions
|
@ -290,6 +290,8 @@ void CSVRender::Cell::reloadAssets()
|
|||
{
|
||||
iter->second->reloadAssets();
|
||||
}
|
||||
|
||||
mCellWater->reloadAssets();
|
||||
}
|
||||
|
||||
void CSVRender::Cell::setSelection (int elementMask, Selection mode)
|
||||
|
|
|
@ -92,6 +92,11 @@ namespace CSVRender
|
|||
}
|
||||
}
|
||||
|
||||
void CellWater::reloadAssets()
|
||||
{
|
||||
recreate();
|
||||
}
|
||||
|
||||
void CellWater::cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
|
||||
{
|
||||
const CSMWorld::Collection<CSMWorld::Cell>& cells = mData.getCells();
|
||||
|
|
|
@ -42,6 +42,8 @@ namespace CSVRender
|
|||
|
||||
void updateCellData(const CSMWorld::Record<CSMWorld::Cell>& cellRecord);
|
||||
|
||||
void reloadAssets();
|
||||
|
||||
private slots:
|
||||
|
||||
void cellDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
|
||||
|
|
Loading…
Reference in a new issue