Skip to content

Commit

Permalink
Merge pull request #15 from 0b5vr/fix-type-error
Browse files Browse the repository at this point in the history
fix: Fix module and type error
  • Loading branch information
0b5vr authored Feb 15, 2024
2 parents 969506e + 3427523 commit c558338
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@gltf-transform/core": "^3.4.0",
"@pixiv/three-vrm": "^2.1.0",
"@pixiv/three-vrm-animation": "^2.1.0",
"@pixiv/types-vrmc-vrm-animation-1.0": "^2.1.0",
"@types/node": "20.2.5",
"@types/react": "18.2.9",
"@types/react-dom": "18.2.4",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/bvh-converter/VRMAnimationExporterPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as THREE from 'three';
import { GLTFExporterPlugin, GLTFWriter } from 'three/examples/jsm/exporters/GLTFExporter';
import { GLTF as GLTFSchema } from '@gltf-transform/core';
import { VRMCVRMAnimation } from '../VRMAnimation/VRMCVRMAnimation';
import { VRMHumanBoneName } from '@pixiv/three-vrm';
import { VRMCVRMAnimation } from '@pixiv/types-vrmc-vrm-animation-1.0';

const EXTENSION_NAME = 'VRMC_vrm_animation';

Expand Down Expand Up @@ -39,6 +39,7 @@ export class VRMAnimationExporterPlugin implements GLTFExporterPlugin {

const extension: VRMCVRMAnimation = {
specVersion: '1.0',
// @ts-expect-error: will fix the three-vrm side later
humanoid,
};

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@
resolved "https://registry.yarnpkg.com/@pixiv/types-vrmc-vrm-1.0/-/types-vrmc-vrm-1.0-2.1.0.tgz#60400a2d7a93ea159bbd1b09c8bfc9da082fff81"
integrity sha512-fanxk+/M2h9ErUhqc1dyfyhPnT5RNcpI0++y6cfTZcqb3EiZFhijG4C4QptjelLJSn3wDWr6pvzotTxLAew5ug==

"@pixiv/types-vrmc-vrm-animation-1.0@2.1.0":
"@pixiv/types-vrmc-vrm-animation-1.0@2.1.0", "@pixiv/types-vrmc-vrm-animation-1.0@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@pixiv/types-vrmc-vrm-animation-1.0/-/types-vrmc-vrm-animation-1.0-2.1.0.tgz#cc0be2b4a57d7208ed79b78fafa5d9a017b6e8b4"
integrity sha512-pYc9ZQf4kX2CeOFiOvbGL0KZcSQti2XDg+c7W8dVrbjBYM/JSNnn8VgFQrD8SSsu3xlwvWeA6BUnf4BIZHU80A==
Expand Down

0 comments on commit c558338

Please sign in to comment.