Graphics/Material: Fix Configure resetting textures

This commit is contained in:
Jérôme Leclercq 2019-04-12 15:29:15 +02:00
parent 9d195c2750
commit e665ea5373
2 changed files with 9 additions and 0 deletions

View File

@ -179,6 +179,7 @@ Nazara Engine:
- Added RigidBody::[Get|Set]PositionOffset allowing set an offset between body logic position and body physics position (center of mass position)
- ⚠ Default TextureSampler WrapMode is now Clamp (instead of Repeat)
- Fixed StateMachine ignoring transitions made in Enter/Leave events of states
- Fixed Material::Configure resetting textures
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -119,6 +119,14 @@ namespace Nz
{
m_pipelineInfo = pipelineInfo;
// Temp and dirty fix for pipeline overriding has*Map
m_pipelineInfo.hasAlphaMap = m_alphaMap.IsValid();
m_pipelineInfo.hasDiffuseMap = m_diffuseMap.IsValid();
m_pipelineInfo.hasEmissiveMap = m_emissiveMap.IsValid();
m_pipelineInfo.hasHeightMap = m_heightMap.IsValid();
m_pipelineInfo.hasNormalMap = m_normalMap.IsValid();
m_pipelineInfo.hasSpecularMap = m_specularMap.IsValid();
InvalidatePipeline();
}