Changeset 596 for trunk/avango-osg


Ignore:
Timestamp:
11/30/11 18:39:06 (6 months ago)
Author:
ddangelo
Message:

Stupid bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/python/avango/osg/OSGMatrix.cpp

    r595 r596  
    162162 
    163163  //taken from delta3D 
    164   osg::Matrix MatrixToHpr( osg::Vec3& hpr ) 
     164  osg::Vec3 MatrixToHpr( osg::Matrix& rotation ) 
    165165  { 
    166166     //implementation converted from plib's sg.cxx 
     
    169169     //For further information visit http://plib.sourceforge.net 
    170170 
    171      osg::Matrix rotation; 
     171     osg::Vec3 hpr; 
    172172 
    173173     osg::Matrix mat; 
     
    180180     { 
    181181        hpr.set(0.0f, 0.0f, 0.0f); 
    182         return osg::Matrix(); 
     182        return osg::Vec3(); 
    183183     } 
    184184 
     
    227227        hpr[2] = atan2(sr, cr); 
    228228     } 
    229      return rotation; 
     229     return hpr; 
    230230  } 
    231231 
Note: See TracChangeset for help on using the changeset viewer.