Update 'Controller/CropController.lua'
This commit is contained in:
parent
7827a83f31
commit
b4fb543f13
@ -21,7 +21,7 @@ function CropController:toMatrix(str)
|
|||||||
str = str:sub(2, len - 1)
|
str = str:sub(2, len - 1)
|
||||||
len = len - 2
|
len = len - 2
|
||||||
if ob == 1 then
|
if ob == 1 then
|
||||||
return toArray(str)
|
return self:toArray(str)
|
||||||
else
|
else
|
||||||
local level = 0
|
local level = 0
|
||||||
local lastC = 0
|
local lastC = 0
|
||||||
@ -33,7 +33,7 @@ function CropController:toMatrix(str)
|
|||||||
level = level - 1
|
level = level - 1
|
||||||
elseif c == "," then
|
elseif c == "," then
|
||||||
if level == 0 then
|
if level == 0 then
|
||||||
matrix[#matrix+1] = toMatrix(str:sub(lastC + 1, i - 1))
|
matrix[#matrix+1] = self:toMatrix(str:sub(lastC + 1, i - 1))
|
||||||
lastC = i
|
lastC = i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user