mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
fix get_meta() with defalt value
This commit is contained in:
parent
54b02c41e6
commit
e943c7c81c
@ -1062,7 +1062,6 @@ void Object::set_meta(const String &p_name, const Variant &p_value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Variant Object::get_meta(const String &p_name, const Variant &p_default) const {
|
Variant Object::get_meta(const String &p_name, const Variant &p_default) const {
|
||||||
ERR_FAIL_COND_V(!metadata.has(p_name), Variant());
|
|
||||||
if (!metadata.has(p_name)) {
|
if (!metadata.has(p_name)) {
|
||||||
if (p_default != Variant()) {
|
if (p_default != Variant()) {
|
||||||
return p_default;
|
return p_default;
|
||||||
|
Loading…
Reference in New Issue
Block a user