View Single Post
07-13-19, 10:58 AM   #1
fusionpit
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 6
Question SetClipsChildren(true) only clips the first Model child of the frame

I have a normal frame, which contains 2 Model derivatives in it (One DressUpModel, one PlayerModel, but it happens with any combination of Model frames). When using frame:SetClipsChildren(true), only the first visible child gets clipped correctly.

When the first child exits the bounds of the frame, it is correctly clipped, as seen here: https://gfycat.com/alarmedwhimsicalamericancreamdraft
When the first child exits the bound of the frame, then the second child exists the bound of the frame afterwards, it is correctly clipped as seen here: https://gfycat.com/uglywilditalianbrownbear
However, when the first child remain in bounds, the second child won't clip until the entire frame has moved out of bounds: https://gfycat.com/imaginativehauntingamericanbulldog

In these clips, the Gnome has its model frame created first, and the elemental has its model frame created second. If I change only the order of frame creation, so that the elemental is first, the opposite of the third clip happens; Until the elemental moves out of bounds, the gnome will not clip until it's fully out of bounds.

Is this a known issue, maybe just a general UI bug? Anyone ever have to deal with multiple Model frames being clipped? Is there some other way to get ALL models to clip like the first child does, even when other models are on screen still?
  Reply With Quote