mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Fix color check
This commit is contained in:
parent
a8aea0adee
commit
3606c9f49f
@ -11,7 +11,7 @@ local M = {}
|
|||||||
---@param color_id string|vector4 Color id from palette or hex color
|
---@param color_id string|vector4 Color id from palette or hex color
|
||||||
---@return vector4
|
---@return vector4
|
||||||
function M.get_color(color_id)
|
function M.get_color(color_id)
|
||||||
if type(color_id) == "vector4" then
|
if type(color_id) ~= "string" then
|
||||||
return color_id
|
return color_id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user