Fix potential issue with model preview
This commit is contained in:
parent
49e9fda9f9
commit
297855b164
12
init.lua
12
init.lua
|
@ -2413,12 +2413,18 @@ local function get_inventory_fs(player, data, fs)
|
||||||
|
|
||||||
if props.mesh ~= "" then
|
if props.mesh ~= "" then
|
||||||
local anim = player:get_local_animation()
|
local anim = player:get_local_animation()
|
||||||
--fs("style[player_model;bgcolor=black]")
|
|
||||||
local armor_skin = __3darmor or __skinsdb
|
local armor_skin = __3darmor or __skinsdb
|
||||||
|
local t = {}
|
||||||
|
|
||||||
|
for _, v in ipairs(props.textures) do
|
||||||
|
t[#t + 1] = ESC(v):gsub(",", "!")
|
||||||
|
end
|
||||||
|
|
||||||
|
local textures = concat(t, ","):gsub("!", ",")
|
||||||
|
|
||||||
|
--fs("style[player_model;bgcolor=black]")
|
||||||
fs("model", 0.2, 0.2, armor_skin and 4 or 3.4, armor_skin and ctn_hgt or 5.8,
|
fs("model", 0.2, 0.2, armor_skin and 4 or 3.4, armor_skin and ctn_hgt or 5.8,
|
||||||
"player_model",
|
"player_model", props.mesh, textures, "0,-150", "false", "false",
|
||||||
props.mesh, concat(props.textures, ","), "0,-150", "false", "false",
|
|
||||||
fmt("%u,%u", anim.x, anim.y))
|
fmt("%u,%u", anim.x, anim.y))
|
||||||
else
|
else
|
||||||
local size = 2.5
|
local size = 2.5
|
||||||
|
|
Ŝarĝante…
Reference in New Issue