Ignore:
Timestamp:
Aug 29, 2012, 11:40:23 PM (7 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/easymesh/easymesh-parser.y

    r1619 r1835  
    128128  | T_TAPERY args3      { mc.m_mesh.TaperY($2.f0, $2.f1, $2.f2); }
    129129  | T_TAPERZ args3      { mc.m_mesh.TaperZ($2.f0, $2.f1, $2.f2); }
    130   | T_SCALEX args1      { mc.m_mesh.Scale(vec3($2.f0, 0, 0)); }
    131   | T_SCALEY args1      { mc.m_mesh.Scale(vec3(0, $2.f0, 0)); }
    132   | T_SCALEZ args1      { mc.m_mesh.Scale(vec3(0, 0, $2.f0)); }
     130  | T_SCALEX args1      { mc.m_mesh.Scale(vec3($2.f0, 1.0, 1.0)); }
     131  | T_SCALEY args1      { mc.m_mesh.Scale(vec3(1.0, $2.f0, 1.0)); }
     132  | T_SCALEZ args1      { mc.m_mesh.Scale(vec3(1.0, 1.0, $2.f0)); }
    133133  | T_SCALE args3       { mc.m_mesh.Scale(vec3($2.f0, $2.f1, $2.f2)); }
    134134  | T_MIRRORX           { mc.m_mesh.MirrorX(); }
Note: See TracChangeset for help on using the changeset viewer.