mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
add gfx.skeletons library
This commit is contained in:
parent
6f11741310
commit
b991ca3c9a
2 changed files with 3 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ end
|
||||||
local prev_rotation = mat4.idt()
|
local prev_rotation = mat4.idt()
|
||||||
|
|
||||||
function update_hand()
|
function update_hand()
|
||||||
local skeleton = __skeleton
|
local skeleton = gfx.skeletons
|
||||||
local pid = hud.get_player()
|
local pid = hud.get_player()
|
||||||
local invid, slot = player.get_inventory(pid)
|
local invid, slot = player.get_inventory(pid)
|
||||||
local itemid = inventory.get(invid, slot)
|
local itemid = inventory.get(invid, slot)
|
||||||
|
|
|
||||||
|
|
@ -396,6 +396,8 @@ function _rules.clear()
|
||||||
end
|
end
|
||||||
|
|
||||||
function __vc_on_hud_open()
|
function __vc_on_hud_open()
|
||||||
|
gfx.skeletons = __skeleton
|
||||||
|
|
||||||
_rules.create("allow-cheats", true)
|
_rules.create("allow-cheats", true)
|
||||||
|
|
||||||
_rules.create("allow-content-access", hud._is_content_access(), function(value)
|
_rules.create("allow-content-access", hud._is_content_access(), function(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue