diff --git a/worldeditadditions/lib/rotate.lua b/worldeditadditions/lib/rotate.lua index f73293d..6d85d34 100644 --- a/worldeditadditions/lib/rotate.lua +++ b/worldeditadditions/lib/rotate.lua @@ -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 diff --git a/worldeditadditions_commands/commands/rotate.lua b/worldeditadditions_commands/commands/rotate.lua index 4eb6136..e617596 100644 --- a/worldeditadditions_commands/commands/rotate.lua +++ b/worldeditadditions_commands/commands/rotate.lua @@ -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