Change both frame_count to 1:
Code: Select all
for i, tree in pairs (data.raw.tree) do
if tree.variations then
tree.variations = {tree.variations[1]}
tree.variations[1].trunk.hr_version = nil
tree.variations[1].leaves.hr_version = nil
tree.variations[1].trunk.frame_count = 1 -- here must be more than leaves.frame_count
tree.variations[1].leaves.frame_count = 1
end
end
Code: Select all
for i, tree in pairs (data.raw.tree) do
if tree.variations then
tree.variations = {tree.variations[1]}
tree.variations[1].trunk.hr_version = nil
tree.variations[1].leaves.hr_version = nil
tree.variations[1].trunk.frame_count = 2
tree.variations[1].leaves.frame_count = 1
end
end