Updated tile_set_editor_plugin.cpp And area.cpp# This is a combination of 2 commits.
Updated tile_set_editor_plugin.cpp And area.cpp Updated with clang-format Updated tile_set_editor_plugin.cpp And area.cpp
This commit is contained in:
parent
6f404efd9a
commit
2d995372d8
2 changed files with 3 additions and 2 deletions
|
@ -2417,7 +2417,9 @@ void TileSetEditor::draw_polygon_shapes() {
|
||||||
colors.push_back(c_bg);
|
colors.push_back(c_bg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (polygon.size() > 2) {
|
if (polygon.size() == 0)
|
||||||
|
continue;
|
||||||
|
else if (polygon.size() > 2) {
|
||||||
workspace->draw_polygon(polygon, colors);
|
workspace->draw_polygon(polygon, colors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -756,7 +756,6 @@ Area::Area() :
|
||||||
monitorable = false;
|
monitorable = false;
|
||||||
collision_mask = 1;
|
collision_mask = 1;
|
||||||
collision_layer = 1;
|
collision_layer = 1;
|
||||||
set_ray_pickable(false);
|
|
||||||
set_monitoring(true);
|
set_monitoring(true);
|
||||||
set_monitorable(true);
|
set_monitorable(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue