diff options
| author | Wilson E. Alvarez | 2017-09-14 12:54:37 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-09-14 12:54:37 -0400 |
| commit | 0f4643a4f6cc36b806e867100cfb710b8c3b1d3b (patch) | |
| tree | cd1608ca9b5b5a1dbd25b0e97d67244e336c7287 /core/object.h | |
| parent | 8c08f2380d30e300f4f80dd292e9ff83f7bb84fd (diff) | |
| download | godot-0f4643a4f6cc36b806e867100cfb710b8c3b1d3b.tar.gz godot-0f4643a4f6cc36b806e867100cfb710b8c3b1d3b.tar.zst godot-0f4643a4f6cc36b806e867100cfb710b8c3b1d3b.zip | |
Diffstat (limited to 'core/object.h')
| -rw-r--r-- | core/object.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/object.h b/core/object.h index 644e2b827..307043913 100644 --- a/core/object.h +++ b/core/object.h @@ -148,6 +148,7 @@ struct PropertyInfo { hint(PROPERTY_HINT_NONE), usage(PROPERTY_USAGE_DEFAULT) { } + PropertyInfo(Variant::Type p_type, const String p_name, PropertyHint p_hint = PROPERTY_HINT_NONE, const String &p_hint_string = "", uint32_t p_usage = PROPERTY_USAGE_DEFAULT, const StringName &p_class_name = StringName()) : type(p_type), name(p_name), @@ -161,12 +162,12 @@ struct PropertyInfo { class_name = p_class_name; } } + PropertyInfo(const StringName &p_class_name) : type(Variant::OBJECT), + class_name(p_class_name), hint(PROPERTY_HINT_NONE), usage(PROPERTY_USAGE_DEFAULT) { - - class_name = p_class_name; } bool operator<(const PropertyInfo &p_info) const { |
