godot/scene
aaronp64 5682cc7b81 Avoid FlowContainer crash with TextureRect using EXPAND_FIT_* expand modes
When a FlowContainer had a TextureRect child using any of the EXPAND_FIT_* expand modes, it could crash when changing the FlowContainer's minimum size, or that of its children.  This was due to the TextureRect resizing in FlowContainer::_resort, updating its minimum size, and triggering another _resort.  If the TextureRect's minimum size changed in a way that caused any of the FlowContainer's children to be put on a different line, it could repeatedly cause _resort to be called again, moving the children back and forth between the old and new lines.

This change is for FlowContainer::_resort to give a warning for TextureRects with EXPAND_FIT_* expand modes when multiple lines are used, and just keep the TextureRect size the same in that case.  This is similar to the check added to AspectRatioContainer in godotengine#73396, but attempting to still support it in FlowContainer when possible.  In the case where the TextureRect is forced to stay the same size, there may be some overlap between the FlowContainer's children, but should no longer crash.
2024-07-21 13:09:22 -04:00
..
2d Merge pull request #94014 from markdibarry/parallax-snap 2024-07-09 16:47:17 +02:00
3d Fix physics tick counter 2024-07-07 19:04:05 +02:00
animation fix the sorting of blend_times in animation player 2024-07-03 10:01:32 -04:00
audio Fix Web samples finished missing signal 2024-07-07 14:47:54 -04:00
debugger
gui Avoid FlowContainer crash with TextureRect using EXPAND_FIT_* expand modes 2024-07-21 13:09:22 -04:00
main Fixed Timestep Interpolation: Fix behaviour on pause 2024-07-07 16:48:17 +02:00
resources [Editor] Update font preview directly instead of invalidating property list. 2024-07-05 12:48:39 +03:00
theme Style: Optimize .svg files with svgo 2024-06-23 08:15:19 -05:00
property_list_helper.cpp
property_list_helper.h
property_utils.cpp Fix storing of Node Array properties 2024-06-21 15:49:48 +02:00
property_utils.h
register_scene_types.cpp
register_scene_types.h
scene_string_names.cpp [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
scene_string_names.h [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
SCsub