Page MenuHome

Fix: Make sure geometry set owns mesh before taking ownership.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Nov 2 2021, 7:58 PM.

Details

Summary

This fixes the second problem that I found in T91838#1246902.

The problem was that the mesh in the output of the Object Info node was not owned by the geometry set (it indirectly calls add_final_mesh_as_geometry_component).
This lead to some other issues down the line.

Diff Detail

Repository
rB Blender
Branch
object-info-mesh-ownership-bug (branched from master)
Build Status
Buildable 18404
Build 18404: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Nov 2 2021, 7:58 PM
Jacques Lucke (JacquesLucke) created this revision.

I wonder if a release_owned function will help us avoid this problem elsewhere in the future. Then again, the real solution is to stop constantly adding and removing the mesh from the geometry set in the modifier stack-- like curves and point clouds do it.

This revision is now accepted and ready to land.Nov 2 2021, 8:49 PM