diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-08-25 23:09:41 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-08-25 23:09:41 -0300 |
commit | b0be30d9efb11aba10fd97c71fec47e34ea88ca1 (patch) | |
tree | e57d8515a5354c4aecb3ceaf4ad4235465fc0c96 /tools/editor/array_property_edit.h | |
parent | d50921b55089e0396ee5f11675b6093dd49b7cbb (diff) | |
download | redot-engine-b0be30d9efb11aba10fd97c71fec47e34ea88ca1.tar.gz |
make sure array is created if not existing, as noted by Guilherme Felipe
Diffstat (limited to 'tools/editor/array_property_edit.h')
-rw-r--r-- | tools/editor/array_property_edit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/array_property_edit.h b/tools/editor/array_property_edit.h index 0bf7468eeb..acfb8e68ed 100644 --- a/tools/editor/array_property_edit.h +++ b/tools/editor/array_property_edit.h @@ -12,6 +12,7 @@ class ArrayPropertyEdit : public Reference { StringName property; String vtypes; Variant get_array() const; + Variant::Type default_type; void _notif_change(); void _notif_changev(const String& p_v); @@ -27,7 +28,7 @@ protected: public: - void edit(Object* p_obj,const StringName& p_prop); + void edit(Object* p_obj, const StringName& p_prop, Variant::Type p_deftype); ArrayPropertyEdit(); }; |