compat.lua: Fix tpt.brushx, tpt.brushy, and tpt.watertest
This commit is contained in:
parent
f4b836deb1
commit
ea7cd41975
@ -391,7 +391,7 @@ function tpt.toggle_pause()
|
||||
end
|
||||
|
||||
function tpt.watertest()
|
||||
sim.waterEqualization(not sim.waterEqualization())
|
||||
sim.waterEqualization(sim.waterEqualization() == 1 and 0 or 1)
|
||||
return sim.waterEqualization()
|
||||
end
|
||||
|
||||
@ -689,9 +689,11 @@ function tpt_mt:__newindex(key, value)
|
||||
elseif key == "brushx" then
|
||||
local w, h = ui.brushRadius()
|
||||
ui.brushRadius(value, h)
|
||||
return
|
||||
elseif key == "brushy" then
|
||||
local w, h = ui.brushRadius()
|
||||
ui.brushRadius(w, value)
|
||||
return
|
||||
elseif key == "decoSpace" then
|
||||
return sim.decoSpace(value)
|
||||
end
|
||||
|
Reference in New Issue
Block a user