forked from Mirrors/openclonk
Fix object drawing clipping at left and top screen border for models with action but without action facet set.
parent
88167a03a8
commit
7fc7790257
|
@ -1922,7 +1922,8 @@ void C4Object::Draw(C4TargetFacet &cgo, int32_t iByPlayer, DrawMode eDrawMode, f
|
|||
// Output boundary
|
||||
if (!fYStretchObject && !eDrawMode && !(Category & C4D_Parallax))
|
||||
{
|
||||
if (pActionDef && fix_r == Fix0 && !pActionDef->GetPropertyInt(P_FacetBase) && Con<=FullCon)
|
||||
// For actions with a custom facet set, check against that action facet. Otherwise (or with oversize objects), just check against shape.
|
||||
if (pActionDef && fix_r == Fix0 && !pActionDef->GetPropertyInt(P_FacetBase) && Con <= FullCon && Action.Facet.Wdt)
|
||||
{
|
||||
// active
|
||||
if ( !Inside<float>(offX+Shape.GetX()+Action.FacetX,cgo.X-Action.Facet.Wdt,cgo.X+cgo.Wdt)
|
||||
|
|
Loading…
Reference in New Issue