ghash/edgehash flag wasn't being initialized for new hashes. also init vars in same order for ghash/edgehash.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59371 954f8c5b-7b00-dc11-b283-0030488c597c
set nonnull args for BLI_qsort_r


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59372 954f8c5b-7b00-dc11-b283-0030488c597c
Temporary fix for gaps in strokes when objects are behind the lines.
Problem report by Light BWK through personal communications, thanks a lot!

Apparently there is something wrong in the way how edges are chained to
create strokes.  For some unknown reason, strokes may contain a very small
line segment that proceeds in the opposite direction (e.g., downward
even when adjacent stroke segments proceed upward), resulting in the
reported visual artefact.

This revision is intended to address the reported issue in most cases.
The present solution is not a proper fix of the issue.  Another code
update with better understanding of the real cause is due in the future
work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59373 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36530] Texture tab refreshing problem

That was not really a bug (code working as expected), but the way tex context was handled was a bit raw, now it is much smarter:
* Default fallback context (when current one is no more valid) will now choose "most specific" ones first (i.e. material/lamp/particules before world and "others").
* When using that default fallback context, previous one is stored and we try to revive it later, if possible. Thus e.g. object[mat tex ctxt] -> empty[default world ctxt] -> object[mat tex ctxt] is now working as expected.
* However, when user explicitely or implicitely (through e.g. going to Material context...) sets a tex context, previous one is not stored, so that only default fallback context switch may later automatically revive a previous (presumably user-set) context.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59374 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: pep8, also use float literals when comparing floats and pass tuples to mathutils.Vector() rather then list.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59375 954f8c5b-7b00-dc11-b283-0030488c597c
minor internal change: isect_point_poly_v2 was assigning a value past the array bounds,
not that bad since it wasn't read but this isnt good practice and its simple to avoid.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59376 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36534] Errors in install_deps.sh script when running on Arch Linux

Patch provided by Darren Beck, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59378 954f8c5b-7b00-dc11-b283-0030488c597c
Had not been updated after last edit to prvicons.svg file (r53004)...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59381 954f8c5b-7b00-dc11-b283-0030488c597c
Automatically re-generate png icon files from svg ones (CMake only for now)... Expects Inkscape program.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59382 954f8c5b-7b00-dc11-b283-0030488c597c
add utility functions for dealing with planes
- plane_point_side_v3(), a bit like line_point_side_v2()
- isect_point_planes_v3(), moved from paint_hide.c

functions to convert between point/normal pairs.
- plane_from_point_normal_v3()
- plane_to_point_normal_v3()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59383 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh duplicate operator: add vertmap output slot.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59385 954f8c5b-7b00-dc11-b283-0030488c597c
new bmesh operator bisect_plane, cuts a mesh in half, takes a user defined plane as an argument, handles concave ngons which need multiple cuts.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59386 954f8c5b-7b00-dc11-b283-0030488c597c
replace symmetrize code with calls to bmesh operators.
calls: bisect, duplicate, scale, flip, weld.

resolves report [#36475] Symmetrise does not keep uv/weight

also fixes issues with faces that cross the axis more then once.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59387 954f8c5b-7b00-dc11-b283-0030488c597c
correct own error in r59365, reported as [#36536] Extrusion detaches faces


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59390 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Sampling UI:
* Add a "Total Samples" info at the bottom of the panel.
This makes understanding the Non-Progressive integrator easier, as it displays how many samples are used for the different ray types. 

* Rename Squared Samples to Square samples, to indicate that the action is not already done. The new Total Samples info should make this easier to understand now as well. Also added back for Progressive integrator, for consistency. 

Screenshot:
http://www.pasteall.org/pic/show.php?id=57980

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