Skip to content

Commit 36a4673

Browse files
committed
fix merge conflict
1 parent 0a536d6 commit 36a4673

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

packages/engine/Source/Renderer/TextureAtlas.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -678,29 +678,21 @@ TextureAtlas.prototype.addImage = function (id, image, width, height) {
678678
Check.defined("image", resolvedImage);
679679
//>>includeEnd('debug');
680680

681-
<<<<<<< HEAD
682681
if (this.isDestroyed() || !defined(image)) {
683682
this._indexPromiseById.delete(id);
684683
return -1;
685684
}
686685

687-
const imageIndex = await this._addImage(index, image);
688-
this._indexPromiseById.delete(id);
689-
return imageIndex;
690-
=======
691-
if (this.isDestroyed() || !defined(resolvedImage)) {
692-
return -1;
693-
}
694-
695686
if (defined(width)) {
696687
resolvedImage.width = width;
697688
}
698689
if (defined(height)) {
699690
resolvedImage.height = height;
700691
}
701692

702-
return this._addImage(index, resolvedImage);
703-
>>>>>>> 7167414aa1 (fix(billboards): Scale SVGs in texture atlas to match billboard display size)
693+
const imageIndex = await this._addImage(index, image);
694+
this._indexPromiseById.delete(id);
695+
return imageIndex;
704696
};
705697

706698
promise = resolveAndAddImage();

0 commit comments

Comments
 (0)