Skip to content

Commit

Permalink
Enable the adding of point objects in Tile Collision Editor
Browse files Browse the repository at this point in the history
Closes #2043
  • Loading branch information
bjorn committed Dec 16, 2018
1 parent e6f9f3c commit 747c8dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tiled/tilecollisiondock.cpp
Expand Up @@ -21,13 +21,14 @@
#include "tilecollisiondock.h"

#include "addremovemapobject.h"
#include "editpolygontool.h"
#include "changetileobjectgroup.h"
#include "createobjecttool.h"
#include "createrectangleobjecttool.h"
#include "createellipseobjecttool.h"
#include "createobjecttool.h"
#include "createpointobjecttool.h"
#include "createpolygonobjecttool.h"
#include "createrectangleobjecttool.h"
#include "createtemplatetool.h"
#include "editpolygontool.h"
#include "layermodel.h"
#include "map.h"
#include "mapdocument.h"
Expand Down Expand Up @@ -76,6 +77,7 @@ TileCollisionDock::TileCollisionDock(QWidget *parent)
mMapView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

CreateObjectTool *rectangleObjectsTool = new CreateRectangleObjectTool(this);
CreateObjectTool *pointObjectsTool = new CreatePointObjectTool(this);
CreateObjectTool *ellipseObjectsTool = new CreateEllipseObjectTool(this);
CreateObjectTool *polygonObjectsTool = new CreatePolygonObjectTool(this);
CreateObjectTool *templatesTool = new CreateTemplateTool(this);
Expand All @@ -90,6 +92,7 @@ TileCollisionDock::TileCollisionDock(QWidget *parent)
toolBar->addAction(mToolManager->registerTool(new ObjectSelectionTool(this)));
toolBar->addAction(mToolManager->registerTool(new EditPolygonTool(this)));
toolBar->addAction(mToolManager->registerTool(rectangleObjectsTool));
toolBar->addAction(mToolManager->registerTool(pointObjectsTool));
toolBar->addAction(mToolManager->registerTool(ellipseObjectsTool));
toolBar->addAction(mToolManager->registerTool(polygonObjectsTool));
toolBar->addAction(mToolManager->registerTool(templatesTool));
Expand Down

0 comments on commit 747c8dd

Please sign in to comment.