Fix [#33997] Units Scale in Metric mode displays wrong face area.

Also now display nice "area" units (maybe using "length" units was a perf matter, but anyway, you can't have more than a few tens of values displayed at a time, after that they become unreadable). Easy to undo anyway if we really want to keep ugly "10m" as area display!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54101 954f8c5b-7b00-dc11-b283-0030488c597c
bugfix for 33746 Unable to add Controller to objects correctly
(live from the global game jam Vancouver ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54102 954f8c5b-7b00-dc11-b283-0030488c597c
real fix for Logic Bricks UI smart controller (#33746)
previous commit (54102) actually reintroduces an old bug where Blender sigfaults when
the sensor and controllers are not from the active object.

The real fix for report #33746 is to clear the "object" property after the operator ran.
I'm not sure why when I call the operator from command line the property is cleared, but not
when I called it from C. Either way all should be working now.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54103 954f8c5b-7b00-dc11-b283-0030488c597c
Motion Path calculations for objects now takes rigidbodies sim effects into
account


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54104 954f8c5b-7b00-dc11-b283-0030488c597c
Porting over hotkeys for adding rigidbody objects (from original branch)

* Ctrl-R          = Add Active
* Ctrl-Shift-R = Add Passive
* Ctrl-Alt-R    = Remove


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54105 954f8c5b-7b00-dc11-b283-0030488c597c
Revert r54058, caused crash when adding paritcles in particle edit mode

MEM_recallocN() doesn't allocate memory when used on a null pointer.

Just revert commit since there is no real benefit to using
MEM_recallocN() in this case.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54108 954f8c5b-7b00-dc11-b283-0030488c597c
Check for deletion before moving vert in dyntopo collapse edge

Fixes [#33964] Dyntopo crash with edge collapse + undo
projects.blender.org/tracker/?func=detail&aid=33964&group_id=9&atid=498

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54109 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34005] blender will close immediately in debug mode on deleting objects

Was silly mistake from rigidbody merge, base was used after it's been
freed.

Now don't free base in BKE_scene_base_remove() and rename it to
BKE_scene_base_unlink().

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54110 954f8c5b-7b00-dc11-b283-0030488c597c
BGE bugfix: Material initial object color working in the game
The object color option in the materials always worked, however the initial color of the object
was never passed to the game.

We are now passing it only, only when the object's mesh has a material that has ((shade_flags & OB_COLOR)).
There reason to not always set the object color is probably due to performance (the m_bUseObjectColor
flag in KX_GameObject). This patch still respect that.

Bug report from Mike Pan, as part of our book nitty-gritties review work.
Bugfix during Vancouver Global Game Jam :)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54115 954f8c5b-7b00-dc11-b283-0030488c597c
Operators name "cleanup"
The operator names all show up in the Search button. As such is nicer if they
can all have the main words capitalized.

e.g. "Snap strips" should be "Snap Strips"
     "Copy to clipboard" should be "Copy to Clipboard"

This was done with a mix of bash tools, regex, and manual work because I'm too rushed into regex :)

+ fix bge stereo eye separation tooltip


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54116 954f8c5b-7b00-dc11-b283-0030488c597c
make MEM_reallocN and MEM_recallocN behave as libc's realloc() - alloc when receiving a NULL value.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54117 954f8c5b-7b00-dc11-b283-0030488c597c
remove redundant temp pointer assignment in AVI_write_frame.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54118 954f8c5b-7b00-dc11-b283-0030488c597c
Very old todo: Packed file UI

- The "ID" buttons (for browse images, for example) now show a Pack icon, for packed
  Images. Using this button allows unpack.

- Pack and unpack operations now give a Info report on what happened.

- Not restored yet: option to set "AutoPack".




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54120 954f8c5b-7b00-dc11-b283-0030488c597c
Windows compile fix:
* r54117 broke Windows, __func__ not declared. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54121 954f8c5b-7b00-dc11-b283-0030488c597c
Fix drivers and shape keys not handling subframes / frame mapping properly.

Change Scene.frame_set so that it ensures subframe in range [0,1[ as Blender
expects, otherwise some things like physics point cache lookups don't get
evaluated properly.

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

Oops! So there was an Unpack button, hidden in the Nkey properties of Image window.
This was drawn next to greyed-out buttons, didn't notice it well.

I also now found the unpack() menu in editors/util, and there's an Image unpack op.
Also the RNA api has an unpack!

Will remove the generic unpack op, and add a sound and vfont unpack instead.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54123 954f8c5b-7b00-dc11-b283-0030488c597c
Bunch of fixes for UI messages.

Also generate rigid body constraint types in py bullet code from RNA enum values (simpler than having to sync the code when something is changed here!).

Side note: RNA API about icons still needs to expose icons for enum values, and conversion funcs between icon_name and icon_value!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54124 954f8c5b-7b00-dc11-b283-0030488c597c
Gah, sorry, this one should have stayed conjugated :/

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54125 954f8c5b-7b00-dc11-b283-0030488c597c
BGE UI: removing "use_occlusion_culling" from the ui
(and marking rna as deprecated)

I talked with Benoit Bolsee and Mitchell Stokes and they both agreed that
the feature should be removed.

In case someone was actually using it the rna is still available. But next
release we remove both the rna, the DNA and the flag in the code.

I did a simple benchmark with tons of cubes, and the DBVT culling (use_occlusion_culling=True)
always perform better than when it's off. Even when no occluder objects are in the scene.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54126 954f8c5b-7b00-dc11-b283-0030488c597c
Activate partial redraw of non-power of two textures. This looks like
it's working as expected out of the box. I hope nothing breaks.

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