Go to file
Bastien Montagne 3bad243cb8 Further tweaking to numinput - enhance 'Reset' behavior.
Ways how it was resetting its values (backspace) was far from satisfaying. Now, e.g. when scaling, it will reset at 1 (or whatever mouse-value it was before entering numinput), instead of some ugly 0.0 value.

Implementation details:
* Values passed to applyNumInput() are stored as default ones (val_org), if it is not EDITED.
* applyNumInput() returns a boolean saying whether it actually set values or not.
* When backspace hits its ultimate step (where it clears all EDITED flags and reset all default values),
  it sets a temp FAKE_EDITED flag that will be used to apply one last time values of numinput
  (so that default values actually get applied!).

There are important things to note here for code using numinput:
* Values passed to applyNumInput() should be valid and are stored as default ones (val_org), if it is not EDITED.
* bool returned by applyNumInput should be used to decide whether to apply numinput-specific post-process to data.
* *Once applyNumInput has been called*, hasNumInput returns a valid value to decide whether to use numinput as drawstr source or not.

Those two steps have to be separated (so do not use a common call to hasNumInput() to do both in the same time!).
2014-03-23 09:29:04 +01:00
build_files tweaks to buildinfo 2014-03-07 18:27:16 +06:00
doc Bump version to Blender2.70rc and new splash 2014-03-06 04:40:49 +11:00
extern Cleanup: Restrict the debug -gline-tables-only to cxx_debug in cycles and spelling 2014-03-22 11:33:32 +01:00
intern Cycles: SSE optimization for line segments/ribbons hair 2014-03-23 00:45:59 +04:00
release Slight cosmetic improvement on UI. Add eyedropper icon to detail sample 2014-03-23 00:01:46 +02:00
scons@59512aadd1 Revert changes to submodules 2014-03-10 15:17:22 +06:00
source Further tweaking to numinput - enhance 'Reset' behavior. 2014-03-23 09:29:04 +01:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore .gitignore: Adding CMakeLists.txt.user for QtCreator users. 2014-01-26 17:52:14 -08:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt Make CMake use Jack debug libraries when compiling a debug build 2014-03-08 18:47:02 +01:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Found another place where nproc can be used 2014-03-02 10:29:40 +01:00
SConstruct Splash screen: use a retina resolution image for Mac OS X. 2014-02-18 19:38:44 +01:00