Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- godot_project.py +1 -1
godot_project.py
CHANGED
|
@@ -108,7 +108,7 @@ def decode_variant(data: bytes, pos: int = 0):
|
|
| 108 |
items = []
|
| 109 |
for _ in range(count):
|
| 110 |
v, pos = _read_str(data, pos)
|
| 111 |
-
items.append(v)
|
| 112 |
return items, pos
|
| 113 |
if t in _PACKED_ITEM:
|
| 114 |
count = struct.unpack_from("<I", data, pos)[0]
|
|
|
|
| 108 |
items = []
|
| 109 |
for _ in range(count):
|
| 110 |
v, pos = _read_str(data, pos)
|
| 111 |
+
items.append(v.rstrip("\0")) # PackedStringArray öğeleri NUL ile biter
|
| 112 |
return items, pos
|
| 113 |
if t in _PACKED_ITEM:
|
| 114 |
count = struct.unpack_from("<I", data, pos)[0]
|