Closed boingy closed 7 years ago
Probably not the right fix, but my hack for it
diff --git a/unitypack/object.py b/unitypack/object.py
index edef4c8..8c7db82 100644
--- a/unitypack/object.py
+++ b/unitypack/object.py
@@ -32,7 +32,7 @@ class ObjectInfo:
except NotImplementedError:
typename = script.type.type[5:-1] # Capture type name in PPtr<...>
else:
- typename = self.asset.tree.type_trees[-150].type
+ typename = self.asset.tree.type_trees[self.type_id].type
self.asset.typenames[self.type_id] = typename
return self.asset.typenames[self.type_id]
@Mischanix How is this not the right fix?
For example if I try to run bin/unityextract with spells0.unity3d: