Removed the extra ntree->update flag check in lib_verify_nodetree in readfile.c. This is unnecessary as the update flag will be checked internally in ntreeUpdateTree anyway, except for the generic bNodeTreeType->update callback (it could even be harmful by preventing necessary updates that don't use the ntree->update flag). Executing this once after loading a node tree is a useful feature for pynodes, so they can do initial verification.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56055 954f8c5b-7b00-dc11-b283-0030488c597c
minor edits to DM_update_weight_mcol(), skip getting vars when in editmode, also remove old/invalid comment.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56056 954f8c5b-7b00-dc11-b283-0030488c597c
Make it so FATAL messages from libmv are print to the console
even when --debug-libmv is not passed via command line.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56057 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compilation with current FFmpeg trunk

AVCODEC_MAX_AUDIO_FRAME_SIZE was deprecated and
finally removed from current trunk.

Initial patch by Lawrence D'Oliveiro (ldo) with
own modification, Thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56058 954f8c5b-7b00-dc11-b283-0030488c597c
add back attribution field from script.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56059 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34972: Blender crashes when Force Field-> Curve Guide is created

Made it so where_on_path works correct when Curve does
have editNurbs but no Curve->nurbs.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56060 954f8c5b-7b00-dc11-b283-0030488c597c
WIP, jason's patch

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56061 954f8c5b-7b00-dc11-b283-0030488c597c
New implementation for twist brushes.

It has much better rotation and avoids the compression effect that old
twist brushes have. Also twisting is now non periodic, meaning you can
twist beyond 180 degrees. The amount of twist is also calculated
relative to the angle formed after first translating the mouse away from
the brush center.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56062 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: when using a search menu with an operator's enum prop, the operator was previously always executed with default options (appart from the search-set enum, of course). Now we store the op's properties in search button, so that you can specify non-default options (as it was already possible with e.g. pop-up menu from an operator's enum prop).

To achieve this, some code (callbacks and search button creation) was moved from wm_operators.c to interface/interface.c, and a new UI function was added, uiDefSearchButO_ptr.

Note: This new code uses the fact that uiButHandleFunc callbacks get executed before operator when one of its arg is the button itself!

Many thanks to Campbell who helped me a lot with this patch!

Cleanup: also removed two unused pointers from uiBut struct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56063 954f8c5b-7b00-dc11-b283-0030488c597c
rename axis_angle_to_mat3_no_norm() --> axis_angle_normalized_to_mat3().
this matches closer to convention from existing functions - angle_v3v3() angle_normalized_v3v3().

also added assert to ensure argument given to axis_angle_normalized_to_mat3() is in fact normalized.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56064 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34967: Display transform makes byte image with alpha=0 black

Skip premultiplication/de-premultiplication when acquiring display
buffer for a byte image. Will make conversion a bit faster also :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56065 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for cycles border render optimization commit, render status bar was off by 1 pixel.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56066 954f8c5b-7b00-dc11-b283-0030488c597c
CMake: add LLVM_STATIC as cmake build option, so linux distributions can link
LLVM dynamically. Patch by Dan Eicher.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56067 954f8c5b-7b00-dc11-b283-0030488c597c
Touch properties when clearing/adding to a collection.

Fixes an issue when adding several movie strips fails
second time in sequencer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56068 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34975: crash rendering curve/text with modifiers that alter topology,
was issue in new freestyle code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56069 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34978: for cycles, images displayed in the UV editor where coupled to the
active image texture node in the material, now this is removed and the image in
the image editor is decoupled and not changed upon entering edit mode.

This system caused more confusion then it's worth, changing or removing textures
would modify the material but users would often not be aware of this.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56070 954f8c5b-7b00-dc11-b283-0030488c597c
Begin of tests for motion tracker

- Synthetic test for brute tracker
- Synthetic test for loc-rot-scale motion
- Synthetic test for tripod solver

Real-life tests would be commited later,



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56071 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Hair: Strand Minimum Pixel Size

Code is added to restrict the pixel size of strands in cycles. It works best with ribbon primitives and a preset for these is included. It uses distance dependent expansion of the strands and then stochastic strand removal to give a fading. To prevent a slowdown for triangle mesh objects in the BVH an extra visibility flag has been added. It is also only applied for camera rays.

The strand width settings are also changed, so that the particle size is not included in the width calculation. Instead there is a separate particle system parameter for width scaling.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56072 954f8c5b-7b00-dc11-b283-0030488c597c
Random number generator: replace a bunch of usage of the global random number
generator with a local one. It's not thread safe and will not give repeatable
results, so in most cases it should not be used.

Also fixes #34992 where the noise texture of a displacement modifier was not
properly random in opengl animation render, because the seed got reset to a
fixed value by an unrelated function while for final render it changed each
frame.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56073 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a few warnings. One was an actual bug in freestyle where stroke attributes
were not properly interpolated.

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