code cleanup: use NULL rather then zero for pointers


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58980 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: more zero as NULL pointers.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58981 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58982 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: more confusion with 0/NULL/false


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58983 954f8c5b-7b00-dc11-b283-0030488c597c
quiet shadow warnings and remove redundant NULL check


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58984 954f8c5b-7b00-dc11-b283-0030488c597c
Adding a fov attribute to KX_Camera. This attribute converts the field of view value and uses it to set lens.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58985 954f8c5b-7b00-dc11-b283-0030488c597c
A documentation update for my last commit (adding the fov attribute to KX_Camera)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58986 954f8c5b-7b00-dc11-b283-0030488c597c
remove assert in check_for_dupid() function for rare but valid renaming situation.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58990 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36266, First undo in compositor decrements usercounter without a reason. The handling of scene backpointers in render layer/composite nodes changed slightly recently, which caused a double increment
of the scene user count. The node->id pointer for these nodes is now initialized in the respective init callbacks already. The explicit assignment and increment in the ED_node_composit_default is not
necessary and just adds an increment without checking previous values and decrementing them properly.

Note that the current system still leaves the scene with "fake" users (rlayer + composite nodes) which are actually part of the scene data itself. But that's design issue with the "local" node tree data
and doesn't do any real harm.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58991 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36391: removing an armature with a custom bone shape object would not
decrement the object user count when removing the armature. This could cause
the object to stick when it shouldn't, in particular when that object is part
of a group.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58992 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36373: maya and max key configurations for mesh loop select did not work correct
when doing an extend loop select, then doing a regular loop select, it would still
extend.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58993 954f8c5b-7b00-dc11-b283-0030488c597c
Another preview fix for SplitViewer node

Use the same logic as in ViewerNode to update preview when backdrop is disabled.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58996 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36007: ends of curves do not fit

Made first/last tessellated curve have proper
direction and tilt. Before direction/tilt
from second/previous to last tessellated curve
segments.

Thanks Brecht for review and tests!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58997 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36355: cycles render of objects with both duplis and hair would not render
the hair in some cases.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58999 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crashes that could still happen opening files with the outliner bug that existed
between revision 58855 and 58959. Now it ensures the memory is not freed before reading.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59001 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36383: add object to group check for dependency cycles did not work correctly
when the group contained two objects duplicating the same group. Also added the
dependency check to the "add to active group" operator now for consistency.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59002 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for docstrings of CurvePoint.first_svertex() and CurvePoint.second_svertex().

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59003 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for a formatting error in the docstring of SVertex.viewvertex().

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