ViewportFrame does not render Meshes that are added before being fully loaded

Reproduction Steps
Uncopylocked place, works in studio but breaks in game.

Expected Behavior
I expect viewport to rerender when mesh loads.

Actual Behavior
Meshes are not visible until viewport is manually refreshed.

Workaround
Use ContentProvider:PreloadAsync to detect when mesh is loaded and force refresh ViewportFrame by parenting mesh to nil and back to Viewport.

Issue Area: Engine
Issue Type: Display
Impact: Moderate
Frequency: Constantly
Date First Experienced: 2022-03-23 00:03:00 (+01:00)
Date Last Experienced: 2022-04-02 00:04:00 (+02:00)

9 Likes

I think this could be intended behaviour, as stated in the documentation, viewport frames only call a re-render upon one if their children changing. May be better filing this as a #feature-requests

1 Like

Most likely not intended, started happening after update 518. I don’t think there is a use case where someone would prefer if a mesh doesn’t load.

4 Likes

So this is what’s been causing ‘invisible’ objects inside my viewports…
image

3 Likes

A workaround I found would be to place the meshparts inside a Model, and then parent the model to the viewport frame. This should fix it not rendering immediately

2 Likes

Have also had this since update 518, somewhat frustrating. Haven’t changed the code for it in months.

Interestingly, if you visible false/true the ViewportFrame after the mesh has loaded - it fixes itself.

Thanks for the report! We’ll follow up when we have an update for you.

7 Likes

Any update on this? It’s hindering my work at the moment, and damaging my games UX.

2 Likes

I can’t reproduce the issue by opening the provided place. Does the issue still exist?

1 Like

Just checked and it looks like the bug was fixed.

This topic was automatically closed after 18 hours. New replies are no longer allowed.