fix process_properties

This commit is contained in:
MihailRis 2026-04-05 20:52:47 +03:00
parent 8ea83ba469
commit dde8c674b8

View file

@ -17,7 +17,8 @@ end
local function process_properties(lib)
for id, props in pairs(lib.properties) do
if props.parent then
for propname, value in pairs(lib.properties[block.index(props.parent)]) do
local parent_props = lib.properties[block.index(props.parent)] or {}
for propname, value in pairs(parent_props) do
if not props[propname] then
props[propname] = value
end