feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include "bit_map.h"
|
||||
|
||||
#include "core/io/image_loader.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
|
||||
void BitMap::create(const Size2i &p_size) {
|
||||
|
|
@ -559,6 +558,7 @@ void BitMap::grow_mask(int p_pixels, const Rect2i &p_rect) {
|
|||
|
||||
bool bit_value = p_pixels > 0;
|
||||
p_pixels = Math::abs(p_pixels);
|
||||
const int pixels2 = p_pixels * p_pixels;
|
||||
|
||||
Rect2i r = Rect2i(0, 0, width, height).intersection(p_rect);
|
||||
|
||||
|
|
@ -588,8 +588,8 @@ void BitMap::grow_mask(int p_pixels, const Rect2i &p_rect) {
|
|||
}
|
||||
}
|
||||
|
||||
float d = Point2(j, i).distance_to(Point2(x, y)) - CMP_EPSILON;
|
||||
if (d > p_pixels) {
|
||||
float d = Point2(j, i).distance_squared_to(Point2(x, y)) - CMP_EPSILON2;
|
||||
if (d > pixels2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue