- remove redundant NULL checks from mallocn's local linked list functions.
- minor changes to warning cleanup.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47593 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: assign values to enums in DNA


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47595 954f8c5b-7b00-dc11-b283-0030488c597c
Mask editing: remove use_parent property and use check if paren't id is set instead

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47597 954f8c5b-7b00-dc11-b283-0030488c597c
Clip editor: cleanup up header

One side of change is related on making code easier to follow, due it started
being quite messy because of all in-lined mode/view checks. Now there's a bit
of code duplication, but it's much easier to see what's going on there.

Another side of patch is related on re-arranging elements in header in a way
that follows rule "depending elements are placed after elements they depends on".
This might be a bit against mostly-used-based elements placement, but now it's
much easier to figure out where to add new option. Also it fits better other
blender's areas such as image editor header, i.e.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47598 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31743: Applying Smooth modifier to a curve crashes Blender

Actually there were two different issues involved here:

- Recently enabled Smooth modifier wasn't actually designed for curves, so
  it in fact requires a bit bigger work to make it working.

  For now added check for object's typy in this modifier and if it's not
  mesh, it wouldn't try to use edges.

  The reason why it worked in 3d viewport is that creating DM from curve while
  displist is still ocntrcuting for would result in empty CDDM and that leads to
  not taking edges into account, only vertexCos passed to modifier would be used.

  This makes it behaving a bit differently from if it was a mesh, but still gives
  quite reasonable result. Would leave actual fix for a guy who enabled smooth
  modifier.

- Another issue is related on ensuring sculpt mask layer after applying modifier.
  This shall happen only for meshes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47599 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31748: Blender crashes when typing "al" after opening spacebar menu.

Crash was introduced by own refactoring of poll functions in clip editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47600 954f8c5b-7b00-dc11-b283-0030488c597c
Another fix for #31743: check for DM's verts number matches passed number of vertices

Now bevelled splines shall work in the same way as meshes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47601 954f8c5b-7b00-dc11-b283-0030488c597c
 * Added OpenCL kernel for bokeh blur
 * Uncomment COM_OPENCL_ENABLED from COM_defines.h to test



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47602 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own bug - evaluating past the last frame of a mask didnt  work at all.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47603 954f8c5b-7b00-dc11-b283-0030488c597c
support for subframe animation evaluation for masks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47604 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bug in point slide using freed memory when auto-keying.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47606 954f8c5b-7b00-dc11-b283-0030488c597c
Index: source/blender/gpu/intern/gpu_draw.c
===================================================================
--- source/blender/gpu/intern/gpu_draw.c	(revision 47568)
+++ source/blender/gpu/intern/gpu_draw.c	(working copy)
@@ -230,11 +230,12 @@
 	Image *ima, *curima;
 
 	int domipmap, linearmipmap;
+	int texpaint; /* store this so that new images created while texture painting won't be set to mipmapped */
 
 	int alphablend;
 	float anisotropic;
 	MTFace *lasttface;
-} GTS = {0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, 1, 0, -1, 1.f, NULL};
+} GTS = {0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, 1, 0, 0, -1, 1.f, NULL};
 
 /* Mipmap settings */
 
@@ -256,7 +257,7 @@
 
 static int gpu_get_mipmap(void)
 {
-	return GTS.domipmap;
+	return GTS.domipmap && !GTS.texpaint;
 }
 
 static GLenum gpu_get_mipmap_filter(int mag)
@@ -730,6 +731,8 @@
 	if (!GTS.domipmap)
 		return;
 
+	GTS.texpaint = !mipmap;
+
 	if (mipmap) {
 		for (ima=G.main->image.first; ima; ima=ima->id.next) {
 			if (ima->bindcode) {



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47608 954f8c5b-7b00-dc11-b283-0030488c597c
mask animation keys now editable in the dope sheet (duplicate, transform, delete, select- etc).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47610 954f8c5b-7b00-dc11-b283-0030488c597c
add listener in action space for mask changes so dopesheet redraws + other minor changes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47611 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31752: Select All By Layer seems not to work when object belongs to several layers

Added option which changes match policy from exact match and shared layers when
selecting objects by layer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47613 954f8c5b-7b00-dc11-b283-0030488c597c
Don't show physics properties in game engine conext

Also rename fluid panels to be more consistent with other simulations



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47614 954f8c5b-7b00-dc11-b283-0030488c597c
Update Bullet to version 2.80 (bullet svn revision 2537)

Remove Jamfiles and other unused files that stuck around during previous updates.

Add patches for local changes to the patches directory.

Update readme.txt, it had outdated infromation.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47615 954f8c5b-7b00-dc11-b283-0030488c597c
Particle Info node for Cycles. This can be used to access particle information in material shaders for dupli objects. For now only the particle Age and individual Lifetime (in frames) are supported, more attributes can be added when needed.

The particle data is stored in a separate texture if any of the dupli objects uses particle info nodes in shaders. To map dupli objects onto particles the store an additional particle_index value, which is different from the simple dupli object index (only visible particles, also works for particle dupli groups mode).

Some simple use cases on the code.blender.org blog:
http://code.blender.org/index.php/2012/05/particle-info-node/

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