virtualx-engine/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 Reduce and prevent unnecessary random-access to List 2024-05-04 16:08:55 +02:00
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 Automatically use property count in PropertyListHelper 2024-05-25 10:51:37 +02:00
property_list_helper.h Automatically use property count in PropertyListHelper 2024-05-25 10:51:37 +02:00
property_utils.cpp Fix storing of Node Array properties 2024-06-21 15:49:48 +02:00
property_utils.h Fix default NodePaths saved in scene 2024-06-03 13:10:23 +02:00
register_scene_types.cpp Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
register_scene_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
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 Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00