Blender Git Commit Log

Git Commits -> Revision 12ceea0

Revision 12ceea0 by Sybren A. Stüvel (master)
July 10, 2019, 10:32 (GMT)
Fix crash when clicking in window while Blender starts

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.

Reviewed By: jbakker, fclem

Differential Revision: https://developer.blender.org/D5216

Commit Details:

Full Hash: 12ceea04344ac8267d391b57187ffd0aa336c3cb
Parent Commit: f9232c0
Lines Changed: +5, -1

1 Modified Path:

/source/blender/editors/space_view3d/view3d_draw.c (+5, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021