fix for 2 crashes freeing masks
- freeing a mask from RNA BKE_libblock_free() twice on the mask.
- loading a new blend file would only free the mask and not unlink it from nodes - it would access freed memory.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50579 954f8c5b-7b00-dc11-b283-0030488c597c
node transform was using PET mode (drawing a circle - but it did nothing), disable PET for nodes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50580 954f8c5b-7b00-dc11-b283-0030488c597c
add checking target `check_smatch`


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50581 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: correct misleading use of LABEL button type.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50582 954f8c5b-7b00-dc11-b283-0030488c597c
fix for out-of-bounds checks for fcurve modifier and poselib, also check for NULL members of avi structure (since they are checked for NULL later.)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50583 954f8c5b-7b00-dc11-b283-0030488c597c
fixes for NULL checks, remove some redundant checks and add some in that have been removed by accident as code has been updated.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50584 954f8c5b-7b00-dc11-b283-0030488c597c
fix for sharp edge selection being inverted, change default angle from 1 to 30deg.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50585 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: removed unused Cocoa image load/save code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50586 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Test:
* Enable progressive flag, tiles are not working properly (Image gets brighter with more samples and no visible updates until all tiles are finished).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50587 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: clear cache and animation buffers for strips outside of cursor when rendering

This avoids having bunch of cached images when doing animation rendering,
keeping all the memory available for rendered itself.

This keeps memory usage low when rendering huge edits with mixed
scenes and movie strips.

This should not affect on sped of video encoding, which was confirmed by
some own tests.

--
svn merge -r50051:50052 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50590 954f8c5b-7b00-dc11-b283-0030488c597c
Movie cache: made it thread safe to operate with memory limitor

Movie cache is using global memory limitor, which isn't thread safe
in some of operations, so it required to add mutex around limitor
operations in movie cache.

It's probably could be solved in a way with less locks involved by
using different limitor for different areas (like use own limitor
for clips, own limitor for sequencer and so), but that wouldn't be
so easy to control overall memory usage.

--
svn merge -r50125:50126 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50597 954f8c5b-7b00-dc11-b283-0030488c597c
Disable legacy compositor by default

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50599 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to rev50582: LABEL could have a1 = 1.0f and in this case a2 would be used as alpha multiplier for icon



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50601 954f8c5b-7b00-dc11-b283-0030488c597c
Added Object Info node implementation for OSL. This uses an additional attribute check in the osl_services callback for special attribute names related to objects:

* std::object_location
* std::object_index
* std::material_index
* std::object_random

Other object-based attributes can be added for particle info in the same way.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50603 954f8c5b-7b00-dc11-b283-0030488c597c
Implemented the Particle Info for OSL. Uses the following attributes:

* std::particle_index
* std::particle_age
* std::particle_lifetime
* std::particle_location
* std::particle_size
* std::particle_velocity
* std::particle_angular_velocity

Just as with SVM the rotation state attribute is currently disabled due to lack of a proper quaternion or matrix type in Cycles nodes.

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