Fix [#33565]: Dynamic Paint modifier surfaces not copied

Dynamic Paint canvas surfaces were not copied with modifier.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53065 954f8c5b-7b00-dc11-b283-0030488c597c
Fix knife cut-through bug #33571.
The code to connect across a face didn't stop after it found one.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53066 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33551] End Caps on a curve array with subsurf crashes blender when entering Edit Mode

DM_to_bmesh_ex could merge a 'dm' into an existing BMesh, in that case CD_ORIGINDEX values needed to be set to ORIGINDEX_NONE.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53067 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33501] Grease pencil in OpenGL render

With the view3d 'Render Only' option, grease pencil wouldn't draw, but for OpenGL render it did.

Since grease pencil can be very useful in opengl renders, enable grease pencil drawing with 'Render Only' option in the viewport,
and add a checkbox in the grease pencil header not to draw (unchecking each layer is annoying and applies to all spaces).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53068 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#33441] Remove unneeded strcpy()'s from makesdna.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53069 954f8c5b-7b00-dc11-b283-0030488c597c
change to previous commit, better use existing flag.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53070 954f8c5b-7b00-dc11-b283-0030488c597c
don't draw the sequencer grease pencil panel when in the channel view or scopes.

also don't draw grease pencil over scopes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53071 954f8c5b-7b00-dc11-b283-0030488c597c
missed this recent commit, while drawing grease pencil, draw if 'Render Only' is on.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53072 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use 'const float *' when getting the 3d cursor and not editing it.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53073 954f8c5b-7b00-dc11-b283-0030488c597c
bpy/rna api: add support for classmethods.

So RNA can expose functions from the type, eg:
  bpy.types.Objects.some_function()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53074 954f8c5b-7b00-dc11-b283-0030488c597c
Added GPL header to sconscripts!
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53075 954f8c5b-7b00-dc11-b283-0030488c597c
Looks like r49508 did not remove everything... ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53076 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part #33534: Building proxies will remove strip animation

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53077 954f8c5b-7b00-dc11-b283-0030488c597c
Small tweak for using transparent+overlapping regions:

On mouse-over these regions now become active always (as if they were opaque).
This active state is used by many tools, or for drawing cursors.

Currently, all events (if not handled by button region) are passed on anyway to
the underlying region.

Visible errors were for example drawing the paint brush circle.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53078 954f8c5b-7b00-dc11-b283-0030488c597c
missed adding show_grease_pencil to node space in recent commit


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

Setup: 2 windows, 2 scenes, shared objects and groups.

Errors:
- editing in 1 window, didn't correctly update shared stuff in the other
  (like child - parent relations)
- deleting group members in 1 scene, could crash the other.

Fixes:
- On load, only a depsgraph was created for the "active" scene. Now it makes
  depsgraphs for all visible scenes.
- "DAG ID flushes" were only working on active scenes too, they now take
  the other visible into account as well.
- Delete object - notifier was only sent to the active scene.

All in all it's a real depsgraph fix (for once!) :) Using multi-window and
multi-scene setups now is more useful.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53082 954f8c5b-7b00-dc11-b283-0030488c597c
Version patch for reading old files (2.50 and before).

In 2.50 a new convention was added to save the filename in the .blend itself. 
This to allow recovery of temp saves.

In current svn, it made old files open as if it was a saved home file (not
storing the name in header, or in file history).

Note: file handling for all recovery, remapping etc is in need for cleanup.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53084 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix, IRC report.

With 2 windows, 2 scenes, linked objects:
- enter editmode in 1 window.
- the other window allowed to enter editmode too.
- and crash happened on exit editmode.

Since editmode is in Context (scene->obedit) a bad conflict arises.

New function BKE_object_is_in_editmode() returns this info outside of
context. Note I didn't use BMEdit_FromObject() because of the assert().

NOTE: contextual storage of editmode could need rework... five places:
- ob->mode / ob->restore_mode
- scene->object
- CTX_data_edit_object()
- BKE_object_is_in_editmode()
- view3d mode handling menu



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53085 954f8c5b-7b00-dc11-b283-0030488c597c
fix/workaround [#33493] checker de-select and edge loops

Checker de-select by default would give uneven selection on a circle, this isnt really a bug but the offset used would give unevenly spaced selection even if the 3rd vertex for eg could be evenly selected on a circle.

Change how the offset works so the active element always remains selected when the offset is set to zero, this tends to give more even de-selection.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53086 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33581] Vertex Color Layer

vertex colors were added to meshes with no faces whenver exiting/entering editmode, while in vertex paint mode outside of editmode. *(making a really big list of vertex colors!)


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