mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
ParticleSpawner: Fix crash when attaching to invisible entity
This commit is contained in:
parent
495f7198ef
commit
57df895cf9
2 changed files with 5 additions and 4 deletions
|
@ -188,10 +188,11 @@ public:
|
|||
return m_matrixnode->getRelativeTransformationMatrix();
|
||||
}
|
||||
|
||||
inline const core::matrix4 &getAbsolutePosRotMatrix() const
|
||||
inline const core::matrix4 *getAbsolutePosRotMatrix() const
|
||||
{
|
||||
assert(m_matrixnode);
|
||||
return m_matrixnode->getAbsoluteTransformation();
|
||||
if (!m_matrixnode)
|
||||
return nullptr;
|
||||
return &m_matrixnode->getAbsoluteTransformation();
|
||||
}
|
||||
|
||||
inline f32 getStepHeight() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue