fix own bug [#35451] Extrude -> Grab -> Cancel -> Crash


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56935 954f8c5b-7b00-dc11-b283-0030488c597c
remove return value from MEM_freeN, it wasn't used anywhere and was cast to a different function signature. (which evidently works but error prone).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56936 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove callbacks only added to wrap MEM_freeN


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56937 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build error after removing return value from MEM_freeN.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56938 954f8c5b-7b00-dc11-b283-0030488c597c
Related to #35452: show warning when unwrapping object with negative scale, same
as we already do for non-uniform scale.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56939 954f8c5b-7b00-dc11-b283-0030488c597c
Fix to show numpad . instead of NDOF fit as first shortcut key in menus.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56940 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compiler warnings with westin OSL code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56941 954f8c5b-7b00-dc11-b283-0030488c597c
Fluid simulation manual number of threads option now doesn't set the number
of threads to the number of cores when the fluid is created. Rather it is now
set to 0 which means "use the number of threads specified for the scene".

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56942 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35443: Animation player doesn't play some movie formats

Need to initialize FFmpeg for animation player.

This is a bit confusing, but the only way to do this
properly and clear is to call IMB_ffmpeg_init from
playback_mode command line callback.

This is because this callback is blocking and
"usual" FFmpeg initializetion (which happens after
command line parsing) was never called.

Could be switched to separate FFmpeg initializtion
and debug level set but let's keep simple for now.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56943 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Re-use already defined Westin closure class. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56944 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Use M_2PI_F in more places and do multiplication instead of division in gradient texture.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56945 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35232: Marker right-click misbehavior on adding

Made it so Add Marker button from toolbox will place
marker in the middle of the frame.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56946 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/scons: use ditto --arch <arch> instead of cp, to thin out unused architecture on the fly

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56948 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: Smoke simulator produced slightly different results on every run if openmp was enabled.

This was a typical threading issue. Move that particular function out of the parallel block.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56950 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: Smoke adaptive domain applied velocity in wrong unit space causing high velocities never apply additional margin ahead the fluid.

Also skip new flow velocity because thats not accurate enough to be of any use in there.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56951 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: Smoke simulations of very high resolutions often produced weird results, as if smoke was colliding in an invisible wall.

This was caused by a "hack" Daniel Genrich introduced in his moving obstacles commit in r46050. I suppose it was originally added to prevent issues with too fast moving obstacles, but now it ended up limiting maximum velocity of higher resolution simulations.

Here is an comparision of 184 resolution simulation (simulation area limited by adaptive domain):
https://www.miikah.org/blender/smoke_with_pressure_limit_hack.png
https://www.miikah.org/blender/smoke_without_pressure_limit_hack.png


I now reverted that hack until a better solution is found. Daniel, can you check this out? Pressure was limited to maximum of dt * dx (= dt / res) which doesn't make sense to limit pressure based on grid resolution. Maybe better to limit with a constant factor instead?

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56952 954f8c5b-7b00-dc11-b283-0030488c597c
Smoke: Remove accidental leftover code from gSoC Smoke + my Smoke code merge. 

Thanks to Miika for pointing this issue out and fixing it.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56953 954f8c5b-7b00-dc11-b283-0030488c597c
Shader Nodes:
* Use unified node sizes, as already was done with compositor nodes. Only Mapping node uses a custom size. This way we don't have too small nodes on creation anymore.
* Don't show Script Category for Blender Internal nodes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56954 954f8c5b-7b00-dc11-b283-0030488c597c
Added new method Stroke.remove_all_vertices() for removing all vertices from the stroke.
Patch from flokkievids in the BA Freestyle thread, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56955 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for a crash due to de-referencing of a StrokeVertex Python wrapper object.
Problem report by flokkievids in the BA Freestyle thread, thanks!

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