Page MenuHome

Fix crash when clicking in window while Blender starts
ClosedPublic

Authored by Sybren A. Stüvel (sybren) on Jul 10 2019, 12:24 PM.

Details

Summary

A mouse click in the window will trigger the VIEW3D_OT_cursor3d operator before the viewport is available. This causes a segfault in GPU_viewport_engines_data_validate().

Other callers of WM_draw_region_get_viewport() already check for NULL being returned and handle it gracefully.

Diff Detail

Repository
rB Blender

Event Timeline

It can't hurt I suppose.

This revision is now accepted and ready to land.Jul 10 2019, 12:28 PM