Fix animation issues

This commit is contained in:
Bill 2021-12-08 06:37:30 -05:00
parent 0e52cacdf8
commit 342fa7f122
4 changed files with 33 additions and 4 deletions

View File

@ -65,8 +65,8 @@ export class BundleProvider
{
const files = await packAsync(imageBundle.images, {
textureName: (convertCase ? documentClass.substring(1) : documentClass),
width: 3072,
height: 2048,
width: 10240,
height: 4320,
fixedSize: false,
allowRotation: false,
detectIdentical: true,

View File

@ -64,7 +64,7 @@ export class FurnitureDataMapper extends Mapper
furnitureType.name = typeXML.name;
furnitureType.description = typeXML.description;
furnitureType.adurl = typeXML.adurl;
furnitureType.offerid = typeXML.offerid;
furnitureType.offerid = typeXML.id;
furnitureType.buyout = typeXML.buyout;
furnitureType.rentofferid = typeXML.rentofferid;
furnitureType.rentbuyout = typeXML.rentbuyout;

View File

@ -128,6 +128,11 @@ export class LogicMapper extends Mapper
for(const particleSystemXML of xml)
{
if(particleSystemXML.size !== undefined)
{
if([ 32 ].indexOf(particleSystemXML.size) >= 0) continue;
}
const particleObject: IParticleSystem = {};
if(particleSystemXML.size !== undefined) particleObject.size = particleSystemXML.size;

View File

@ -189,6 +189,26 @@ export class VisualizationMapper extends Mapper
}
}
private static requestNextInsertId(requestId: number, output: { [index: string]: IAssetVisualAnimation }): string
{
let id = requestId.toString();
if(!output[id]) return id;
let i = 1;
while(i < 6)
{
id += '_' + i;
if(!output[id]) return id;
i++;
}
return null;
}
private static mapVisualizationAnimationXML(xml: AnimationXML[], output: { [index: string]: IAssetVisualAnimation }): void
{
if(!xml || !xml.length || !output) return;
@ -212,7 +232,11 @@ export class VisualizationMapper extends Mapper
}
}
output[animationXML.id.toString()] = animation;
const id = this.requestNextInsertId(animationXML.id, output);
if(!id) continue;
output[id] = animation;
}
}