Fix for is_orthogonal check which in fact was checking for orthonormal matrix.
Separated it into two functions so now it'll be clear if check happens for
orthonormal or just orthogonal.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45317 954f8c5b-7b00-dc11-b283-0030488c597c
fix for [#30738] Shading smooth/flat instability

Committing patch from Francisco De La Cruz ([#30753] Shade smooth not preserved when toggling editmode)
Thanks for researching this and providing fix.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45318 954f8c5b-7b00-dc11-b283-0030488c597c
Partial fix [#30744] BMesh: Particle system face/volume emission doesn't work if there is a constructive modifier earlier.

When ORIGSPACE is added, it is now a loop data, so we need to mark tessdata as dirty too. Also fixed DM_ensure_tessface to check DM_DIRTY_TESS_CDLAYERS flag!

This fixes problems with subsurf + dynapaint + particles, however, some modifiers, like remesh, seems to create a new dm from scratch, hence loosing completely those CD layers… Note this bug already existed in 2.62, so this is not a regression.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45319 954f8c5b-7b00-dc11-b283-0030488c597c
Reverting some style changes from r45305.

See discussion here:
http://lists.blender.org/pipermail/bf-committers/2012-April/036098.html

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45322 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
  always use if (...) even if the macros dont require it (confuses parsers)
  define macros without the ';'s included.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45323 954f8c5b-7b00-dc11-b283-0030488c597c
fix - extrude could create hidden faces when the only connected face to an edge was hidden, the hidden setting would be copied to the newly created face.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45324 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30768] Project from View UV map tool includes hidden geometry r45323

select all could select hidden faces, now BM_mesh_elem_flag_enable/disable_all takes an argument to skip hidden elements.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45325 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#30721] Fly Operator Stack Corruption
from Jason Wilkins (jwilkins)

slight change to fix in patch.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45330 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: replace inline axis angle conversion with axis_angle_to_mat3()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45331 954f8c5b-7b00-dc11-b283-0030488c597c
Minor UI messages fix...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45332 954f8c5b-7b00-dc11-b283-0030488c597c
Constraint UI:
* Adjust "no py constraint" message to be a bit more meaningful. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45333 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30758] bmesh: unable to rip a single vertex

this also adds the ability to rip disconnected face fans apart which is handy.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45334 954f8c5b-7b00-dc11-b283-0030488c597c
adding back boundary inset support. was disabled because at one point it was unstable.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45335 954f8c5b-7b00-dc11-b283-0030488c597c
fix problem with select invert - flush selection.

previously this wasnt needed because doing an undo push would flush the selection.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45336 954f8c5b-7b00-dc11-b283-0030488c597c
fix for a bug with Ctrl+Click extrude in curve editmode, it would use the wrong handle type in some cases.
also make it re-calculate the handle locations which is much more useful.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45337 954f8c5b-7b00-dc11-b283-0030488c597c
Multithreaded EXR files loading

Use multithreaded loading of EXR files which is enabling by call of
setGlobalThreadCount function from OpenEXR library to set up number
of used threads to number of system threads which speeds up loading
high-resolution files on multi-core / multi-cpu systems and allows
to work with high-resolution sequences in clip editor and sequencer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45338 954f8c5b-7b00-dc11-b283-0030488c597c
wrap RNA's RNA_property_collection_clear from python.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45339 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30770: missing node editor redraw when changing active material by clicking
on face in edit mode.

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