You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Removed unused variables, add some constants numbers
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
#define MIN_ZOOM 0.01
|
||||
#define MAX_ZOOM 100
|
||||
|
||||
#define RULER_WIDTH 15 * EDSCALE
|
||||
#define RULER_WIDTH (15 * EDSCALE)
|
||||
#define SCALE_HANDLE_DISTANCE 25
|
||||
|
||||
class SnapDialog : public ConfirmationDialog {
|
||||
@@ -3202,7 +3202,7 @@ void CanvasItemEditor::_draw_selection() {
|
||||
int next = (i + 1) % 4;
|
||||
|
||||
Vector2 ofs = ((endpoints[i] - endpoints[prev]).normalized() + ((endpoints[i] - endpoints[next]).normalized())).normalized();
|
||||
ofs *= 1.4144 * (select_handle->get_size().width / 2);
|
||||
ofs *= Math_SQRT2 * (select_handle->get_size().width / 2);
|
||||
|
||||
select_handle->draw(ci, (endpoints[i] + ofs - (select_handle->get_size() / 2)).floor());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user