Skip to content

Commit ec43df1

Browse files
committed
Allow shapes file url to have query parameters.
1 parent 3baaef4 commit ec43df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/animate/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function load(scene: AnimateAsset, optionsOrComplete?: Complete|LoadOptio
186186
// handle individual textures
187187
scene.textures[resource.name] = resource.texture;
188188
}
189-
else if (resource.url.search(/\.shapes\.(json|txt)$/i) > -1)
189+
else if (resource.url.search(/\.shapes\.(json|txt)(?:$|\?)/i) > -1)
190190
{
191191
// save shape data
192192
let items: string|DrawCommands[] = resource.data;

0 commit comments

Comments
 (0)