Scons / MSVC - Windows x64
* SSE/SSE2 is an unknown option for the compiler (Command line warning D9002 : ignoring unknown option '/arch:SSE2'), so it can be left out because on x64 it automatically builds with SSE and SSE2. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47107 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed crash opening files with missed libraries.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47109 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: replace clamp+round of multiplied color value with FTOCHAR macro,

Should solve issues with building blender in release environment, should be
no functional changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47110 954f8c5b-7b00-dc11-b283-0030488c597c
A few minor UI message fixes...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47111 954f8c5b-7b00-dc11-b283-0030488c597c
Smoke: Fix messed up shadow display with OpenMP. This needs fixing. For now disable openmp for that function. Shadow calculation would be better raytraced on GPU or using shaders for the future.

Part of my Blender Smoke Development Phase III.

(accidently commited this to smoke2 branch first)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47113 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for node linking operator, which could insert node link into the list twice and cause deadlock due to incomplete test.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47114 954f8c5b-7b00-dc11-b283-0030488c597c
* Some code optimizations to panel collapse code, to avoid calculations for each panel. Suggested by "Bao 2". 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47115 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own recent commit removing NULL checks from TREESTORE macro - this use needed it.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47117 954f8c5b-7b00-dc11-b283-0030488c597c
bpy.utils.time_to_frame() and frame_to_time() utility functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47118 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #29846, Dynamic rotation of particles not affected by forcefields 2.61 64 bit. Patch by Arno Mayrhofer (azrael3000).

Minor fix by me to initialize the effector point angular velocity vector correctly.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47124 954f8c5b-7b00-dc11-b283-0030488c597c
image.gl_load(): clear glGetError buffer before getting a new one

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47125 954f8c5b-7b00-dc11-b283-0030488c597c
image.gl_load: moving error cleaning to before all gl calls"



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47129 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: also fix for TIMEIT macro


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47130 954f8c5b-7b00-dc11-b283-0030488c597c
image.gl_touch: wasn't passing the parameters to gl_load

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47131 954f8c5b-7b00-dc11-b283-0030488c597c
Fix 2 #29846. Effector point ave variable can be NULL.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47132 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: fixes to make CUDA 4.2 work, compiling gave errors in shadows and
other places, was mainly due to instancing not working, but also found
issues in procedural textures.

The problem was with --use_fast_math, this seems to now have way lower
precision for some operations. Disabled this flag and selectively use
fast math functions. Did not find performance regression on GTX 460 after
doing this.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47133 954f8c5b-7b00-dc11-b283-0030488c597c
add BLI_ghash_pop() which returns the value for a key and removes it at the same time, saves a lookup if you need to check if the item exists before removing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47134 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / CUDA:
* Remove -use_fast_math flag from scons as well. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47135 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bug [#31613] Cycles 3d viewport material display mode + skin modifier related crash

When in material display mode, mesh_calc_modifiers() calculates the
orco DerivedMesh, which uses a different CustomDataMask. In
particular, it does not necessarily include the current modifier's
requiredDataMask, so those layers might get set to NO_COPY. For the
skin modifier, this resulted in a crash when the modifier internally
copies the DerivedMesh and the output does not contain the expected
MVertSkin layer.

Fixed by adding the requiredDataMask to the orco DM's CustomDataMask.

Also added a debugging function to customdata.c:
customData_mask_layers__print(CustomDataMask mask);

This will print out the names of all the CD layer types in the mask.

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


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