mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
correct rendering entities that have no skel
This commit is contained in:
parent
f91d66a0e0
commit
4e9e0acb4a
1 changed files with 3 additions and 1 deletions
|
@ -560,7 +560,9 @@ void RenderObject::renderCall(const RenderState& rs) const
|
||||||
(*i)->render(rs);
|
(*i)->render(rs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rs.pass == RENDER_ALL || rs.pass == renderPass)
|
const int effectivePass = renderPass == RENDER_ALL ? rs.pass : renderPass;
|
||||||
|
|
||||||
|
if (rs.pass == RENDER_ALL || rs.pass == effectivePass)
|
||||||
{
|
{
|
||||||
if (texture)
|
if (texture)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue