mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
Fix error spam with Sprite has compressed texture
Fix #18177 (cherry picked from commit 3ecf8eef37db55e50b2fd70a376cd60787f54203)
This commit is contained in:
parent
5a947ebc42
commit
94ddb499df
@ -307,6 +307,9 @@ bool Sprite::_edit_is_selected_on_click(const Point2 &p_point, double p_toleranc
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(image.is_null(), false);
|
||||
if (image->is_compressed()) {
|
||||
return dst_rect.has_point(p_point);
|
||||
}
|
||||
|
||||
bool is_repeat = texture->get_flags() & Texture::FLAG_REPEAT;
|
||||
bool is_mirrored_repeat = texture->get_flags() & Texture::FLAG_MIRRORED_REPEAT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user