BGE: Fix for [#34185] "billboard scale problem in groups" reported by Tobias Lijsen (blenderhilfe).
Use world scaling instead of local scaling when billboarding so we get all inherited scaling.
This commit is contained in:
parent
e02612c042
commit
c3d70a9baf
@ -207,7 +207,7 @@ void KX_BlenderRenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmat
|
||||
|
||||
KX_GameObject* gameobj = (KX_GameObject*)m_clientobject;
|
||||
// get scaling of halo object
|
||||
MT_Vector3 size = gameobj->GetSGNode()->GetLocalScale();
|
||||
MT_Vector3 size = gameobj->GetSGNode()->GetWorldScaling();
|
||||
|
||||
bool screenaligned = (objectdrawmode & RAS_IPolyMaterial::BILLBOARD_SCREENALIGNED)!=0;//false; //either screen or axisaligned
|
||||
if (screenaligned)
|
||||
|
@ -216,7 +216,7 @@ void GPC_RenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmatrix,in
|
||||
|
||||
KX_GameObject* gameobj = (KX_GameObject*) this->m_clientobject;
|
||||
// get scaling of halo object
|
||||
MT_Vector3 size = gameobj->GetSGNode()->GetLocalScale();
|
||||
MT_Vector3 size = gameobj->GetSGNode()->GetWorldScaling();
|
||||
|
||||
bool screenaligned = (objectdrawmode & RAS_IPolyMaterial::BILLBOARD_SCREENALIGNED)!=0;//false; //either screen or axisaligned
|
||||
if (screenaligned)
|
||||
|
Loading…
Reference in New Issue
Block a user