mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-17 13:45:00 -04:00
--Bug fixes
-Add support for Chaotica files which specify xform weight as "Base weight" instead of "base_weight". -Fix bug where Fractorium would crash when a new file was dragged in while previews were still rendering. --This was done by changing the TreeItemChanged() events in the library tab use a direct connection rather than a queued connection. --This obviated the need for QCoreApplication::processEvents() calls in the library tree code. -Fix bug where renaming a flame within a file, then tabbing away did not commit the name change. --Code changes -Clean up some warnings about const variables in the latest version of Visual Studio 2019. -Upgrade installer to latest update of Visual Studio 2019.
This commit is contained in:
@ -1198,7 +1198,15 @@ bool XmlToEmber<T>::ParseEmberElementFromChaos(xmlNode* emberNode, Ember<T>& cur
|
||||
std::string periterweights;
|
||||
|
||||
if (auto baseWeightChildNode = GetChildNode(weightsChildNode, "base_weight"))
|
||||
if (ParseAndAssignContent(baseWeightChildNode, "name", "base_weight", weight)) { xf.m_Weight = weight; }
|
||||
{
|
||||
if (ParseAndAssignContent(baseWeightChildNode, "name", "base_weight", weight))
|
||||
xf.m_Weight = weight;
|
||||
}
|
||||
else if (auto baseWeightChildNode = GetChildNode(weightsChildNode, "Base weight"))
|
||||
{
|
||||
if (ParseAndAssignContent(baseWeightChildNode, "name", "Base weight", weight))
|
||||
xf.m_Weight = weight;
|
||||
}
|
||||
|
||||
if (auto periterweightsChildNode = GetChildNode(weightsChildNode, "per_iterator_weights"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user