Object doesn't get added into the `vis_contents`, if there is a render loop where the object has been flagged with `VIS_HIDE`.
NOTE: Sent the test case to LJ's DM on Discord.
Numbered Steps to Reproduce Problem:
Object gets added to into the `vis_contents`.
Code Snippet (if applicable) to Reproduce Problem:
// Works
var/obj/fg = new
vis_contents += fg // Adds to the vis_contents
fg.blend_mode = BLEND_INSET_OVERLAY
fg.appearance_flags = KEEP_TOGETHER | PIXEL_SCALE
fg.vis_contents += block(locate(portal.x, portal.y, portal.z), locate(portal.x + 2, portal.y + 2, portal.z))
// Doesn't work
var/obj/fg = new
fg.blend_mode = BLEND_INSET_OVERLAY
fg.appearance_flags = KEEP_TOGETHER | PIXEL_SCALE
fg.vis_contents += block(locate(portal.x, portal.y, portal.z), locate(portal.x + 2, portal.y + 2, portal.z))
vis_contents += fg // doesn't add into vis_contents
Expected Results:
![](https://cdn.discordapp.com/attachments/1006311776176066735/1139611119640658052/test_20230724_2023-08-11_202622.png)
Actual Results:
![](https://cdn.discordapp.com/attachments/1006311776176066735/1139611119888126062/test_20230724_2023-08-11_202647.png)
Does the problem occur:
Every time? Or how often? Yes
In other games? Yes
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
When you add the object before you add the `vis_contents` contents of the `fg` object.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Yes
Workarounds:
Add the contents to the `fg` object before adding it to the root object.