Change get_class_static to return StringName.
Use that static `get_class_static` for `_get_class_namev` to avoid duplication.
This commit is contained in:
parent
4248411baf
commit
fbe64ffb45
5 changed files with 17 additions and 15 deletions
|
|
@ -1345,7 +1345,7 @@ static Error _encode_container_type(const ContainerType &p_type, uint8_t *&buf,
|
|||
_encode_string(EncodedObjectAsID::get_class_static(), buf, r_len);
|
||||
}
|
||||
} else if (p_type.class_name != StringName()) {
|
||||
_encode_string(p_full_objects ? p_type.class_name.operator String() : EncodedObjectAsID::get_class_static(), buf, r_len);
|
||||
_encode_string(p_full_objects ? p_type.class_name : EncodedObjectAsID::get_class_static(), buf, r_len);
|
||||
} else {
|
||||
// No need to check `p_full_objects` since `class_name` should be non-empty for `builtin_type == Variant::OBJECT`.
|
||||
if (buf) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue