mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
trying to do it right.
This commit is contained in:
parent
ea1aaef8ca
commit
c2b070f097
@ -143,9 +143,9 @@ void CSVWorld::SceneSubView::changeToPaged (const std::vector< CSMWorld::Univers
|
|||||||
mLayout->removeWidget(mScene);
|
mLayout->removeWidget(mScene);
|
||||||
|
|
||||||
delete mScene;
|
delete mScene;
|
||||||
|
|
||||||
delete mToolbar;
|
delete mToolbar;
|
||||||
|
|
||||||
|
setUniversalId(CSMWorld::UniversalId(CSMWorld::UniversalId::Type_Cell, "sys::default"));
|
||||||
mToolbar = new SceneToolbar (48+6, this);
|
mToolbar = new SceneToolbar (48+6, this);
|
||||||
|
|
||||||
CSVRender::PagedWorldspaceWidget* widget = new CSVRender::PagedWorldspaceWidget (this, mDocument);
|
CSVRender::PagedWorldspaceWidget* widget = new CSVRender::PagedWorldspaceWidget (this, mDocument);
|
||||||
@ -184,6 +184,7 @@ void CSVWorld::SceneSubView::changeToUnpaged (const std::vector< CSMWorld::Unive
|
|||||||
|
|
||||||
mToolbar = new SceneToolbar (48+6, this);
|
mToolbar = new SceneToolbar (48+6, this);
|
||||||
CSVRender::UnpagedWorldspaceWidget* widget = new CSVRender::UnpagedWorldspaceWidget (data.begin()->getId(), mDocument, this);
|
CSVRender::UnpagedWorldspaceWidget* widget = new CSVRender::UnpagedWorldspaceWidget (data.begin()->getId(), mDocument, this);
|
||||||
|
setUniversalId(*(data.begin()));
|
||||||
|
|
||||||
mScene = widget;
|
mScene = widget;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user