Blender Git Loki

Kaikki Blender Git kommitit.

Page: 6109 / 8462

December 20, 2012, 11:14 (GMT)
Mac Retina fix:

Mouse coordinates were not mapped correctly for code that allows to use
multiple windows efficiently (mouse over not-active windows).

Apple's high-density display mode works a bit strange, requiring some hacks :/

- Desktop coordinate system (mouse pos and for windows) is as usual
(set by display resolution settings)
- However, the available pixels in a window is always on 'retina' level.
(full screen - 2880 wide, but window can be 1440 or 1920 wide)

In order to get this to work for opengl and Blender, we use internally the
coordinates on pixel level. That means that window positions and sizes have
to mappend in our code.

Once all issues for retinas have been tackled, I'll check on clean API for
it, so you can also use it in future for other high density screens.

December 20, 2012, 11:03 (GMT)
Camera tracking: synchronize changes with own branch

Should be no functional changes.
December 20, 2012, 09:49 (GMT)
Make the get_node_type method in Node subtype an actual classmethod by setting the new FUNC_USE_SELF_TYPE flag.
December 20, 2012, 09:49 (GMT)
Associate Node RNA subtypes with their respective bNodeType on registration. This has to be done in blenkernel, since RNA node types are actually registered before the node types. Future dynamic node types registered using the API will register their own explicit RNA types and don't need this hack.
December 20, 2012, 09:33 (GMT)
Support for actual class methods in the RNA/bpy. Previously all functions with FUNC_NO_SELF were treated as static methods, which is not sufficient for getting actual type information if the function can not be generated in advance in makesrna. Now the FUNC_USE_SELF_TYPE flag can be set in addition to FUNC_NO_SELF (if FUNC_NO_SELF is not set, FUNC_USE_SELF_TYPE has no effect). Such functions will be interpreted as class methods and must take a StructRNA pointer argument. This pointer is the same as the type member in PointerRNA, but can be passed without an actual data/id instance.
December 20, 2012, 08:54 (GMT)
Scons / Windows Release Builds:
* Don't put -release- string into the final .exe name.
blender-2.65-release-windows32.exe --> blender-2.65-windows32.exe
December 20, 2012, 07:57 (GMT)
Another big patch set by Bastien Montagne, thanks a lot!

* Made Freestyle optional (turned on by default).

* Fix for missing bpath.c updates in the previous merge of trunk changes.
December 20, 2012, 05:07 (GMT)
add a comment
December 20, 2012, 05:03 (GMT)
must use permutation table
December 20, 2012, 03:56 (GMT)
py api: add restrict state context manager (thats python's context not blenders context),
which restricts bpy.context and bpy.data.

enable this for loading scripts in 'startup' too.
December 20, 2012, 03:10 (GMT)
add a test to the addons loaded that tries to load all addons then lists addons that fail.
December 20, 2012, 03:08 (GMT)
py api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would allow any nonzero value.
December 20, 2012, 00:29 (GMT)
style cleanup
December 19, 2012, 21:17 (GMT)
Cycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
a size parameter between 0.0 and 1.0 that gives a angle of reflection between
0° and 90°, and a smooth parameter that gives and angle over which a smooth
transition from full to no reflection happens.

These work with global illumination and do importance sampling of the area within
the angle. Note that unlike most other BSDF's these are not energy conserving in
general, in particular if their weight is 1.0 and size > 2/3 (or 60°) they will
add more energy in each bounce.

Diffuse: http://www.pasteall.org/pic/show.php?id=42119
Specular: http://www.pasteall.org/pic/show.php?id=42120
December 19, 2012, 18:36 (GMT)
Animation system small fix:

On browsing actions in DopeSheet editor, the animation state didn't update.

December 19, 2012, 16:48 (GMT)
More tweaks to WeighVG icon
December 19, 2012, 16:45 (GMT)
Another patch for changes in file format...

- Since 2.50, the .blends have the current file name stored
- In versions up to 2.65.0 this didn't save for files saved from startup
(i.e. files saved without loading a file)

Code now adds the file name after all, except for recovery loads.


December 19, 2012, 16:16 (GMT)
Bugfix, in 2.61.1

Overlapping regions now hide automatic when too little space is left.

December 19, 2012, 15:44 (GMT)
UI DPI scaling:

Recoded the (2.65.1 version) region scale, which happened on loading files with
different saved size windows. Also scaling window itself was affected.

Old method: scaled region widths based on area/editor scaling factors.
That was leading to too small or too large button regions easily.

New method: region width/height now are in DPI control. Much nicer!
- On changing dpi, buttons remain visually same widths.
- On changing window sizes, the button views and zooms stick to exactly same.

Caveat: people who were using Blender with 'extreme' dpi setting, might find
the layouts slightly differ. Not sure if this is worth version patching...

Todo: overlapping regions that overlap together draw badly. Fix underway.

December 19, 2012, 15:22 (GMT)
use DPI for scrollbar width
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021