this is so temporary meshes can be freed without messing up other addons
that might have called UV Layout Export [and used ob.to_mesh()]
followup to T65990 / rBA1c08d210faf6 (also see D5112 for reasoning)
Differential D5114
UV Layout Export: use 'bpy.data.meshes.new_from_object()' Authored by Philipp Oeser (lichtwerk) on Jun 21 2019, 3:29 PM. Tags None Subscribers None
Details this is so temporary meshes can be freed without messing up other addons followup to T65990 / rBA1c08d210faf6 (also see D5112 for reasoning)
Diff Detail
Event TimelineComment Actions would still like to hear @Sergey Sharybin (sergey) 's opinion, still sounds like bpy.data.meshes.new_from_object() is not meant for temporary usage. Comment Actions meshes.new_from_object() is indeed not meant for temporary usage, but historically it was used as such. I am not sure what you mean by would apply to many addons. Comment Actions What I mean is we have a couple of addon-operators calling ob.to_mesh_clear(). Comment Actions To me this does not justify pollution of main database with a temporary objects. It's the same as operator storing point to ID/data and calling an operator which modifies that ID/operator. Comment Actions So I guess we'll leave this "as is" [unless @Jacques Lucke (JacquesLucke) has objections?] |