diff --git a/src/easymesh/easymesh-parser.y b/src/easymesh/easymesh-parser.y index f7c30548..ae912182 100644 --- a/src/easymesh/easymesh-parser.y +++ b/src/easymesh/easymesh-parser.y @@ -127,9 +127,9 @@ transform_command: | T_TAPERX args3 { mc.m_mesh.TaperX($2.f0, $2.f1, $2.f2); } | T_TAPERY args3 { mc.m_mesh.TaperY($2.f0, $2.f1, $2.f2); } | T_TAPERZ args3 { mc.m_mesh.TaperZ($2.f0, $2.f1, $2.f2); } - | T_SCALEX args1 { mc.m_mesh.Scale(vec3($2.f0, 0, 0)); } - | T_SCALEY args1 { mc.m_mesh.Scale(vec3(0, $2.f0, 0)); } - | T_SCALEZ args1 { mc.m_mesh.Scale(vec3(0, 0, $2.f0)); } + | T_SCALEX args1 { mc.m_mesh.Scale(vec3($2.f0, 1.0, 1.0)); } + | T_SCALEY args1 { mc.m_mesh.Scale(vec3(1.0, $2.f0, 1.0)); } + | T_SCALEZ args1 { mc.m_mesh.Scale(vec3(1.0, 1.0, $2.f0)); } | T_SCALE args3 { mc.m_mesh.Scale(vec3($2.f0, $2.f1, $2.f2)); } | T_MIRRORX { mc.m_mesh.MirrorX(); } | T_MIRRORY { mc.m_mesh.MirrorY(); } diff --git a/src/generated/easymesh-parser.cpp b/src/generated/easymesh-parser.cpp index 662d43bd..7ebb5af8 100644 --- a/src/generated/easymesh-parser.cpp +++ b/src/generated/easymesh-parser.cpp @@ -590,21 +590,21 @@ namespace lol { /* Line 690 of lalr1.cc */ #line 130 "easymesh/easymesh-parser.y" - { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].args).f0, 0, 0)); } + { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].args).f0, 1.0, 1.0)); } break; case 30: /* Line 690 of lalr1.cc */ #line 131 "easymesh/easymesh-parser.y" - { mc.m_mesh.Scale(vec3(0, (yysemantic_stack_[(2) - (2)].args).f0, 0)); } + { mc.m_mesh.Scale(vec3(1.0, (yysemantic_stack_[(2) - (2)].args).f0, 1.0)); } break; case 31: /* Line 690 of lalr1.cc */ #line 132 "easymesh/easymesh-parser.y" - { mc.m_mesh.Scale(vec3(0, 0, (yysemantic_stack_[(2) - (2)].args).f0)); } + { mc.m_mesh.Scale(vec3(1.0, 1.0, (yysemantic_stack_[(2) - (2)].args).f0)); } break; case 32: