mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Fix performance for godot's interface
This commit is contained in:
parent
3852c5f8a0
commit
b2e78e117c
@ -160,9 +160,16 @@ void Control::_update_minimum_size_cache() {
|
||||
Size2 minsize = get_minimum_size();
|
||||
minsize.x = MAX(minsize.x, data.custom_minimum_size.x);
|
||||
minsize.y = MAX(minsize.y, data.custom_minimum_size.y);
|
||||
|
||||
bool size_changed = false;
|
||||
if (data.minimum_size_cache != minsize)
|
||||
size_changed = true;
|
||||
|
||||
data.minimum_size_cache = minsize;
|
||||
data.minimum_size_valid = true;
|
||||
minimum_size_changed();
|
||||
|
||||
if (size_changed)
|
||||
minimum_size_changed();
|
||||
}
|
||||
|
||||
Size2 Control::get_combined_minimum_size() const {
|
||||
|
@ -942,6 +942,7 @@ void ItemList::_notification(int p_what) {
|
||||
}
|
||||
}
|
||||
|
||||
minimum_size_changed();
|
||||
shape_changed = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user