Canvas: also apply matrix of element to getTransformedBounds.
Part of the fix for #1333.
This commit is contained in:
parent
7e8ee5a3a8
commit
3b23892ccf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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);
|
std::vector<float> bb_vec(4);
|
||||||
bb_vec[0] = bb._min.x();
|
bb_vec[0] = bb._min.x();
|
||||||
|
|
Loading…
Add table
Reference in a new issue