code cleanup: bge - rename 'type' to 'use_mcol' in material conversion.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52082 954f8c5b-7b00-dc11-b283-0030488c597c
game engine material conversion: don't use the material to convert vertex colors, then extract back out (pre face).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52083 954f8c5b-7b00-dc11-b283-0030488c597c
bge mesh conversion speedup, avoid calling ConvertMaterial() on every face.
now do per material bucket.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52084 954f8c5b-7b00-dc11-b283-0030488c597c
SVN maintenance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52085 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32398: Mirror modifier with "Merge" enabled producing pairs of faces
sharing the same set of vertices.

Modified the CDDM_merge_verts function (currently only used by the Mirror
modifier) to skip faces using all merged vertices.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52086 954f8c5b-7b00-dc11-b283-0030488c597c
Code de-duplication in imageprocess.c -- made it use interpolation functions from blenlib

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52087 954f8c5b-7b00-dc11-b283-0030488c597c
replace 0 and 1 with FALSE and TRUE in BLF_global_font_init in blf.c

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52088 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: fix for 2 uses of uninitialized memory - property-sensor and object-color for materials.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52089 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
- blf doesnt have includes for TRUE/FALSE, use 1/0.
- rename ogl_multisamples -> multi_sample, also shorten enum strings.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52090 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52091 954f8c5b-7b00-dc11-b283-0030488c597c
MultiSample feature: added provision that requires a restart in order to get
it work properly - you cannot set/disable it in a running program with windows
open. 

In short: Multisample setting is static, set on first time running of Blender,
after reading the user preferences.

For as far as I can see - disabling/enableing (glEnable) doesn't harm to be
used in drawing code. With multisample on at start, you can enable and disable it
freely. But without it set at start, enabling doesn't do anything nor draws badly.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52092 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix, IRC report:

NumPad emulation code wasn't working for double-clicks, preventing to fast
type same values in buttons (Like, 111111 resulted in 111 only).

Moved the emulation hack to where it belongs, in lowest level function that
interprets the ghost events for Blender's WM events.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52093 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#33140] 

The alt+shift+RMB menu to select objects didn't handle 'extend' (now called toggle).
Was due to code cleanup for selecting (and new CTRL+SHIFT+Select).

Now the shift+alt menu behaves like shift+clicks.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52094 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/cmake: actualize message for xcode specifics

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52095 954f8c5b-7b00-dc11-b283-0030488c597c
"Dynamic Sketch" patch, which adds timing data to GP strokes, by storing an inittime in each stroke (value returned by PIL_check_seconds_timer() func), and then a delta time for each of its points, relative to that inittime.

These timing data can then be used during conversion to Curve objects, to create a path animation (i.e. an Evaluation Time F-Curve) exactly reproducing the drawing movements.

Aside from this "main feature", the patch brings several fixes/enhancements:
* Stroke smoothing/simplifying will no more move the start/end points of a stroke (this was rather annoying sometimes!).
* Also optimized smoothing code (even though not really noticeable on a modern computer, it now uses less memory and runs faster).
* When converting to curve, you now have the following new possibilities:
** Normalize the weight values (currently, they will get "stroke width * 0.1", i.e. would range by default from 0.0 to 0.3...).
** Scale the radius values to your liking (again, currently they are set from stroke width times 0.1)!
** Link all strokes into a single curve, using zero-radius sections (this is mandatory to use the dynamic feature!).

Here is a small demo video: http://youtu.be/VwWEXrnQAFI

Will update user manual later today.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52096 954f8c5b-7b00-dc11-b283-0030488c597c
Actually, need no more BKE_main.h here...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52097 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32974: cycles curved motion blur is not working well combined with rotation,
problem is that the curved interpolation is not constant speed which leads to
mismatches. Turns out this is really hard to solve and implement efficiently, so
curved motion blur is disabled for now, until I can find a solution.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52098 954f8c5b-7b00-dc11-b283-0030488c597c
Replacing gettext i18n backend by boost::locale one.

This commit adds a small and simplistic C wrapper around boost's locale library as intern/locale, and heavily simplifies/reduces Blender's own i18n code (under blenfont/ dir). And it adds back UI translation on windows' official builds (with msvc)!

Note to platform maintainers: iconv and gettext (libintl) can now be removed from precompiled libs (not gettext binaries, under windows, of course ;) ).

Note to MinGW32/64 users: boost_locale lib has not yet been uploaded for those build env, please disable WITH_INTERNATIONAL for now (hopefully will be fixed very soon, have contacted psy-fy).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52106 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/cmake-2.8-10: just reorder, now sdk must be set before deployment target

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52107 954f8c5b-7b00-dc11-b283-0030488c597c
Restore my work overwritten by 52106 and some further reordering for cmake 2.8.10, todo: take into account missing symlinks for Library and /usr/local in newest xcode, affects ndof and jack

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52108 954f8c5b-7b00-dc11-b283-0030488c597c