Blender Git Commit Log

Git Commits -> Revision 79c178b

Revision 79c178b by Bastien Montagne (master)
March 31, 2019, 16:47 (GMT)
18N for tools definitions: make them resilient to None context.

Dynamic callbacks generating lists of tools should accept None context,
not crash on it.

Similar to what we do with dynamic RNA enums, when NULL/None context is
given, assume we are in 'introspection' mode and return as many things
as possible.

This is currently essentially used by i18n messages extraction tool
(where getting all possible entries is kind of mandatory ;) ).

Also add some initial missing tranlations for complex cases that cannot
be automated, there'll likely be more of that kind...

Commit Details:

Full Hash: 79c178b0156045a54974dea10b7cf59426c8762c
Parent Commit: 54943e3
Lines Changed: +17, -1

1 Modified Path:

/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py (+17, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021