diff options
| author | Juan Linietsky | 2015-12-05 14:18:22 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-12-05 14:18:22 -0300 |
| commit | 200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f (patch) | |
| tree | d9dc837018c4c2c7680491889316eedb9fe6b36c /core/script_language.cpp | |
| parent | 35fa048af555e1f8411a2034706e9e452ce2f399 (diff) | |
| download | godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.gz godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.zst godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.zip | |
Diffstat (limited to 'core/script_language.cpp')
| -rw-r--r-- | core/script_language.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp index 35c50b102..b7a0f579f 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -267,6 +267,20 @@ void PlaceHolderScriptInstance::get_property_list(List<PropertyInfo> *p_properti } } +Variant::Type PlaceHolderScriptInstance::get_property_type(const StringName& p_name,bool *r_is_valid) const { + + if (values.has(p_name)) { + if (r_is_valid) + *r_is_valid=true; + return values[p_name].get_type(); + } + if (r_is_valid) + *r_is_valid=false; + + return Variant::NIL; +} + + void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties,const Map<StringName,Variant>& p_values) { |
