mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-20 10:25:40 +00:00
Fix for preview scale on billboards, prevent CDoorExtra from drawing its wireframe in game mode, change default World Editor tab to Modify
This commit is contained in:
@@ -488,7 +488,7 @@ CAABox CScriptNode::PreviewVolumeAABox() const
|
||||
CVector2f CScriptNode::BillboardScale() const
|
||||
{
|
||||
CVector2f out = (mpInstance->Template()->ScaleType() == CScriptTemplate::eScaleEnabled ? AbsoluteScale().xz() : CVector2f(1.f));
|
||||
return out * 0.5f;
|
||||
return out * 0.5f * mScaleMultiplier;
|
||||
}
|
||||
|
||||
// ************ PROTECTED ************
|
||||
|
||||
@@ -49,7 +49,7 @@ void CDoorExtra::AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
|
||||
else
|
||||
pRenderer->AddOpaqueMesh(this, -1, AABox(), eDrawMesh);
|
||||
|
||||
if (mpParent->IsSelected())
|
||||
if (mpParent->IsSelected() && !ViewInfo.GameMode)
|
||||
pRenderer->AddOpaqueMesh(this, -1, AABox(), eDrawSelection);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user