Add static types to arrays (inspector fix)
This commit is contained in:
parent
27d7772381
commit
f9788f75e5
@ -358,10 +358,14 @@ void EditorPropertyArray::update_property() {
|
|||||||
vbox->add_child(hb);
|
vbox->add_child(hb);
|
||||||
hb->add_child(prop);
|
hb->add_child(prop);
|
||||||
prop->set_h_size_flags(SIZE_EXPAND_FILL);
|
prop->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
|
|
||||||
|
if (subtype == Variant::NIL) {
|
||||||
Button *edit = memnew(Button);
|
Button *edit = memnew(Button);
|
||||||
edit->set_icon(get_icon("Edit", "EditorIcons"));
|
edit->set_icon(get_icon("Edit", "EditorIcons"));
|
||||||
hb->add_child(edit);
|
hb->add_child(edit);
|
||||||
edit->connect("pressed", this, "_change_type", varray(edit, i + offset));
|
edit->connect("pressed", this, "_change_type", varray(edit, i + offset));
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
vbox->add_child(prop);
|
vbox->add_child(prop);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user