Browse Source

fix error when loading unkonwn prefabs

trethaller 4 years ago
parent
commit
d2ec0368b1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      hrt/prefab/Unknown.hx

+ 4 - 0
hrt/prefab/Unknown.hx

@@ -17,6 +17,10 @@ class Unknown extends Prefab {
 		return Reflect.copy(data);
 	}
 
+	override function getDefaultName():String {
+		return "unknown";
+	}
+
 	#if editor
 	override function edit(ctx:hide.prefab.EditContext) {
 		ctx.properties.add(new hide.Element('<font color="red">Unknown prefab $type</font>'));