mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Construct values only when necessary.
This commit is contained in:
parent
2ec1152b0f
commit
cc51b045da
27 changed files with 59 additions and 60 deletions
|
@ -158,7 +158,7 @@ void GPUParticles2DEditorPlugin::_generate_emission_mask() {
|
|||
}
|
||||
img->convert(Image::FORMAT_RGBA8);
|
||||
ERR_FAIL_COND(img->get_format() != Image::FORMAT_RGBA8);
|
||||
Size2i s = Size2(img->get_width(), img->get_height());
|
||||
Size2i s = img->get_size();
|
||||
ERR_FAIL_COND(s.width == 0 || s.height == 0);
|
||||
|
||||
Vector<Point2> valid_positions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue