blender-actions-to-json
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "blender-actions-to-json", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Write the joint data for all `.blend` file actions to a JSON file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -186,3 +186,3 @@ var cp = require('child_process') | ||
if (err) { throw err } | ||
t.deepEqual(actionFile.bindPoses, expectedBindPoses, 'Bind poses were written to the output file') | ||
t.deepEqual(actionFile.bindPoses.map(roundArray), expectedBindPoses, 'Bind poses were written to the output file') | ||
t.deepEqual(actionFile.jointNameIndices, expectedNameIndices, 'Joint indices were written to the output file') | ||
@@ -194,1 +194,10 @@ }) | ||
}) | ||
/** | ||
* Round the values in an array to 6 decimal places | ||
*/ | ||
function roundArray (array) { | ||
return array.map(function (val) { | ||
return parseFloat(val.toFixed(6)) | ||
}) | ||
} |
Sorry, the diff of this file is not supported yet
3449715
422