mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 01:13:00 +00:00
//rotate: add comments on what needs doing to wrangle it into shape
This commit is contained in:
parent
27aa3a9c8f
commit
9f8cb4d5da
2 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,9 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist)
|
||||||
local manip_src, area_src = worldedit.manip_helpers.init(pos1, pos2)
|
local manip_src, area_src = worldedit.manip_helpers.init(pos1, pos2)
|
||||||
local data_src = manip_src:get_data()
|
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 manip_dest, area_dest = worldedit.manip_helpers.init(pos1_dstvm, pos2_dstvm)
|
||||||
local data_dest = manip_dest:get_data()
|
local data_dest = manip_dest:get_data()
|
||||||
-- TODO: Also carry param2 along for the ride
|
-- TODO: Also carry param2 along for the ride
|
||||||
|
|
|
@ -117,6 +117,8 @@ worldeditadditions_core.register_command("rotate+", {
|
||||||
rotlist
|
rotlist
|
||||||
)
|
)
|
||||||
if not success then return success, stats end
|
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
|
local time_taken = wea_c.get_ms_time() - start_time
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue