Removing BLENDER_GAME from the COMPAT_ENGINES set for the sun lamp's Sky & Atmosphere panel since it isn't supported in the BGE.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51750 954f8c5b-7b00-dc11-b283-0030488c597c
Disallow collection add/remove/clear/move when drawing. - similar to how writing to attributes is disabled.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51752 954f8c5b-7b00-dc11-b283-0030488c597c
add option to select face by matching number of sides.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51753 954f8c5b-7b00-dc11-b283-0030488c597c
add the option to select Equal/Greater/Less when selecting similar.

Recently addons were submitted for review and this was the only advantage they had over blenders existing internal
select-similar tool.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51754 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: move select-similar bmesh operators into their own file since there are 3 operators here that share
utility functions with eachother but have nothing in common with other operators in bmo_utils.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51755 954f8c5b-7b00-dc11-b283-0030488c597c
bad naming, the bmesh operator only tags, not selects.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51756 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build for recent bmo commit (gcc wants a return value in any case! ;) ).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51758 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for own r51737.

Refactoring of draw code showed another problem: The MCol we want to draw may change without dm rebuild (e.g. when enabling solid textured option)! Also, choosing which MCol layer to use in GPU code is stupid, different draw modes use different layers/order of precedence!

Solved this by adding a new colType parameter to GPU_color_setup, and removing any 'color choosing' code from gpu_buffers.c.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51759 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes to select similar,
- replace ngon_fake_area() with generic call to BM_face_calc_area().
- add defvert_find_shared() utility function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51760 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: optimization to not compile shaders and load images that are not
used by any mesh/lamp/world.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51761 954f8c5b-7b00-dc11-b283-0030488c597c
fix for selection offset with indentation in the python console.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51762 954f8c5b-7b00-dc11-b283-0030488c597c
add in assert's to double check the line lenth is never <0


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51764 954f8c5b-7b00-dc11-b283-0030488c597c
rename subtype FILENAME --> FILE_NAME to match FILE_PATH, DIR_PATH


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51765 954f8c5b-7b00-dc11-b283-0030488c597c
when an invalid subtype is passed to a property, a list of valid subtypes is now included in the exception message.

from bug report [#33018], this avoids common mistakes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51766 954f8c5b-7b00-dc11-b283-0030488c597c
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3


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

- View now restricts to the actual region you work on. Makes zoom and pan nicer.
- Added HOME for reset view to 1:1 zoom level.

Also: fixed nasty bug in view2d code that checked validity of 2d views, only
showed (afaik) in the logic eidtor though.

Effect was that zoom in/out would weirdly jump when going across zoomlevel 1.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51768 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Adding support for Bullet's collision masks. Each object now has a collision mask and a collision group. Object A and object B collide if object A's groups is in object B's mask and object B's group is in object A's mask. In other words, the group defines what the object is (collision wise) and the group defines what the object can collide with.

The majority of this patch was provided by Kupoman with some edits from me and heavy testing by z0r.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51769 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup & re-use DNA pad var with new collision group object settings.


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