mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add cameras.get(int) overload
This commit is contained in:
parent
050513f892
commit
f2b9d0620a
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue