code cleanup: use min_/max_ math functions, add minmax_v2_v2v2.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51639 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use squared length for comparisons and is_zero_v# rather then checking length == 0.


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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51642 954f8c5b-7b00-dc11-b283-0030488c597c
fix own error when refactoring projection code, [#32971] Edge Select unusable beyond certain zoom distance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51643 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#26712] Particle group instance 'Use Count' value gets reset on file-load.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51644 954f8c5b-7b00-dc11-b283-0030488c597c
fix for another error reported in [#26712], use count failing with 3 levels of linking.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51645 954f8c5b-7b00-dc11-b283-0030488c597c
add a function for merging 2 bmesh element flags into a 3rd item.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51646 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30087] operator_context is different for popup and submenu's *TODO, after 2.62*

having context different for menu vs submenu is quite confusing, now they are both: WM_OP_INVOKE_REGION_WIN
this changes WM_menu_invoke behavior.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51647 954f8c5b-7b00-dc11-b283-0030488c597c
Bug report #32970

Added "not animatable" properties to Image animation options; that's not supported.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51648 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32972: cycles crash switching OSL to SVM in viewport render.

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

Proportional editing of Objects in Object Mode didn't reset positions when
changing the circle influence size. Fix provided by Phillipp Oeser. Thanks!



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51650 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash when a python operator or render engine was freed in the C code and then referenced from python.

now further access in python gives an exception at the line when the freed data is accessed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51651 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#31661] Custom properties do no respect min/max values

also renamed function added prev commit


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

Shader nodes didn't redraw correct on preview-type changes.
Also made shader node previews draw nicely, without flashing empty images.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51653 954f8c5b-7b00-dc11-b283-0030488c597c
Show warning message when multires baking happens for preview level of 0

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51654 954f8c5b-7b00-dc11-b283-0030488c597c
Patch [#32030] Tooltips for Bake Sound to F-Curves
by Gottfried Hofmann


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

- Dopesheet should be invalidated after solution
- Prevent crash when non-camera object is set as scene camera

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51656 954f8c5b-7b00-dc11-b283-0030488c597c
Descriptions should never have dots on the end of sentence

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51657 954f8c5b-7b00-dc11-b283-0030488c597c
* New string property subtype: PASSWORD

When this new subtypes is used, then string of property is hidden using
asterisks, e.g.: mysecretpassword -> ****************

This code was reviewed and modified by Brecht. Thanks very much:
 - https://codereview.appspot.com/6713044/

This new subtype of string property is intended mostly for Add-on developers
writing Add-on which communicates with some server (http, sql, ftp, verse,
etc.). When this server requires user authentication and user has to type
username and password, then current API didn't allow to type 'hidden' password,
e.g. when you want to demonstrate this script, then everybody can see this
security password. Some examples of Add-on which could use this new subtype:
 - On-line database of textures
 - Integration of render farm
 - Integration of Verse

Security Notes:
 - You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V),
but you can do this in other GUI toolkits too (this behavior it is widely used).
 - Text of string property is stored in plain text, but it is widely used in other
GUI toolkits (Qt, Gtk, etc.).

Simple examples:
 - https://dl.dropbox.com/u/369894/draw_op_passwd.py
 - https://dl.dropbox.com/u/369894/blender-password.png

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