blender-actions-to-json
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "blender-actions-to-json", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Write the joint data for all `.blend` file actions to a JSON file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -159,4 +159,4 @@ var cp = require('child_process') | ||
// Test that we properly export our bind pose matrices | ||
test('Writing the actions of a cube with one bone to a JSON file', function (t) { | ||
t.plan(1) | ||
test('Writing the actions and position indices of a cube with one bone to a JSON file', function (t) { | ||
t.plan(2) | ||
@@ -166,4 +166,7 @@ var testBlendFile = path.resolve(__dirname, './cube-with-one-joint.blend') | ||
var expectedBindPoses = { | ||
Bone: [ 1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1 ] | ||
var expectedBindPoses = [ | ||
[ 1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1 ] | ||
] | ||
var expectedNameIndices = { | ||
Bone: 0 | ||
} | ||
@@ -186,2 +189,3 @@ | ||
t.deepEqual(actionFile.bindPoses, expectedBindPoses, 'Bind poses were written to the output file') | ||
t.deepEqual(actionFile.jointNameIndices, expectedNameIndices, 'Joint indices were written to the output file') | ||
}) | ||
@@ -188,0 +192,0 @@ }) |
Sorry, the diff of this file is not supported yet
3448719
402