BGE: Fix for bug #33025 "Character physics object won't stop moving with simple motion actuator" reported by Jared Smith (jsmithketchup). Characters no longer use a simple translation change for ApplyMovement(), they instead delegate to the character controller's setWalkDirection(). The motion actuator now sets this to (0, 0, 0) on a negative pulse.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51799 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash in own recent commit to add comparison options for select-similar, missing NULL terminator item in the array.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51801 954f8c5b-7b00-dc11-b283-0030488c597c
minor edits to mesh operators

- Rename 'mesh.select_nth' operator menu item 'Every N Number of Verts' to 'Checker Deselect',
  since its not just de-selecting verts (works on edges and faces too) and the term 'checker' gives a better description of the result.

- Rename 'mesh.select_by_number_vertices' to 'mesh.select_face_by_sides', since this is a face selection tool, which wasnt obvious from its name.

also remove dissolve by type menu since the option has been removed from the operator and was giving an error.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51802 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error - vertex custom-data flag wasnt working with the decimator


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51804 954f8c5b-7b00-dc11-b283-0030488c597c
fix for possible buffer overflow in gpu_nodes_get_vertex_attributes() and hair_velocity_smoothing()
and a unlikely NULL pointer dereference in unlink_material_cb().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51805 954f8c5b-7b00-dc11-b283-0030488c597c
Bugreport - Christian Krupa in irc:

Curves behaved totally bad suddenly. Caused by Campbell code cleanup, replacing
this:

	/* this is for float inaccuracy */
	if (t < knots[0])
		t = knots[0];
	else if (t > knots[opp2]) 
		t = knots[opp2];


with:

	t = (t < knots[0]) ? knots[0] : knots[opp2];

Tss!




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51806 954f8c5b-7b00-dc11-b283-0030488c597c
remove BLI_utildefines from BKE_DerivedMesh.h header


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

TIMER events could get keymodifier set - in this case the user assigned
spacebar modifier for setting views (running smoothview timer)

Also: cleaned op old hacks from event checking code. 
The rule should be:

1) generate event properly, frozen state
2) pass on to handlers without exceptions or changing internal state

The only exception currently is for the "CLICK" (map key-release to unhandled
key-press).

Also: made --debug-event print OK. Slight cleanup in eventprinting in general.
It was putting the wmEvent state print in wrong place, doing it 4 or 8 times.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51808 954f8c5b-7b00-dc11-b283-0030488c597c
fix for long standing problem with blender 2.5x py api.
Removing data then accessing would allow invalid memory access and often crash.

Example:
  import bpy
  image = bpy.data.images.new(name="a", width=5, height=5)
  bpy.data.images.remove(image)
  print(image.name)

Now access to the removed data raises an error:
  ReferenceError: StructRNA of type Image has been removed

This is the same level of error checking that was done in blender 2.4x but was made difficult by RNA functions not having access to the PyObject's.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51809 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#33036] Invalid memory read in wm_handlers_do (valgrind warning)



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51810 954f8c5b-7b00-dc11-b283-0030488c597c
fix for release building


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51811 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for Hue/Sat/Val compositor node. This was using the wrong input socket for the color constant (Fac instead Image).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51812 954f8c5b-7b00-dc11-b283-0030488c597c
all library data now gets the PointerRNA's invalidated on removal.


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

Greasepencil mode 'hold d' was also inserting drivers (hotkey D) on mouse over.
The modal operator was default passing on all events, I made it swallowing it.
Doesn't seem to be affecting use at all.




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