mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
material parsing fix
This commit is contained in:
@@ -230,13 +230,13 @@ opengl_material::deserialize_mapping( cParser &Input, int const Priority, bool c
|
||||
else if (key == "opacity:" &&
|
||||
Priority > m_opacity_priority)
|
||||
{
|
||||
opacity = std::stoi(value); //m7t: handle exception
|
||||
opacity = std::stof(value); //m7t: handle exception
|
||||
m_opacity_priority = Priority;
|
||||
}
|
||||
else if (key == "selfillum:" &&
|
||||
Priority > m_selfillum_priority)
|
||||
{
|
||||
selfillum = std::stoi(value); //m7t: handle exception
|
||||
selfillum = std::stof(value); //m7t: handle exception
|
||||
m_selfillum_priority = Priority;
|
||||
}
|
||||
else if( value == "{" ) {
|
||||
|
||||
Reference in New Issue
Block a user