code cleanup: double promotion warnings with new bevel code & wrong use of NULL in cycles.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52017 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33082: dupliverted metaball showing wrong in cycles render and metaball
edit mode. I've made it follow blender internal now, but this system should
really be improved once, metaballs that are in linked dupligroups will never
show up.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52018 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33125: cycles OSL crash with multiple render sessions running at the same time.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52019 954f8c5b-7b00-dc11-b283-0030488c597c
CMake: LLVM configuration tweak to check if llvm-config actually exists before
using it (patch by IRIE Shinsuke). Also search for any library instead of just
static ones.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52020 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33121] crashing when srolling down in text editor !


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52021 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor style edits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52022 954f8c5b-7b00-dc11-b283-0030488c597c
add a distance limit to the shrinkwrap modifiers project mode,
it was problematic for vertices to fire rays out and hit some unrelated-far-off geometry which is often not what users want.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52023 954f8c5b-7b00-dc11-b283-0030488c597c
Option for shrink-fatten to maintain shell thickness (hold Alt).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52024 954f8c5b-7b00-dc11-b283-0030488c597c
shrink/fatten was missing from the transform menu


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52025 954f8c5b-7b00-dc11-b283-0030488c597c
Axis Colours are now Themeable

This commit allows you to set the RGB <-> XYZ axis colours used for things like
the mini axis indicator, grid axis indicators, manipulators, transform
constraint indicators, F-Curves (when using XYZ to RGB colouring option), and
perhaps something else I've missed. Previously, these places all used hardcoded
defines (220 * i/j/k), but the readability of these colours was often quite
poor, especially when used with certain themes.

The settings for these colours can be found under the "User Interface" section
of the themes (i.e. same set of colours is used across editors). I could have
made these per editor, but since it's unlikely that these will need to be too
different across editors in practice (+ being easier to version patch), they are
stored under the UI section.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52026 954f8c5b-7b00-dc11-b283-0030488c597c
Missed version bump in previous commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52027 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash when copying scene with sequencer's animation using Link Objects or Link Object Data methods

- Don't crash if there's any fcurves created for sequencer but no sequencer itself
- Don't copy sequencer's fcurves when copy new scene with linking data/objects method

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52028 954f8c5b-7b00-dc11-b283-0030488c597c
add fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_length() to avoid divide by zero when a vertex has no connected geometry.

also style cleanup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52029 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: persistent images option

This option enables keeping loaded images in the memory in-between
of rendering.

Implemented by keeping render engine alive for until Render structure
is being freed.

Cycles will free all data when render finishes, optionally keeping
image manager untouched. All shaders, meshes, objects will be
re-allocated next time rendering happens.

Cycles cession and scene will be re-created from scratch if render/
scene parameters were changed.

This will also allow to keep compiled OSL shaders in memory without
need to re-compile them again.

P.S. Performance panel could be cleaned up a bit, not so much happy
     with it's vertical alignment currently but not sure how to make
     it look better.

 P.P.S. Currently the only way to free images from the device is to
       disable Persistent Images option and start rendering.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52030 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: no need in spin lock in memory statistics

This functions are called from device code which is guaranteed
not to be called simultaneously from different threads.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52031 954f8c5b-7b00-dc11-b283-0030488c597c
Fisheye Equidistant Lens algorith bugfix
r = lens * theta

Thanks for Adriano Oliveira for reporting this and chasing down the right formula.
Now fulldome works no longer need to use equisolid + a specific lens+sensor size.

And happy birthday to me. And yes, that's how I celebrate it ;)

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52033 954f8c5b-7b00-dc11-b283-0030488c597c
Edits for consistency with other parts of code

For the record, AnimData vars should be named "adt", not "ad"


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

User Preference setting for Color Picker type only affected the popup
version. Now it uses it for all color pickers in Panels too.

Note for UI Py team: col.template_color_wheel() function follows
the userpref - might be a need for rename here? Dunno how to handle
this. Comment noted in template code.




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

Intel graphics cards now use Triple Buffer when you set it to "Auto".
Recent tests proved that this is now working... and better test this
now well than a week before a release!



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