Blender Git Commit Log

Git Commits -> Revision 565d7f7

Revision 565d7f7 by Campbell Barton (master)
July 27, 2020, 11:00 (GMT)
UI: improve errors when evaluating a number button fails

Showing the Python error without any explanation is often
not enough information and doesn't hint that the error was in the
user input.

The error report from a invalid expression such as '..1' used to be:
('invalid syntax', ('<string>', 1, 1, '..1'))

Now reads:
Error evaluating number, see Info editor for details: invalid syntax

Address issue raised by T78913.

Commit Details:

Full Hash: 565d7f75ccfe955821991793fcd6335e58b6825b
Parent Commit: 7beef1f
Lines Changed: +80, -39

9 Modified Paths:

/source/blender/editors/include/ED_numinput.h (+6, -2) (Diff)
/source/blender/editors/interface/interface.c (+8, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -5) (Diff)
/source/blender/editors/util/numinput.c (+12, -5) (Diff)
/source/blender/python/BPY_extern.h (+4, -4) (Diff)
/source/blender/python/intern/bpy_capi_utils.c (+19, -6) (Diff)
/source/blender/python/intern/bpy_capi_utils.h (+2, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+23, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021