diff --git a/src/plugins/python/pythonbind.cpp b/src/plugins/python/pythonbind.cpp index 6bb558e2a1..6458a2848a 100644 --- a/src/plugins/python/pythonbind.cpp +++ b/src/plugins/python/pythonbind.cpp @@ -7595,6 +7595,18 @@ inittiled_Tiled(void) tmp_value = PyLong_FromLong(Tiled::MapObject::Polyline); PyDict_SetItemString((PyObject*) PyTiledMapObject_Type.tp_dict, "Polyline", tmp_value); Py_DECREF(tmp_value); + // Tiled::MapObject::Ellipse + tmp_value = PyLong_FromLong(Tiled::MapObject::Ellipse); + PyDict_SetItemString((PyObject*) PyTiledMapObject_Type.tp_dict, "Ellipse", tmp_value); + Py_DECREF(tmp_value); + // Tiled::MapObject::Text + tmp_value = PyLong_FromLong(Tiled::MapObject::Text); + PyDict_SetItemString((PyObject*) PyTiledMapObject_Type.tp_dict, "Text", tmp_value); + Py_DECREF(tmp_value); + // Tiled::MapObject::Point + tmp_value = PyLong_FromLong(Tiled::MapObject::Point); + PyDict_SetItemString((PyObject*) PyTiledMapObject_Type.tp_dict, "Point", tmp_value); + Py_DECREF(tmp_value); } { PyObject *tmp_value; diff --git a/src/plugins/python/tiledbinding.py b/src/plugins/python/tiledbinding.py index 394b9247f8..f5e5d2bfb4 100755 --- a/src/plugins/python/tiledbinding.py +++ b/src/plugins/python/tiledbinding.py @@ -256,7 +256,7 @@ def _decorate(obj, *args, **kwargs): cls_mapobject.add_constructor([]) cls_mapobject.add_constructor([('QString','name'), ('QString','type'), ('QPointF','pos'), ('QSizeF','size') ]) -cls_mapobject.add_enum('Shape', ('Rectangle','Polygon','Polyline')) +cls_mapobject.add_enum('Shape', ('Rectangle','Polygon','Polyline','Ellipse','Text','Point')) cls_mapobject.add_method('setPosition', None, [('QPointF','pos')]) cls_mapobject.add_method('x', 'double', []) cls_mapobject.add_method('setX', None, [('double','x')])