Removed nested comment, which causes compiler errors.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49111 954f8c5b-7b00-dc11-b283-0030488c597c
Increase maximal video bitrate to 64K

Aimed to #32153: H.264 Output Bitrate Max of 14000 kb/s is Too Low

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49112 954f8c5b-7b00-dc11-b283-0030488c597c
fix for node editor re-rendering when the background image was moved in the view. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49113 954f8c5b-7b00-dc11-b283-0030488c597c
Add property to stitch operator to clear seam flag of stitched edges (on
by default, since people usually want the layout to be updated).
Motivation has been confused user that tried to use live unwrap
afterwards and found that it would not work as it should.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49114 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32156: Blender crashes on linking armature with custom shape

Crash was caused by using NULL pointer as a wire color for drawing
object selection when drawing flag is set to DRAW_CONSTCOLOR.

Solved by not calling drawObjectSelect when DRAW_CONSTCOLOR flag
is set, which seems reasonable -- rather than adding checks deeper
in all possible functions which are being called there easier to
just not call that functions using a single check.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49115 954f8c5b-7b00-dc11-b283-0030488c597c
fix for compositor new[]/delete[] mismatch.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49116 954f8c5b-7b00-dc11-b283-0030488c597c
fix for more new[]/delete[] mismatches


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49117 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error using uninitialized memory for scale compo node.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49118 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32017] Infinite recursion in depsgraph material/node driver handling

When initially coding this functionality, I was aware of the potential for
infinite recursion here, just not how frequently such setups are actually
used/created out in the wild (nodetree.ma_node -> ma -> ma.nodetree is all too
common, and often even with several levels of indirection!).

However, the best fix for these problems was not immediately clear. Alternatives
considered included...
 1) checking for common recursive cases.  This was the solution employed for one
of the early patches committed to try and get around this. However, it's all too
easy to defeat these measures (with all the possible combinations of indirection
node groups bring).
 2) arbitrarily restricting recursion to only go down 2/3 levels? Has the risk
of missing some deeply chained/nested drivers, but at least we're guaranteed to
not get too bad. (Plus, who creates such setups anyway ;)
*3) using the generic LIB_DOIT flag (check for tagged items and not recurse down
there). Not as future-proof if some new code suddenly decides to start adding
these tags to materials along the way, but is easiest to add, and should be
flexible enough to catch most cases, since we only care that at some point those
drivers will be evaluated if they're attached to stuff we're interested in.
 4)  introducing a separate flag for Materials indicating they've been checked
already. Similar to 3) and solves the future-proofing, but this leads to...
 5) why bother with remembering to clear flags before traversing for drivers to
evaluate, when they should be tagged for evaluation like everything else?
Downside - requires depsgraph refactor so that we can actually track the fact
that there are dependencies to/from the material datablock, and not just to the
object using said material. (i.e. Currently infeasible)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49120 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use cosf and sinf when both args and results are float values.

also remove local math functions in KX_Camera


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49121 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused math functions (where already noted as deprecated)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49122 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: simplify view orbit operator


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49123 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define

also some minor style cleanup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49124 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#31925] Add a BMElemSeq.sort() method
from Antonio Ospite (ao2)


wrap bmesh sort function for python api, eg:

 bm.faces.sort(key=lambda f: f.material_index)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49125 954f8c5b-7b00-dc11-b283-0030488c597c
BGE LibLoad: Allow the user to disable loading text datablocks if they want to attempt to increase security by not loading potential Python scripts.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49126 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #32162 psys rotation causes size issues for particle instances
- The original scaling of the object wasn't taken into account when not using the particle dupliobject rotation option.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@49127 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bug [#26122] "Overlay scene gets transparent when motion blur is enabled" reported by Alberto Torres Ruiz (dithi).

The problem is motion blur was being treated as a per scene operation, but all scenes were trying to use the same accumulation buffer. Now motion blur is done in EndFrame() instead of PostRenderScene().

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