Add support for group placements
This commit is contained in:
@@ -73,9 +73,13 @@ shiftRoomBy shift@(pos,rot) r =
|
||||
r
|
||||
|
||||
shiftLinkBy (pos,rot) (p,r) = (shiftPointBy (pos,rot) p, r + rot)
|
||||
shiftPSBy (pos,rot) ps = case ps of
|
||||
PS {} -> over psPos (shiftPointBy (pos,rot))
|
||||
$ over psRot (+rot)
|
||||
ps
|
||||
shiftPSBy (pos,rot) ps = ps
|
||||
& placementSpot . psPos %~ shiftPointBy (pos,rot)
|
||||
& placementSpot . psRot %~ (+ rot)
|
||||
|
||||
--shiftPSBy (pos,rot) ps = case ps of
|
||||
-- PS {} -> over psPos (shiftPointBy (pos,rot))
|
||||
-- $ over psRot (+rot)
|
||||
-- ps
|
||||
|
||||
shiftPathPointBy s (p1,p2) = (shiftPointBy s p1, shiftPointBy s p2)
|
||||
|
||||
Reference in New Issue
Block a user