mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 13:12:57 +02:00
Merge pull request #13494 from dback2/zeroOutSpreads
Particle spreads backwards compatibility
This commit is contained in:
commit
54664855ac
1 changed files with 7 additions and 0 deletions
|
@ -2521,6 +2521,13 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
|||
}
|
||||
}
|
||||
|
||||
// Zero out the spread values that were fixed in version ParticleEntityFix so they behave the same as before
|
||||
if (contentVersion < (int)EntityVersion::ParticleEntityFix) {
|
||||
properties.setRadiusSpread(0.0f);
|
||||
properties.setAlphaSpread(0.0f);
|
||||
properties.setColorSpread({0, 0, 0});
|
||||
}
|
||||
|
||||
EntityItemPointer entity = addEntity(entityItemID, properties);
|
||||
if (!entity) {
|
||||
qCDebug(entities) << "adding Entity failed:" << entityItemID << properties.getType();
|
||||
|
|
Loading…
Reference in a new issue