1
0
Fork 0

Canvas: also apply matrix of element to getTransformedBounds.

Part of the fix for #1333.
This commit is contained in:
Thomas Geymayer 2014-02-08 00:26:22 +01:00
parent 7e8ee5a3a8
commit 3b23892ccf

View file

@ -158,7 +158,7 @@ naRef f_getDesktop(naContext c, naRef me, int argc, naRef* args)
naRef f_elementGetTransformedBounds(sc::Element& el, const nasal::CallContext& ctx)
{
osg::BoundingBox bb = el.getTransformedBounds( osg::Matrix::identity() );
osg::BoundingBox bb = el.getTransformedBounds(el.getMatrix());
std::vector<float> bb_vec(4);
bb_vec[0] = bb._min.x();