Blender Git Commit Log

Git Commits -> Revision 7dba879

Revision 7dba879 by Peter Kim (master)
August 27, 2021, 08:16 (GMT)
Fix XR action map index initialization

This reverts 151eed752b01. Originally thought it was necessary to
initialize selected/active indices to -1 to prevent out-of-bounds
list access, but this is not needed since null checks are already
performed after obtaining list members via BLI_findlink().

In addition, leaving indices zero-initialized facilitates use of the
Python API, for example when displaying action map information in a
UI list.

Commit Details:

Full Hash: 7dba879829469de6179302147d19cf17fb9fa94b
Parent Commit: 7652ee4
Lines Changed: +16, -36

2 Modified Paths:

/source/blender/windowmanager/xr/intern/wm_xr.c (+0, -1) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_actionmap.c (+16, -35) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021