Skip to content

Commit bfa7fe9

Browse files
committed
handle svg data uri
1 parent 8550698 commit bfa7fe9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/engine/Source/Scene/Billboard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,9 @@ Billboard.prototype._computeImageTextureProperties = function (id, image) {
13011301
this._imageId = createGuid();
13021302
}
13031303

1304-
const isSvg = defined(imageUri) && getExtensionFromUri(imageUri) === "svg";
1304+
const isSvg =
1305+
(defined(imageUri) && getExtensionFromUri(imageUri) === "svg") ||
1306+
imageUri.startsWith("data:image/svg+xml");
13051307
const hasSizeInPixels =
13061308
defined(this._width) && defined(this._height) && !this._sizeInMeters;
13071309

0 commit comments

Comments
 (0)