|
|
|
@ -472,6 +472,9 @@ CSVRender::PagedWorldspaceWidget::PagedWorldspaceWidget (QWidget* parent, CSMDoc
|
|
|
|
|
connect (cells, SIGNAL (rowsInserted (const QModelIndex&, int, int)),
|
|
|
|
|
this, SLOT (cellAdded (const QModelIndex&, int, int)));
|
|
|
|
|
|
|
|
|
|
connect (&document.getData(), SIGNAL (assetTablesChanged ()),
|
|
|
|
|
this, SLOT (assetTablesChanged ()));
|
|
|
|
|
|
|
|
|
|
// Shortcuts
|
|
|
|
|
CSMPrefs::Shortcut* loadCameraCellShortcut = new CSMPrefs::Shortcut("scene-load-cam-cell", this);
|
|
|
|
|
connect(loadCameraCellShortcut, SIGNAL(activated()), this, SLOT(loadCameraCell()));
|
|
|
|
@ -763,6 +766,15 @@ void CSVRender::PagedWorldspaceWidget::cellAdded (const QModelIndex& index, int
|
|
|
|
|
flagAsModified();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSVRender::PagedWorldspaceWidget::assetTablesChanged()
|
|
|
|
|
{
|
|
|
|
|
std::map<CSMWorld::CellCoordinates, Cell *>::iterator iter = mCells.begin();
|
|
|
|
|
for ( ; iter != mCells.end(); ++iter)
|
|
|
|
|
{
|
|
|
|
|
iter->second->reloadAssets();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSVRender::PagedWorldspaceWidget::loadCameraCell()
|
|
|
|
|
{
|
|
|
|
|
addCellToSceneFromCamera(0, 0);
|
|
|
|
|