You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Split Geometry singleton into Geometry2D and Geometry3D
Extra `_2d` suffixes are removed from 2D methods accoringly.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "canvas_item_editor_plugin.h"
|
||||
|
||||
#include "core/input/input.h"
|
||||
#include "core/math/geometry_2d.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/print_string.h"
|
||||
#include "core/project_settings.h"
|
||||
@@ -672,7 +673,7 @@ void CanvasItemEditor::_get_bones_at_pos(const Point2 &p_pos, Vector<_SelectResu
|
||||
}
|
||||
|
||||
// Check if the point is inside the Polygon2D
|
||||
if (Geometry::is_point_in_polygon(screen_pos, bone_shape)) {
|
||||
if (Geometry2D::is_point_in_polygon(screen_pos, bone_shape)) {
|
||||
// Check if the item is already in the list
|
||||
bool duplicate = false;
|
||||
for (int i = 0; i < r_items.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user