Add function CreateBrush() and attempt to pick a sub-object
Refresh editor scene and voxscript rejects to load model
Expected behavior
Be able to load sub-object as brush
Environment
Teardown 1.2.0 patch 2
Additional context
The voxcript in 24 slice mod have following comments:
-- Selecting a sub-object from the Magica Voxel file isn't supported in the public build yet. Sorry about that :)
--[[
object = GetString("object")
if object ~= "" then
model = model .. ":" .. object
end
--]]
Describe the bug
The function
CreateBrush()
for voxscript doesn't pick sub-object however this feature is documented in API (https://teardowngame.com/modding/voxscript.html#CreateBrush)Steps to reproduce the behavior
CreateBrush()
and attempt to pick a sub-objectExpected behavior
Be able to load sub-object as brush
Environment
Additional context
The voxcript in 24 slice mod have following comments: