Graphics/Material: Fix reflection mode not being copied
This commit is contained in:
@@ -72,7 +72,8 @@ namespace Nz
|
||||
*/
|
||||
inline Material::Material(const Material& material) :
|
||||
RefCounted(),
|
||||
Resource(material)
|
||||
Resource(material),
|
||||
m_reflectionMode(ReflectionMode_Skybox)
|
||||
{
|
||||
Copy(material);
|
||||
}
|
||||
|
||||
@@ -433,6 +433,8 @@ namespace Nz
|
||||
m_normalMap = material.m_normalMap;
|
||||
m_specularMap = material.m_specularMap;
|
||||
|
||||
SetReflectionMode(material.GetReflectionMode());
|
||||
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user