Skip to content

Commit 9fde659

Browse files
committed
fix(plugin): adjust one more time
1 parent c328d0b commit 9fde659

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/plugin/src/generators/gltf/files/__fileName__.ts__tmpl__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export type <%= gltfResultTypeName %> = GLTF & {
4545
@let materials = gltf.materials;
4646

4747
<ngt-group #model [parameters]="options()" [dispose]="null">
48-
<%= scene %>
48+
<%- scene %>
4949

5050
<ng-content />
5151
</ngt-group>

libs/plugin/src/generators/gltf/gltf.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export async function gltfGenerator(tree: Tree, options: GltfGeneratorSchema) {
117117
t !== 'Object3D',
118118
);
119119
const threeImports = ngtTypesArr.length ? `, ${ngtTypesArr.join(',')}` : '';
120+
const gltfPath = transformedModelPath || modelPath;
120121
const gltfAnimationTypeName = className + 'AnimationClips';
121122
const gltfAnimationApiTypeName = className + 'AnimationApi';
122123
const gltfName = className + 'GLTF';
@@ -168,7 +169,7 @@ export async function gltfGenerator(tree: Tree, options: GltfGeneratorSchema) {
168169
gltfAnimationTypeName,
169170
gltfAnimationApiTypeName,
170171
gltfResultTypeName,
171-
gltfPath: modelPath,
172+
gltfPath,
172173
gltfOptions,
173174
meshesTypes,
174175
bonesTypes,

0 commit comments

Comments
 (0)