From 77ff453fc001ebde7a47e5707f219ce0cc7591f3 Mon Sep 17 00:00:00 2001 From: LaysDragon Date: Sat, 17 Apr 2021 00:47:31 +0800 Subject: [PATCH] improvement when to add rotation wrapper --- plugin/cpm_model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/cpm_model.js b/plugin/cpm_model.js index ac9e7a5..6351fc4 100644 --- a/plugin/cpm_model.js +++ b/plugin/cpm_model.js @@ -262,7 +262,7 @@ let boxes = []; for (let child of group.children) { if (child instanceof Cube && child.export) { - if (child.rotation && !root) { + if (Format.rotate_cubes && (!child.rotation.allEqual(0)) && !root) { // bones.push(processCubeBoneWrapper(child, group, bone)); processCubeBoneWrapper(child, group, bone,parent_root) } else {