You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add expand modes to TextureRect
This commit is contained in:
@@ -316,7 +316,7 @@ void BoneMapper::create_editor() {
|
||||
|
||||
profile_texture = memnew(TextureRect);
|
||||
profile_texture->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
|
||||
profile_texture->set_ignore_texture_size(true);
|
||||
profile_texture->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
|
||||
profile_texture->set_h_size_flags(Control::SIZE_FILL);
|
||||
profile_texture->set_v_size_flags(Control::SIZE_FILL);
|
||||
bone_mapper_field->add_child(profile_texture);
|
||||
|
||||
Reference in New Issue
Block a user