mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
Fix BillboardNode overriding scale
This commit is contained in:
parent
a9aee389c0
commit
2e11642273
@ -180,7 +180,11 @@ namespace
|
|||||||
if (_referenceFrame==RELATIVE_RF)
|
if (_referenceFrame==RELATIVE_RF)
|
||||||
{
|
{
|
||||||
matrix.preMult(_matrix);
|
matrix.preMult(_matrix);
|
||||||
|
osg::Vec3 scale = matrix.getScale();
|
||||||
matrix.setRotate(osg::Quat());
|
matrix.setRotate(osg::Quat());
|
||||||
|
matrix(0,0) = scale.x();
|
||||||
|
matrix(1,1) = scale.y();
|
||||||
|
matrix(2,2) = scale.z();
|
||||||
}
|
}
|
||||||
else // absolute
|
else // absolute
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user