Cycles UI Code:
* Some more variable cleanup for old texture output. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54305 954f8c5b-7b00-dc11-b283-0030488c597c
The usual UI messages tweaks...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54306 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Fix [#34106] Deleting an object with Bullet Constraint crashes Blender

Constraints are deleted before rigid bodies so need to check if constraint
exists in case both the constraint and ridid body are on the same object.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54307 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Don't allow collision shape to be animated

While it's fun to be able to change collison shape while the simulation is
running it can cause crashes in some cases.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54308 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Fix [#34108] Rigid body with no polygons crashes blender

Fall back to using box shape in case creating shape from mesh fails.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54309 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Avoid always making passive objects kinematic

It's only needed when they're being transformed.
Also deactivate passive objects after transformation so they don't keep
acitvating deactivated objects.

Fixes issues with using "start deactivated".

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54310 954f8c5b-7b00-dc11-b283-0030488c597c
fix for valgrind warning - using uninitialized variable. Though in practice it didn't cause any problems.

Getting the 'CTX_data_main' while un-fullscreen'ing a space would do a context lookup into the view3d_context which had an uninitialized layer.
since view3d_context doesn't hold a 'main' member it never did anything but cleaner not to do context lookups while modifying the view.
- noticed while checking on a real bug :)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54311 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34113] operator_menu_enum() - Tooltip not showing descriptions

Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo().

add 'bl_property' to python operators which is assigned to OperatorType.prop when registering.

(api docs coming next)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54312 954f8c5b-7b00-dc11-b283-0030488c597c
add python api docstring for 'bpy.types.Operator.bl_property'

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54313 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34113] operator_menu_enum() - Tooltip not showing descriptions

second fix from this report which makes the menu show tips even when 'bl_property' isn't set.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54314 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34105] bake artifacts
different threads could allocate the mask buffer and overwrite the same pointer, regression since 2.65


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54315 954f8c5b-7b00-dc11-b283-0030488c597c
remove stringify macro from alloc's


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54316 954f8c5b-7b00-dc11-b283-0030488c597c
own recent change to triangulate bmesh operator stopped filling in mapping slot 'face_map.out', not used by blender its self but useful for scripts, enable this again.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54317 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashes

Issue was caused by couple of circumstances:

- Normal Map node requires tesselated faces to compute tangent space
- All temporary meshes needed for Cycles export were adding to G.main
- Undo pushes would temporary set meshes tessfaces to NULL
- Moving node will cause undo push and tree re-evaluate fr preview

All this leads to threading conflict between preview render and undo
system.

Solved it in  way that all temporary meshes are adding to that exact
Main which was passed to Cycles via BlendData. This required couple
of mechanic changes like adding extra parameter to *_add() functions
and adding some *_ex() functions to make it possible RNA adds objects
to Main passed to new() RNA function.

This was tricky to pass Main to RNA function and IMO that's not so
nice to pass main to function, so ended up with such decision:

- Object.to_mesh() will add temp mesh to G.main
- Added Main.meshes.new_from_object() which does the same as to_mesh,
  but adds temporary mesh to specified Main.

So now all temporary meshes needed for preview render would be added
to preview_main which does not conflict with undo pushes.

Viewport render shall not be an issue because object sync happens from
main thread in this case.

It could be some issues with final render, but that's not so much
likely to happen, so shall be fine.

Thanks to Brecht for review!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54318 954f8c5b-7b00-dc11-b283-0030488c597c
Attempt to fix collada compilation after recent commit

I don't have recent collada compiled here atm, so perhaps there're
more issues here.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54319 954f8c5b-7b00-dc11-b283-0030488c597c
Woops, forgot this in previous commit

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54320 954f8c5b-7b00-dc11-b283-0030488c597c
Tracking settings for new clip didn't match default reset

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54321 954f8c5b-7b00-dc11-b283-0030488c597c
* One more fix for Collada. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54322 954f8c5b-7b00-dc11-b283-0030488c597c
And one more "G.main" compile fix, this time for BGE ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54323 954f8c5b-7b00-dc11-b283-0030488c597c
Fix non-progressive lamps with multiple samples not giving correct intensity after
recent fix.

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