openframeworks/openFrameworks — Issue #919: Error in ofNode::transformGL
Author: AugusteBonnin
Created: 2012-02-16 09:31:24+00:00
State: open

There is an easy-to-correct error in ofNode::transformGL:
It should call loadMatrix with globalTransformMatrix as parameter (with a void restoreGL), or pushMatrix then multMatrix with localTransformMatrix (with a restoreGL that pops the previously pushed matrix),
NOT push then mult with global. The bug appears as soon as you have got more than one level of depth in your node tree.