fix dumb mistake regarding anchors
This commit is contained in:
parent
4fc33b2cb6
commit
432df454e2
@ -256,10 +256,10 @@ data class ObjectOrientation(
|
||||
}
|
||||
|
||||
for (v in obj.get("bgAnchors", JsonArray()))
|
||||
anchors.add(Anchor(false, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
|
||||
anchors.add(Anchor(true, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
|
||||
|
||||
for (v in obj.get("fgAnchors", JsonArray()))
|
||||
anchors.add(Anchor(true, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
|
||||
anchors.add(Anchor(false, vectorsi.fromJsonTree(v), requireTilledAnchors, requireSoilAnchors, anchorMaterial))
|
||||
|
||||
val anchorAny = obj["anchorAny"]?.asBoolean ?: false
|
||||
val directionAffinity = obj["direction"]?.asString?.uppercase()?.let { Direction.valueOf(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user