Skip to content

Commit

Permalink
Blacklist more object types.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Feb 4, 2025
1 parent 30e5db8 commit b500213
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions newIDE/app/src/AssetStore/AssetSwapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ type SpriteObjectDataType = {
animations: Array<SpriteAnimationData>,
};

export const canSwapAssetOfObject = (object: gdObject) => {
const type = object.getType();
return type !== 'TextObject::Text' && type !== 'BBText::BBText';
};
const unswappableObjectTypes = [
'BBText::BBText',
'TextObject::Text',
'Lighting::LightObject',
'PrimitiveDrawing::Drawer',
'TileMap::TileMap',
'TileMap::CollisionMask',
'TileMap::SimpleTileMap',
'Video::VideoObject',
];
export const canSwapAssetOfObject = (object: gdObject) =>
!unswappableObjectTypes.includes(object.getType());

const mergeAnimations = function<A: { name: string }>(
project: gdProject,
Expand Down

0 comments on commit b500213

Please sign in to comment.