Items/structures can be copied by holding ctrl in the editor

This commit is contained in:
Regalis
2016-11-11 17:37:03 +02:00
parent 96cedd67f1
commit e6b2919877
4 changed files with 70 additions and 22 deletions
+5 -1
View File
@@ -256,7 +256,6 @@ namespace Barotrauma
}
}
if (prefab.CastShadow)
{
GenerateConvexHull();
@@ -265,6 +264,11 @@ namespace Barotrauma
InsertToList();
}
public override MapEntity Clone()
{
return new Structure(rect, prefab, Submarine);
}
private void CreateStairBodies()
{
bodies = new List<Body>();