Ignore:
Timestamp:
Aug 29, 2012, 11:40:23 PM (8 years ago)
Author:
sam
Message:

easymesh: fix an data corruption with scaling along a single axis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/generated/easymesh-parser.cpp

    r1619 r1835  
    591591/* Line 690 of lalr1.cc  */
    592592#line 130 "easymesh/easymesh-parser.y"
    593     { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].args).f0, 0, 0)); }
     593    { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].args).f0, 1.0, 1.0)); }
    594594    break;
    595595
     
    598598/* Line 690 of lalr1.cc  */
    599599#line 131 "easymesh/easymesh-parser.y"
    600     { mc.m_mesh.Scale(vec3(0, (yysemantic_stack_[(2) - (2)].args).f0, 0)); }
     600    { mc.m_mesh.Scale(vec3(1.0, (yysemantic_stack_[(2) - (2)].args).f0, 1.0)); }
    601601    break;
    602602
     
    605605/* Line 690 of lalr1.cc  */
    606606#line 132 "easymesh/easymesh-parser.y"
    607     { mc.m_mesh.Scale(vec3(0, 0, (yysemantic_stack_[(2) - (2)].args).f0)); }
     607    { mc.m_mesh.Scale(vec3(1.0, 1.0, (yysemantic_stack_[(2) - (2)].args).f0)); }
    608608    break;
    609609
Note: See TracChangeset for help on using the changeset viewer.