|
|
@ -80,6 +80,15 @@ QGraphicsItem *WorldEditorScene::addWorldItemZone(const QPolygonF &polygon)
|
|
|
|
return item;
|
|
|
|
return item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void WorldEditorScene::removeWorldItem(QGraphicsItem *item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
updateSelectedItems(true);
|
|
|
|
|
|
|
|
m_selectedItems.clear();
|
|
|
|
|
|
|
|
m_editedSelectedItems = false;
|
|
|
|
|
|
|
|
m_firstSelection = false;
|
|
|
|
|
|
|
|
delete item;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WorldEditorScene::setModeEdit(WorldEditorScene::ModeEdit mode)
|
|
|
|
void WorldEditorScene::setModeEdit(WorldEditorScene::ModeEdit mode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mode == WorldEditorScene::SelectMode)
|
|
|
|
if (mode == WorldEditorScene::SelectMode)
|
|
|
|