Add expand modes to TextureRect
This commit is contained in:
parent
caf94f244e
commit
dfc4367a47
13 changed files with 86 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue