blender/source
Campbell Barton 7d8f0fce7a patch [#23758] Better handling of UTF chars in UNITS fields (lengths, angles, etc.)
from Lorenzo Tozzi (oni_niubbo) with minor edits.

--- from the tracker
The present situation is this: due to bug#22274, during editing, UTF chars are stripped from buttons with a unit associated
(length, angles, etc.).
Example: if the button displays '90°' and you click on it with LMB, the editing string will become '90'.

The problem arises if you use microns: '34µm' becomes '34' that blender interprets as 34 meters. So clicking on a button
and hitting enter won't confirm the previous value, but will change it (very badly also).

Of course nobody is using microns in blender, but the problem will arise when we will implement areas and option 'Separate
Units' will be enabled. The value '2m² 3cm²' will become '2m' during editing.

This patch solves the problem rewriting the string in a smarter way than just stripping the UTF chars: the unit is translated
from unit->name_short ('µm') to unit->name_alt ('um'). So clicking on '34µm' the editing string will become
'34um'.
--- end

note: rather then allowing empty strings in name_alt field I made it so if the unit system was the default one a NULL name_alt will just strip the string, since its the default its not needed.
2010-09-15 17:37:00 +00:00
..
blender patch [#23758] Better handling of UTF chars in UNITS fields (lengths, angles, etc.) 2010-09-15 17:37:00 +00:00
blenderplayer patch [#23650] fix stubs.c for optimized build 2010-09-07 02:39:32 +00:00
creator win32 mingw works again with cmake 2010-09-15 14:36:32 +00:00
darwin Update address in license block. 2010-08-10 21:22:26 +00:00
gameengine update for MingW/CMake 2010-09-15 16:13:32 +00:00
icons Windows Icons: 2010-09-05 07:08:21 +00:00
kernel - use list append in more places (preferred method since its faster) 2010-09-06 10:15:41 +00:00
CMakeLists.txt
Makefile Group all AUD libs, duplicate one to avoid linker error. 2010-08-17 01:50:47 +00:00
SConscript Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00