fix for all pose-group editing functions crashing when the context didnt have an area (in background mode),
fix pose-group-sort and pose-group-moving being disabled for pinned poses.

also fix for own missing NULL check for pose mask clear which would crash when run without an active object


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50818 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrect declaration rna_Object_free_duplilist() in cycles.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50819 954f8c5b-7b00-dc11-b283-0030488c597c
fix for some crashes running operators in background mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50820 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash executing a python script.
nice obscure case, when a script executes, frees its self (by loading a file for eg), then has a python error.

... in this case blender would fetch the python exception and attempt to move the cursor in the freed textblock to the error line, crashing blender.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50821 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash backing in background mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50822 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crashes caused by mixups when adding objects when incompatible object types were already in editmode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50823 954f8c5b-7b00-dc11-b283-0030488c597c
add more tests to run operators testing script


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50824 954f8c5b-7b00-dc11-b283-0030488c597c
remove sticky customdata layers as well as sticky mtex flag


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50825 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash loading old files without colormanagement.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50826 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32522: Object's diffuse color not showing in Sculpt Mode

It was missing since sculpting mask implementation.

Now object's color would be multiplied by sculpt mask value.

For VBOs it's done by storing final color in VertexBufferFormat and
mimic behavior of setMaterial callback for getting current diffuse
color.

For non-VBOs diffuse color is getting from current OpenGL context.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50827 954f8c5b-7b00-dc11-b283-0030488c597c
A bit alternative fix for bug mentioned in rev50826

We need to assign color space for generated images when it's empty.
Do this in add_ibuf_size function in cases image's color space is
empty.

So now color management is always called with correct color space.

P.S. At least it should. If there're more similar issues please
     let me know :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50828 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32628: Crash when selecting Channels of the image to draw icon - Compositor

Own regressions since color management merge commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50829 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32625 Zero area-sized faces caused jittered part. distrib. to crash

When appling a particle system to a face whose area size is zero,
the jitter distribution failed. fmod() produces a NaN value in this
case. This commit simply checks if the jitter offset (I guess that is
"jitoff" means) and only call psys_uv_to_w() if it's a real floating
point number.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50831 954f8c5b-7b00-dc11-b283-0030488c597c
minor update to panel templates/examples - the panel examples didnt show an operator and use `scene` rather then `sc` for the active scene name.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50833 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash joining objects with shape keys - own mistake when fixing another bug.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50834 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#32635] no viewport update when link and object to a scene

also comment unused static RNA functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50835 954f8c5b-7b00-dc11-b283-0030488c597c
fix for issue where you could easily make zero user datablocks (especially with masks which default to fake user).

- Make mask
- assign to image editor
- disable fake user

This would make the image space reference a zero user mask datablock which wouldn't be saved.

solve the bug by making mask and image assignments check the real usercount of the ID block (not taking into account fake user).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50836 954f8c5b-7b00-dc11-b283-0030488c597c
don't check the real usercount when drawing masks, this way fake user masks can be edited in the dope sheet. (was cause of masks mysteriously not showing in the dope sheet, making masks fake user by default made this more common an issue)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50837 954f8c5b-7b00-dc11-b283-0030488c597c
inserting mask keyframes wasn't redrawing with the dope sheet


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50838 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#32626] TIFF renders are limited to 8 bit even when we choose 16.
this is a regression with color management, TIFF's were always being written as 8bit

however the float buffer is assumed to be linear when converting from float to 16bit pixels per channel, so support for color management might need to be added here.


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