no remove double property lookups in ED_fileselect_set_params and redundant NULL check in file_main_area_draw.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59508 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Cleaning up the vsync code a little.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59509 954f8c5b-7b00-dc11-b283-0030488c597c
add some safety checks in debug mode to ensure sets/hashes aren't confused.


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

Commit 57760, June this year, broke Theme colors for Label Buttons.
All labels, in every editor or region, now were using same color.

These colors have to be derived from the Editor settings. Code for
this was mistakingly removed.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59511 954f8c5b-7b00-dc11-b283-0030488c597c
Remove (comment out) auto-generating png form svg (r59382) in CMake, handy but gives nasty "false changes" in svn. Let's try not to forget to update PNGs when needed, then!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59516 954f8c5b-7b00-dc11-b283-0030488c597c
Revert r59500, has too much drawbakcs in term of speed... This bug ([#36289]) is not really solvable for now, will mark it as todo. :/

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59517 954f8c5b-7b00-dc11-b283-0030488c597c
Fix uiList labels themed colors.
r57760 broke usual labels, and r59511 broke again uiList labels! :P Hopefully every one works as expected now!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59518 954f8c5b-7b00-dc11-b283-0030488c597c
internal changes to ghash/edgehash, reorganize to split out resizing the hash from insertion.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59520 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup (bitflags are *so much* easy to handle and clear as bit-shift operations than raw values!).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59521 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cmake Inkscape auto generate of SVG on OS X giving an error popup, the binary
that is found by find_program is a shim that doesn't take command line arguments.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59522 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup: move defines into anon enums, as suggested by Joshua, thx.

Note I let a few as defines for now (esp. base options are not clear to me, how they should be aranged in groups).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59523 954f8c5b-7b00-dc11-b283-0030488c597c
Remove dirty normals assert from drawobject.c

Dirty normals already being checked in DerivedMesh.c,
and this things really rather be localized in one
single place than being checked all over the code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59525 954f8c5b-7b00-dc11-b283-0030488c597c
Remove unused function NewBooleanMesh

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59526 954f8c5b-7b00-dc11-b283-0030488c597c
Don't check for an object mode that is excluded as a prerequisite for
entering this branch of code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59527 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36308] Custom hotkey "Set Object Mode" - "Object Mode" doesn't work properly

There was actually two different issues:
* mode and toggle options had "remanant" values, when e.g. you used MODE_EDIT/toggle, these would be used again with the newly defined keymap (which sets eg MODE_OBJECT/notoggle)... Defining those props as PROP_SKIP_SAVE fixed this.

* Toggling was not supported for MODE_OBJECT, fixed this (can indeed be handy to have a shortcut to toggle between current mode and Object one ;) ).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59530 954f8c5b-7b00-dc11-b283-0030488c597c
RNA fixes regarding dynamic array properties in functions parameters (reviewed by Brecht, thanks!):

* It was not clear that RNA_parameter_length_get() & co only affected dynamic properties, renamed them to RNA_parameter_dynamic_length_get() and such.

* Fixed RNA_function_find_parameter(), we can't use BLI_findstring() here, need to call RNA_property_identifier()!

* Fixed RNA_parameter_get() and RNA_parameter_set(), which were completely wrong for dynamic properties.

* Fixed RNA_parameter_dynamic_length_get/set_data(), they did not check the property was actually a dynamic one and were using again ugly blackmagic casting intead of ParameterDynAlloc structure!

* makesrna was still using an ugly hackish (and perhaps not always working) code when handling dynamic parameters, now synchronized with RNA_parameter_dynamic_length_get_data and RNA_parameter_get code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59531 954f8c5b-7b00-dc11-b283-0030488c597c
quiet warnings when building as a python module


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

Currently only circle and square, might be easily
extended in the future.

New primitives are creating at cursor location.
This also implied adding 2d cursor to space clip.

Also fix set 2D cursor location which didn't work
in image editor's mask mode since 2.67.

TODO: draw_image_cursor better be moved to some
      more generic file, but it's not so much
      important for now and might be solved later.

Thanks Campbell for the review!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59534 954f8c5b-7b00-dc11-b283-0030488c597c
This commit adds optional parameters for pyfunc implementations of RNA API (i.e. callbacks, e.g. draw functions of panels, uiLists, or exec/poll/etc. of operators). Thanks to Brecht for he review!

Any parameter after the first flagged with PROP_PYFUNC_OPTIONAL will be considered as optional, hence the python code does not have to define/use it. This will ease API evolutions by avoiding to break existing code when adding non-essential new parameters.

Note: this will need some update to API doc generation, patch is ready, will have it reviewed by Campbell asap.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59536 954f8c5b-7b00-dc11-b283-0030488c597c
Followup to r59536: make "is_argument_optional" available to py, and use it in API doc generation.

Thanks Campbell for the much better name suggestion!

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