Fix paste value emptying an array on some right click location
(cherry picked from commit f2758d8591
)
This commit is contained in:
parent
3d8c77dc92
commit
5abac84a9e
|
@ -254,7 +254,7 @@ void EditorPropertyArray::update_property() {
|
||||||
array_type_name = vformat("%s[%s]", array_type_name, type_name);
|
array_type_name = vformat("%s[%s]", array_type_name, type_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array.get_type() == Variant::NIL) {
|
if (!array.is_array()) {
|
||||||
edit->set_text(vformat(TTR("(Nil) %s"), array_type_name));
|
edit->set_text(vformat(TTR("(Nil) %s"), array_type_name));
|
||||||
edit->set_pressed(false);
|
edit->set_pressed(false);
|
||||||
if (container) {
|
if (container) {
|
||||||
|
@ -286,6 +286,7 @@ void EditorPropertyArray::update_property() {
|
||||||
if (!container) {
|
if (!container) {
|
||||||
container = memnew(MarginContainer);
|
container = memnew(MarginContainer);
|
||||||
container->set_theme_type_variation("MarginContainer4px");
|
container->set_theme_type_variation("MarginContainer4px");
|
||||||
|
container->set_mouse_filter(MOUSE_FILTER_STOP);
|
||||||
add_child(container);
|
add_child(container);
|
||||||
set_bottom_editor(container);
|
set_bottom_editor(container);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue