code cleanup: curve path calculation


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50367 954f8c5b-7b00-dc11-b283-0030488c597c
fix for building on msvc2008 (also style cleanup)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50369 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error in `const` use in last commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50370 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#32469] "standalone blenderplayer no longer starts in lastest build" reported by narutocanada. It looks like the Hive commit (r50310) didn't take changes from r49998 into account, so it was still relying on Ghost events to push the engine along instead of calling app->EngineNextFrame().

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50371 954f8c5b-7b00-dc11-b283-0030488c597c
fix for building without python, also rework python-main-loop control in the BGE to not use RNA (use lower level BKE/BLI funcs instead)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50372 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#31856] movieclips.load(filepath=None) or value crash Blender

workaround for python bug/inconsistency


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50373 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bad memory leak in OSL: the context created for each OSL sample did not get released properly.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50374 954f8c5b-7b00-dc11-b283-0030488c597c
Use one context per OSL thread. Not sure if this actually works, but the simple renderer example in OSL does it this way.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50375 954f8c5b-7b00-dc11-b283-0030488c597c
 * there is a tiny memory leak. I think it happens when you quit blenden
during a WM_draw. tiny is max 8* size of pointer and it is maintained at
that size. So no worries there.
 * cleanup some code to be certain that deinitialization happens
correctly.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50377 954f8c5b-7b00-dc11-b283-0030488c597c
OSL:
* Gradient texture renders now. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50378 954f8c5b-7b00-dc11-b283-0030488c597c
Mango request: display sliders for current point in curve mapping

--
svn merge -r49893:49894 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50383 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: merge of changes from tomato branch.

Regular rendering now works tiled, and supports save buffers to save memory
during render and cache render results.

Brick texture node by Thomas.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures#Brick_Texture

Image texture Blended Box Mapping.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures#Image_Texture
http://mango.blender.org/production/blended_box/

Various bug fixes by Sergey and Campbell.
* Fix for reading freed memory in some node setups.
* Fix incorrect memory read when synchronizing mesh motion.
* Fix crash appearing when direct light usage is different on different layers.
* Fix for vector pass gives wrong result in some circumstances.
* Fix for wrong resolution used for rendering Render Layer node.
* Option to cancel rendering when doing initial synchronization.
* No more texture limit when using CPU render.
* Many fixes for new tiled rendering.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50384 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: remove strip's color balance in favor of modifiers

Having two ways to control color balance now seems a bit overkill
and not clear.

Removed old Color Balance settings from the interface and logic,
added versioning code to convert this settings to modifier.

Unfortunately, since color balance was a pointer, it's not actually
possible to preserve compatibility of old files saved in new
blender and opened back in old blender.

Hopefully there's no regressions :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50385 954f8c5b-7b00-dc11-b283-0030488c597c
Compilation fix for recent merge commit

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50386 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: remove effect mask input

Initial idea of this input was re-designed in a bit more flexible
way using modifiers.
Also since Color Balance (which was the only thing using effect
mask input) was moved to the modifiers, this input field became
rudiment.

It's pretty tricky to write versioning code to prevent possible
data in cases this field was used, but hope it wouldn't be difficult
to switch to modifiers masks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50387 954f8c5b-7b00-dc11-b283-0030488c597c
OSL:
* WIP commit of fixes for musgrave and wave. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50388 954f8c5b-7b00-dc11-b283-0030488c597c
Minor syntax error in musgrave osl texture.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50389 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for OSL input parameter name mapping. When assigning input constants to shader parameters, use the compatible_name function to strip whitespace.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50390 954f8c5b-7b00-dc11-b283-0030488c597c
OSL:
* Holdout shader is now working in OSL. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50391 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: avoid allocating image buffer on every modifier

This means that modifier would operate on buffer which was passed to it,
without creating copy of image buffer and operating on it.

All current modifiers fit into this model and if it would need to have
original buffer on modifier calculation, that particular modifier can
create copy.

Gives some percentage of boost.

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