fix regression [#36141] Crash with skin and remesh modifier in edit mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58247 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own regression, face index ranges still need checking in some places.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58248 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36107] Moving origin of instanced objects doesn't work properly

now use the active object first if its selected, this means when multiple instances are selected, using the active object gives a predictable outcome.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58249 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36128] Not deselect all bone when I press the A button in edit mode


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58250 954f8c5b-7b00-dc11-b283-0030488c597c
allow deselection when bones BONE_UNSELECTABLE flag is set (lasso/box/circle select)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58251 954f8c5b-7b00-dc11-b283-0030488c597c
debug option (off by default), for BLI_string to help find incorrect sizes being passed in (enable in source files only)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58252 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error in string copy
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start().
- BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58254 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bad lengths being passed to string functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58255 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error (-1 index into array) when removing customdata layers with no data, delete_customdata_layer was using layer data pointer to check weather to adjust index values (but both pointers can be NULL). Remove this code and do in customdata.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58256 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36124: VSE - Input Color doesn't invalidate cache properly for movies

Animation structure holds some buffers inside,
so for proper cache invalidation we need to
re-open the animation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58257 954f8c5b-7b00-dc11-b283-0030488c597c
clang/cmake - quiet warnings for external libs and reference moto as a system include.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58258 954f8c5b-7b00-dc11-b283-0030488c597c
previous commit r58256, had error in editmode (somehow it worked in most tests still).
also don't decrement active indices below zero (also a problem in 2.67).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58260 954f8c5b-7b00-dc11-b283-0030488c597c
correct placement of debug memset() for DEBUG_STRSIZE


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58261 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36145: Error in inverting channels in the UV/Image Editor

Issue was caused by operator redo saving values for previous
inverted channels, meaning the same channels will be inverted
next time operator runs.

Don't think it's useful to save operator values here, since
you don;t have visual feedback about which channels were
inverted. So marked all this properties as SKIP_SAVE. Gives
much more predictable results.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58262 954f8c5b-7b00-dc11-b283-0030488c597c
Collada miport: Report 'unknown animation class' only when relevant

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58263 954f8c5b-7b00-dc11-b283-0030488c597c
fix: #36122 Collada import - Keyframes offset after recording and playing

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58264 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36139: cycles not taking texture spacing settings into account for
generated coordinates on text objects.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58265 954f8c5b-7b00-dc11-b283-0030488c597c
fix for sequence strips being given non utf8 names, where the filepath wasn't utf8.
also correct bad assumption in BKE_image_load_exists() that all paths are relative to the current blend file.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58267 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36127: 10 bit DPX render would crash when doing rendering animations from
the UI on OS X.

The problem is due to a large variable on the stack, and pthreads have a smaller
stack size than the main thread by default. On Linux the pthread stack size seems
to be 2MB, OS X 512KB and Windows 256KB - 512KB.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58269 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36058: Displace Modifier errors using a baked Image and displace baking inconsistency between 2.67/2.68RC and previous versions

This was in fact really nasty bug, caused by multitex_nodes
function using global variable R (which is a copy of current
renderer). this variable is not initialized to anything
meaningful for until first rendering (preview or final)
happened.

Since multitex_nodes might be used outside of render pipeline,
made it so whether CM is on or off as an argument to functions
multitex_ext_safe and multitex_ext. Now multitex_nodes() is
only shall be used for stuff happening from render pipeline!

Also needed to make some changes to other places, so all the
usages of texture sampling knows for the fact whether CM is
on or off.

And one more change is related on behavior of dispalcement,
wave, warp, weightvg modifiers and smoke. They'll be always
using CM off since texture is used for influence, not for
color.

It's rather bigger patch, but it's mostly straightforward
changes, which we really need to be done.

Reviewed by Brecht, thanks!

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