Fix T70903: Opening splash screen from named app_template crashes
Caused by rB46102cf4e0c4 [which removed the check if the image can actually be loaded]. Maniphest Tasks: T70903 Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D6089
This commit is contained in:
parent
8378db40c7
commit
725b59d9b4
Notes:
blender-bot
2023-02-14 08:08:54 +01:00
Referenced by issue #70930, Splash Screen Referenced by issue #70903, Opening splash screen from named app_template crashes
|
@ -209,7 +209,7 @@ static ImBuf *wm_block_splash_image(int r_unit_size[2])
|
|||
ibuf = IMB_loadiffname(splash_filepath, IB_rect, NULL);
|
||||
|
||||
/* We could skip this check, see comment about 'x_expect' above. */
|
||||
if (ibuf->x != x_expect) {
|
||||
if (ibuf && ibuf->x != x_expect) {
|
||||
CLOG_ERROR(WM_LOG_OPERATORS,
|
||||
"Splash expected %d width found %d, ignoring: %s\n",
|
||||
x_expect,
|
||||
|
|
Loading…
Reference in New Issue