Correction to previous commit

Better just use "strip", to be sure \r\n is also stripped.
This also corresponds to what happens with popen() results.
File Browser: autocomplete keeps focus in the file field when entering a folder.

There is a bunch of internal refactoring going on too:
* No longer use operators to handle these directory and file fields, only makes
  things more complicated than they should be.
* Handle autocomplete partial/full match deeper in the UI code
* Directory field still does not keep focus, that's for another time to fix,
  you can already do pretty quick keyboard only navigation with the file field.

Reviewed By: elubie

Differential Revision: http://developer.blender.org/D29
Fix errors and inconsistencies in confirmation popup removal.

* Improve some clip editor messages
* Remove popup for metastrips, seems unnecessary
* Renamed some variables for consistency
* Avoid unnecessary call to CTX_DATA_COUNT

Reviewed By: sergey, campbellbarton, aligorith

Differential Revision: http://developer.blender.org/D44
Move 2.6x versioning code to own file

Summary:
Makes readfile.c more clear and easier to navigate in.
We would need to do such a move when we'll do 2.70 bump
anyway. So better be prepared.

In fact, as soon 2.70 bumo is done i would think we'd
better create versioning_270 file and do version code
there. Otherwise readfile.c will grow up dramatically
again.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D60
Image wrapping for plane track in clip editor

Summary:
Now it's possible to assign an image to plane tracks
in clip editor. This image is only used for display
in clip editor and this image is being warped into
the plane track rectangle.

Main purpose of this is to get early feedback about
how good image warping matches the footage, before
clip goes to the compositor.

Pretty much straightforward change: just compute
homography from undeformed normalized frame corner
coordinates (unity square) to plane marker corners
and apply this matrix to opengl stack.

Still could improve behavior when perspective
plane transform is degenerate, but that's not so
much critical for now i'd say.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

CC: sebastian_k

Differential Revision: http://developer.blender.org/D57
Remove some extraneous glEnableClientState/glDisableClientState. This
part of the code is not interleaved with immediate mode drawing so they
are not necessary.
Woo Hoo. First git commit.

Changes for VC2013

Now, I can build Blender with VC2013 with Cycles, Collada, OpenExr,OpenImageIO disabled. Also, you need VC2008 sp1 installed to make old libs compatible.
D54: Added a filepath attribute to the read_homefile operator.

This attribute allows to open a blend file as an alternative
start-up file. The attribute is only available from python.
This is an example call:

    bpy.ops.wm.read_homefile(filepath='path/to/a/file.blend')

This patch also changes readfile.c to ensure that unintentionally
stored cursor states are not imported from the loaded file.
Fix T37566: KX_GameObject.resumeDynamics() was not properly restoring collision groups and masks.
Fix T36804: the property sensor when set to interval was causing a memory leak

The property sensor was using CValue::FindIdentifier(), which does an AddRef(). However,
the property sensor was not calling Release() when it was done with the value. This could
cause more leaks when used in conjunction with the copy property actuator since it would
really throw off ref counts.
Math Library: add functions cross_poly_v2, cross_tri_v2

also added utility macro for removing elements in the middle of an array
Code cleanup: minor changes to custom startup file property use
Geometry API: polyfill2d, ear clipping polygon filling functions.

Simple/predictable polygon filling functions (no hole support)
originally from libgdx which have some advantages over scanfill.

- always creates the same number of triangles (never any missing faces).
- gives same results for any affine transformation.
- doesn't give so many skinny faces by default.

made some changes for Blender.
- remove last ears first (less to memmove)
- step over the ears while clipping to avoid some verts becoming fans to most of the other.
BMesh/Mesh: replace scanfill with polyfill
Merge remote-tracking branch 'hm-blender/master'

* hm-blender/master:
  BMesh/Mesh: replace scanfill with polyfill
  Geometry API: polyfill2d, ear clipping polygon filling functions.
  Code cleanup: minor changes to custom startup file property use
  Math Library: add functions cross_poly_v2, cross_tri_v2
  Fix T36804: the property sensor when set to interval was causing a memory leak
  Fix T37566: KX_GameObject.resumeDynamics() was not properly restoring collision groups and masks.
  D54: Added a filepath attribute to the read_homefile operator.
  Woo Hoo. First git commit.
  Remove some extraneous glEnableClientState/glDisableClientState. This part of the code is not interleaved with immediate mode drawing so they are not necessary.
  Image wrapping for plane track in clip editor
  Move 2.6x versioning code to own file
  Fix errors and inconsistencies in confirmation popup removal.
  File Browser: autocomplete keeps focus in the file field when entering a folder.
  Correction to previous commit
Merge branch 'master' into mymods

* master:
  BMesh/Mesh: replace scanfill with polyfill
  Geometry API: polyfill2d, ear clipping polygon filling functions.
  Code cleanup: minor changes to custom startup file property use
  Math Library: add functions cross_poly_v2, cross_tri_v2
  Fix T36804: the property sensor when set to interval was causing a memory leak
  Fix T37566: KX_GameObject.resumeDynamics() was not properly restoring collision groups and masks.
  D54: Added a filepath attribute to the read_homefile operator.
  Woo Hoo. First git commit.
  Remove some extraneous glEnableClientState/glDisableClientState. This part of the code is not interleaved with immediate mode drawing so they are not necessary.
  Image wrapping for plane track in clip editor
  Move 2.6x versioning code to own file
  Fix errors and inconsistencies in confirmation popup removal.
  File Browser: autocomplete keeps focus in the file field when entering a folder.
  Correction to previous commit
Code Cleanup: softbody macro use (function calls and expressions within macros)
Code Cleanup: replace ABS() with fabsf() when used with float expressions.
Code Cleanup: make cpack into a function.
Fix for beauty option for triangulate (modifier and tool)