1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add no_texture.png as fallback for unspecified textures

This commit is contained in:
Wuzzy 2021-10-20 19:50:16 +00:00 committed by GitHub
parent c82ec8b210
commit 86b44ecd82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 68 additions and 23 deletions

View file

@ -108,7 +108,12 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
m_env->getScriptIface()->
luaentity_Activate(m_id, m_init_state, dtime_s);
} else {
// It's an unknown object
// Use entitystring as infotext for debugging
m_prop.infotext = m_init_name;
// Set unknown object texture
m_prop.textures.clear();
m_prop.textures.emplace_back("unknown_object.png");
}
}