mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
-Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
This commit is contained in:
@@ -39,9 +39,9 @@ Size2 ProgressBar::get_minimum_size() const {
|
||||
Size2 minimum_size = bg->get_minimum_size();
|
||||
minimum_size.height = MAX(minimum_size.height, fg->get_minimum_size().height);
|
||||
minimum_size.width = MAX(minimum_size.width, fg->get_minimum_size().width);
|
||||
if (percent_visible) {
|
||||
minimum_size.height = MAX(minimum_size.height, bg->get_minimum_size().height + font->get_height());
|
||||
}
|
||||
//if (percent_visible) { this is needed, else the progressbar will collapse
|
||||
minimum_size.height = MAX(minimum_size.height, bg->get_minimum_size().height + font->get_height());
|
||||
//}
|
||||
return minimum_size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user