summaryrefslogtreecommitdiffstats
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-08-25 23:09:41 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-08-25 23:09:41 -0300
commitb0be30d9efb11aba10fd97c71fec47e34ea88ca1 (patch)
treee57d8515a5354c4aecb3ceaf4ad4235465fc0c96 /tools/editor/property_editor.cpp
parentd50921b55089e0396ee5f11675b6093dd49b7cbb (diff)
downloadredot-engine-b0be30d9efb11aba10fd97c71fec47e34ea88ca1.tar.gz
make sure array is created if not existing, as noted by Guilherme Felipe
Diffstat (limited to 'tools/editor/property_editor.cpp')
-rw-r--r--tools/editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 39b9c72313..7e367e17b8 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -3143,7 +3143,7 @@ void PropertyEditor::_edit_button(Object *p_item, int p_column, int p_button) {
}
Ref<ArrayPropertyEdit> ape = memnew( ArrayPropertyEdit );
- ape->edit(obj,n);
+ ape->edit(obj,n,Variant::Type(t));
EditorNode::get_singleton()->push_item(ape.ptr());
}