Skip to content

Commit

Permalink
Fixed tile collision editor getting disabled permanently
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jan 9, 2017
1 parent 4164dcf commit dfd7834
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tiled/tilecollisioneditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ void TileCollisionEditor::setTile(Tile *tile)
mMapScene->disableSelectedTool();
MapDocument *previousDocument = mMapScene->mapDocument();

mMapView->setEnabled(tile);
mPropertiesDock->setEnabled(tile);

if (tile) {
Map *map = new Map(Map::Orthogonal, 1, 1, tile->width(), tile->height());
map->addTileset(tile->sharedTileset());
Expand Down Expand Up @@ -207,8 +210,6 @@ void TileCollisionEditor::setTile(Tile *tile)
this, &TileCollisionEditor::selectedObjectsChanged);

} else {
mMapView->setEnabled(false);
mPropertiesDock->setEnabled(false);
mMapScene->setMapDocument(nullptr);
mToolManager->setMapDocument(nullptr);
mPropertiesDock->setDocument(nullptr);
Expand Down

0 comments on commit dfd7834

Please sign in to comment.