mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Restore .x
models to working state (#15550)
* Add "lava flan" (.x model) smoke test * Fix double finalize in `.x` mesh loader * Use reserve instead of resize again The weights are added indirectly via `AnimatedMesh->addWeight`
This commit is contained in:
parent
f99a1a7c7c
commit
a37bdbf8b7
6 changed files with 3535 additions and 4 deletions
|
@ -79,6 +79,20 @@ core.register_entity("testentities:sam", {
|
|||
end,
|
||||
})
|
||||
|
||||
core.register_entity("testentities:lava_flan", {
|
||||
initial_properties = {
|
||||
infotext = "Lava Flan (smoke test .x)",
|
||||
visual = "mesh",
|
||||
mesh = "testentities_lava_flan.x",
|
||||
textures = {
|
||||
"testentities_lava_flan.png"
|
||||
},
|
||||
},
|
||||
on_activate = function(self)
|
||||
self.object:set_animation({x = 0, y = 28}, 15, 0, true)
|
||||
end,
|
||||
})
|
||||
|
||||
-- Advanced visual tests
|
||||
|
||||
-- An entity for testing animated and yaw-modulated sprites
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue