Skip to content

Commit

Permalink
//rotate: add comments on what needs doing to wrangle it into shape
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed Dec 14, 2023
1 parent 27aa3a9 commit 9f8cb4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worldeditadditions/lib/rotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist)
local manip_src, area_src = worldedit.manip_helpers.init(pos1, pos2)
local data_src = manip_src:get_data()

-- TODO: grab only an area at this point for dest and a blank target table. Then copy over to the real dest later to ensure consistency. This is important because we are dealing in (potentially) non-cardinal rectangles here
-- local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2})

local manip_dest, area_dest = worldedit.manip_helpers.init(pos1_dstvm, pos2_dstvm)
local data_dest = manip_dest:get_data()
-- TODO: Also carry param2 along for the ride
Expand Down
2 changes: 2 additions & 0 deletions worldeditadditions_commands/commands/rotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ worldeditadditions_core.register_command("rotate+", {
rotlist
)
if not success then return success, stats end

-- TODO: Adjust the defined area to match the target here? Maybe make this optional somehow given the target may or may nor be axis-aligned
-------------------------------------------------
local time_taken = wea_c.get_ms_time() - start_time

Expand Down

0 comments on commit 9f8cb4d

Please sign in to comment.