Update LoadXML to use the same field names as SaveXML
--HG-- extra : source : cb9d53843ea05307e3f3e9ee1ec68b47de839f4e
This commit is contained in:
@@ -47,10 +47,10 @@ void KRAmbientZone::loadXML(tinyxml2::XMLElement *e)
|
|||||||
m_gradient_distance = 0.25f;
|
m_gradient_distance = 0.25f;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ambient = e->Attribute("ambient");
|
m_ambient = e->Attribute("sample");
|
||||||
|
|
||||||
m_ambient_gain = 1.0f;
|
m_ambient_gain = 1.0f;
|
||||||
if(e->QueryFloatAttribute("ambient_gain", &m_ambient_gain) != tinyxml2::XML_SUCCESS) {
|
if(e->QueryFloatAttribute("gain", &m_ambient_gain) != tinyxml2::XML_SUCCESS) {
|
||||||
m_ambient_gain = 1.0f;
|
m_ambient_gain = 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ void KRReverbZone::loadXML(tinyxml2::XMLElement *e)
|
|||||||
m_gradient_distance = 0.25f;
|
m_gradient_distance = 0.25f;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reverb = e->Attribute("reverb");
|
m_reverb = e->Attribute("sample");
|
||||||
|
|
||||||
m_reverb_gain = 1.0f;
|
m_reverb_gain = 1.0f;
|
||||||
if(e->QueryFloatAttribute("reverb_gain", &m_reverb_gain) != tinyxml2::XML_SUCCESS) {
|
if(e->QueryFloatAttribute("gain", &m_reverb_gain) != tinyxml2::XML_SUCCESS) {
|
||||||
m_reverb_gain = 1.0f;
|
m_reverb_gain = 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user