Fix #108171: crash calling bpy.ops.uv.pack_islands #108185

Merged
Philipp Oeser merged 2 commits from lichtwerk/blender:108171 into blender-v3.6-release 2023-05-24 11:57:28 +02:00

2 Commits

Author SHA1 Message Date
Philipp Oeser 9b97670733 write protect (if pasing nullptr) in pack_islands_startjob() itself 2023-05-24 09:04:08 +02:00
Philipp Oeser e235d397e6 Fix #108171: crash calling bpy.ops.uv.pack_islands
When the operator was executed directly (instead of being invoked as
from the UI), `stop`, `do_update` & `progress` were passed to the job
uninitialized, but `pack_islands_startjob` assigns to them (leading to
crash).

Also fix memleak (missing call to `pack_islands_freejob`).
2023-05-23 14:03:41 +02:00