mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
fixed drop implementation for unpaged worldspace (wasn't updating cell object)
This commit is contained in:
parent
0db288ce07
commit
717c1b15f5
3 changed files with 9 additions and 2 deletions
|
@ -98,11 +98,11 @@ bool CSVRender::UnpagedWorldspaceWidget::handleDrop (const std::vector<CSMWorld:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
mCellId = data.begin()->getId();
|
mCellId = data.begin()->getId();
|
||||||
|
mCell.reset (new Cell (getDocument().getData(), getSceneManager(), mCellId));
|
||||||
|
|
||||||
update();
|
update();
|
||||||
emit cellChanged(*data.begin());
|
emit cellChanged(*data.begin());
|
||||||
|
|
||||||
/// \todo replace mCell
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -213,6 +213,11 @@ void CSVRender::WorldspaceWidget::addVisibilitySelectorButtons (
|
||||||
tool->addButton (":armor.png", Element_Pathgrid, ":armor.png", "Pathgrid");
|
tool->addButton (":armor.png", Element_Pathgrid, ":armor.png", "Pathgrid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CSMDoc::Document& CSVRender::WorldspaceWidget::getDocument()
|
||||||
|
{
|
||||||
|
return mDocument;
|
||||||
|
}
|
||||||
|
|
||||||
void CSVRender::WorldspaceWidget::dragEnterEvent (QDragEnterEvent* event)
|
void CSVRender::WorldspaceWidget::dragEnterEvent (QDragEnterEvent* event)
|
||||||
{
|
{
|
||||||
event->accept();
|
event->accept();
|
||||||
|
|
|
@ -85,6 +85,8 @@ namespace CSVRender
|
||||||
|
|
||||||
virtual void addVisibilitySelectorButtons (CSVWidget::SceneToolToggle *tool);
|
virtual void addVisibilitySelectorButtons (CSVWidget::SceneToolToggle *tool);
|
||||||
|
|
||||||
|
CSMDoc::Document& getDocument();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event);
|
||||||
|
|
Loading…
Reference in a new issue