Skip to content

Commit b8e304a

Browse files
committed
adjust gltf inject
1 parent 70dccf0 commit b8e304a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-three-gltf",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "GLTF to Angular Three converter",
55
"scripts": {
66
"cleanup": "rimraf node_modules"

src/utils/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ export class ${componentName} {
725725
${hasAnimations ? `animations = model<${gltfAnimationApiTypeName}>();` : ""}
726726
modelRef = viewChild<ElementRef<Group>>('model');
727727
728-
protected gltf = injectGLTF<${gltfResultTypeName}>(() => "${options.importattribute && !url.startsWith("http") ? gltfName : url}"${gltfOptions ? `, ${JSON.stringify(gltfOptions)}` : ""});
728+
protected gltf = injectGLTF<${gltfResultTypeName}>(() => ${options.importattribute && !url.startsWith("http") ? gltfName : `"${url}"`}${gltfOptions ? `, ${JSON.stringify(gltfOptions)}` : ""});
729729
730730
constructor() {
731731
extend({ Group${ngtTypesArr.length ? ", " + ngtTypesArr.join(", ") : ""} });

0 commit comments

Comments
 (0)