diff --git a/package.json b/package.json index b7eed3f..8501803 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ "bugs" : { "url": "https://github.com/sketchpunklabs/ossos/issues" }, "files" : [ "dist" ], - "main" : "./dist/ossos.cjs.js", + "main" : "./dist/ossos.js", "module" : "./dist/ossos.es.js", "types" : "./dist/ossos.d.ts", "exports": { ".": { "import" : "./dist/ossos.es.js", - "require" : "./dist/ossos.cjs.js" + "require" : "./dist/ossos.js" } }, diff --git a/README.md b/README.md index ff954ed..48782b6 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,14 @@ npm install npm run dev ``` +### Build ### + +``` +npm install +npm run build +npm run build:types +``` + **[ NOTE ]** To be able to run the example, you'll need to go into /examples/_res/ and follow the instructions to clone the resource repo. The files are quite large, so they are kept in a seperate repo to keep this project as light weight as possible. ## Usage ### diff --git a/src/armature/BoneSlots.ts b/src/armature/BoneSlots.ts index c9b7370..3bd62a5 100644 --- a/src/armature/BoneSlots.ts +++ b/src/armature/BoneSlots.ts @@ -136,7 +136,7 @@ class BoneSlots{ //------------------------------------- // APPLY - this.onAttachmentUpdate( si.obj, rot, pos, scl, b.world.rot ); + this.onAttachmentUpdate( si.obj, rot, pos, scl ); } }