summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2017-08-09 20:51:38 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2017-08-09 20:51:38 +0700
commit9c1afce38eef4f51e98165e2dcdd170b81e97ce1 (patch)
treef17a01d2661a1c26fd8075b929761f97029a2abb /modules
parentdf5d01f2599d557e568936d389d46a5393c7e9a4 (diff)
Allow to edit base type NativeScript properties
Diffstat (limited to 'modules')
-rw-r--r--modules/nativescript/nativescript.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp
index f00917bcea..557c96de0f 100644
--- a/modules/nativescript/nativescript.cpp
+++ b/modules/nativescript/nativescript.cpp
@@ -77,14 +77,12 @@ void NativeScript::_update_placeholder(PlaceHolderScriptInstance *p_placeholder)
ERR_FAIL_COND(!script_data);
List<PropertyInfo> info;
+ get_script_property_list(&info);
Map<StringName, Variant> values;
-
- for (Map<StringName, NativeScriptDesc::Property>::Element *E = script_data->properties.front(); E; E = E->next()) {
- PropertyInfo p = E->get().info;
- p.name = String(E->key());
-
- info.push_back(p);
- values[p.name] = E->get().default_value;
+ for (List<PropertyInfo>::Element *E = info.front(); E; E = E->next()) {
+ Variant value;
+ get_property_default_value(E->get().name, value);
+ values[E->get().name] = value;
}
p_placeholder->update(info, values);