fix: #34823 Collada: nodes exporting world matrices

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58227 954f8c5b-7b00-dc11-b283-0030488c597c
fix relating to [#36093] Stationary Particle system - particle Y axis fails to follow emitter object rotation

With deformations and on a simple cube you could get axis flipping with normal-particle alignment.
now use the normal & tangent to create the orientation to give a stable matrix that wont flip.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58229 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36135] File name of previously saved render result no longer remembered

in fact the problem was caused by own previous fix/improvement for a different case, now this works as follows...

- render uses last-saved name, falls back to 'untitled' in blend file path.
- non render uses id-name always, saves into dir of last-saved image, fall back to blend file path.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58231 954f8c5b-7b00-dc11-b283-0030488c597c
recent changes to particle normal orientation change behavior in a way you might not want (even though in general I think its an improvement).
split this into 2 options, added 'Normal-Tangent' orientation that makes the mesh orient towards the tangent, otherwise it uses Z-Up as before.


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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58233 954f8c5b-7b00-dc11-b283-0030488c597c
Fix some unnecessary memory allocation slowness in cycles mesh export.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58234 954f8c5b-7b00-dc11-b283-0030488c597c
fix for case where negative index was used when rendering particles with UV's, also removed redundant array check.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58236 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a few issues found by coverity code scan in cycles code, nothing that caused
an actual bug as far as I can tell.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58237 954f8c5b-7b00-dc11-b283-0030488c597c
Removed unused paramter from ArmatureImporter:add_joint()

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58240 954f8c5b-7b00-dc11-b283-0030488c597c
fix: #36060 Collada Import: animated armature+mesh problem

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58242 954f8c5b-7b00-dc11-b283-0030488c597c
== libredcode / licence cleanup ==

Changed libredcode to GNU GPL v2 or later to make it more compatible
with additional libraries added to blender.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58243 954f8c5b-7b00-dc11-b283-0030488c597c
replace strncpy with BLI_strncpy for cases we expect the string to be NULL terminated.


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