Fix object drawing clipping at left and top screen border for models with action but without action facet set.

shapetextures
Sven Eberhardt 2015-09-25 00:51:36 -04:00
parent 88167a03a8
commit 7fc7790257
1 changed files with 2 additions and 1 deletions

View File

@ -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)