add cameras.get(int) overload

This commit is contained in:
MihailRis 2024-08-28 11:59:35 +03:00
parent 050513f892
commit f2b9d0620a

View File

@ -22,6 +22,9 @@ local Camera = {__index={
local wrappers = {}
cameras.get = function(name)
if type(name) == 'number' then
return cameras.get(cameras.name(name))
end
local wrapper = wrappers[name]
if wrapper ~= nil then
return wrapper