Page MenuHome

Fix T85499: Crash on switching to edit mode with uv editor open
ClosedPublic

Authored by Falk David (filedescriptor) on Feb 9 2021, 2:41 PM.

Details

Summary

A fix for T83187 (rBf83aa830) assumed in the overlay code of the uv editor that the object was a mesh
when it did not have to be - causing a crash.

The fix makes sure that the object is a mesh.

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested changes to this revision.Feb 9 2021, 4:54 PM

Just a small change needed to skip some unneeded CPU cycles.

source/blender/draw/engines/overlay/overlay_edit_uv.c
410

I would move this one line up and check against objects[ob_index] so the depsgraph call is also skipped.

This revision now requires changes to proceed.Feb 9 2021, 4:54 PM
Falk David (filedescriptor) edited the summary of this revision. (Show Details)

Made changes as requested

This revision is now accepted and ready to land.Feb 10 2021, 1:20 PM
Campbell Barton (campbellbarton) requested changes to this revision.Feb 11 2021, 4:12 AM

In this case you can check if draw_ctx->obact is a mesh before allocating objects and looping over them.

This revision now requires changes to proceed.Feb 11 2021, 4:12 AM
  • Move check outside of loop
This revision is now accepted and ready to land.Feb 15 2021, 11:56 AM