Commit Graph

43628 Commits

Author SHA1 Message Date
Ton Roosendaal
8914433cd0 Bug fix #28915 and #33538
Mac OS X trackpad and 'mighty mouse' fix.

An old commit from Damien in 2010 tried to make mighty mouse touches work as if
this is a scrollwheel. The error in that code was that the "kinetic scrolling"
feature failed. When releasing your fingers, the events passed on to Blender
then switched from "trackpad pan" to "mousewheel zoom".

This commit makes trackpads and mighty mouse behave identical. Only difference
is that trackpad panning needs 2 fingers, mighty mouse only one.

Note that trackpad and mighty mouse 3d zoom works with holding ctrl!

All works nice with this kinetic feature now. Fun :)
2012-12-20 12:01:15 +00:00
Ton Roosendaal
4e2bc939c1 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.
2012-12-20 11:14:52 +00:00
Sergey Sharybin
0d7e4f3229 Camera tracking: synchronize changes with own branch
Should be no functional changes.
2012-12-20 11:03:39 +00:00
Lukas Toenne
2f3d2483c3 Make the get_node_type method in Node subtype an actual classmethod by setting the new FUNC_USE_SELF_TYPE flag. 2012-12-20 09:49:15 +00:00
Lukas Toenne
a83cdfe41a 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. 2012-12-20 09:49:11 +00:00
Lukas Toenne
35c2267aee 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. 2012-12-20 09:33:12 +00:00
Thomas Dinges
b3dc1d585a 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
2012-12-20 08:54:37 +00:00
Morten Mikkelsen
2fcac424c0 add a comment 2012-12-20 05:07:14 +00:00
Morten Mikkelsen
6ccadbc6d6 must use permutation table 2012-12-20 05:03:00 +00:00
Campbell Barton
423994bf39 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.
2012-12-20 03:56:22 +00:00
Campbell Barton
e4728bf910 add a test to the addons loaded that tries to load all addons then lists addons that fail. 2012-12-20 03:10:30 +00:00
Campbell Barton
3c9f502049 py api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would allow any nonzero value. 2012-12-20 03:08:27 +00:00
Campbell Barton
3bc3e178b3 style cleanup 2012-12-20 00:29:31 +00:00
Brecht Van Lommel
54729df020 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
2012-12-19 21:17:16 +00:00
Ton Roosendaal
8d4c61a2ab Animation system small fix:
On browsing actions in DopeSheet editor, the animation state didn't update.
2012-12-19 18:36:20 +00:00
Bastien Montagne
be67de7cab More tweaks to WeighVG icon 2012-12-19 16:48:06 +00:00
Ton Roosendaal
eac2042fc0 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.
2012-12-19 16:45:47 +00:00
Ton Roosendaal
482630652b Bugfix, in 2.61.1
Overlapping regions now hide automatic when too little space is left.
2012-12-19 16:16:20 +00:00
Ton Roosendaal
9aa6698bd0 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.
2012-12-19 15:44:47 +00:00
Campbell Barton
cc23d4cd3e use DPI for scrollbar width 2012-12-19 15:22:39 +00:00
Campbell Barton
66cac9ba71 extrude individual was crashing. 2012-12-19 15:15:00 +00:00
Campbell Barton
9f9296761c patch [#33306] Default file format: PNG, 90% 2012-12-19 15:02:51 +00:00
Campbell Barton
17c5c9935c icon update [#33448] Adding Vector Sources for Icons
from:	Blender ICONS - v.2.5.08 (GPL).svg

also updated the shell script.
2012-12-19 14:57:01 +00:00
Sergey Sharybin
f472814e89 Change version char to 'a'. 2012-12-19 14:02:50 +00:00
Brecht Van Lommel
ec85a4370f UI DPI: use a sharper filter when scaling icons, when the scale matches a mipmap
level, this has no effect, it's for the zoom levels in between. There's a
tradeoff here between blurring and aliasing, I think this looks better.

Before: http://www.pasteall.org/pic/show.php?id=42090
After: http://www.pasteall.org/pic/show.php?id=42091
2012-12-19 12:51:43 +00:00
Sergey Sharybin
cdb6aad54c Multires baker: renamed Number of Rays to Samples after discussion with Brecht 2012-12-19 12:30:39 +00:00
Ton Roosendaal
1dbb84c1c9 UI DPI scaling fix:
2D views with scale prints (numbers over slider) now follow the text size.
2012-12-19 12:22:15 +00:00
Bastien Montagne
0d00741bf5 Sync (ui) names between composite node files and rna nodetree types (Pixelate was even missing from RNA!)
We really need Luckas' work, maintaining those two different stuff is completely stupid! :)
2012-12-19 11:56:10 +00:00
Ton Roosendaal
a970991da6 Icon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
locations. Makes default headers and menus always crisp.
2012-12-19 11:55:41 +00:00
Campbell Barton
56bfd3235c fix [#33616] Documentation not matching the behaviour of bmesh.utils
incorrect api docs
2012-12-19 11:18:08 +00:00
Bastien Montagne
10fdfb54b5 Minor enhancements to end message of build_deps.sh 2012-12-19 11:07:10 +00:00
Ton Roosendaal
bc9bbb02db Outliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Made them appear blurry.
2012-12-19 11:03:59 +00:00
Brecht Van Lommel
a4cb186df5 DPI: icons were still drawing with color fringing when scaled up/down, opengl
texture needs to be premul alpha for correct results.
2012-12-19 10:12:58 +00:00
Bastien Montagne
0a1f8ada34 Minor fix 2012-12-19 09:50:31 +00:00
Campbell Barton
2cb39ea9da use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup. 2012-12-19 09:45:56 +00:00
Campbell Barton
fbf4f57cd6 bmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh_copy(), gives ~30% overall speedup in my tests. 2012-12-19 09:13:06 +00:00
Sergey Sharybin
62988549a1 Multirs baker: support for threaded baking 2012-12-19 08:13:41 +00:00
Campbell Barton
ef665b3d18 dissallow access to the context while addons import and register.
Since the window manager is needed for keymaps this is kept as an exception.

some addons will need updating, but in every case I've seen addons should not be accessing the context while registering.
(bad stuff! - declaring the scene as a global variable - which crashes when the users loads a new file, manipulating the active object or scene... tsk tsk)
2012-12-19 07:27:23 +00:00
Campbell Barton
5837c7f092 fix error in recent addition - reporting property changes, setting None would crash. 2012-12-19 06:41:19 +00:00
Campbell Barton
192e00b0c9 code cleanup: use interp_v3_v3v3() 2012-12-19 04:59:47 +00:00
Campbell Barton
1f3e3b0d68 include cleanup 2012-12-19 04:49:32 +00:00
Campbell Barton
3134407c48 code cleanup: remove unneeded include's and rename some static functions in text_format_py.c 2012-12-19 04:23:02 +00:00
Campbell Barton
f43923d86d generalize formatting code so different formatters can be registered and each has their own source file,
Since we will likely have OSL formatting added soon.
2012-12-19 04:02:19 +00:00
Mitchell Stokes
bfde24a368 Fixing some messed up comments from r53146 and changing a C++ style comment in C code to a C style comment (from r53152). 2012-12-19 02:15:33 +00:00
Campbell Barton
acfe74351b improve info view property output for properties.
- Include RNA properties when checking for matches.
- Don't include the context's property store (these are normally set by the UI code and not accessible by a script author)

Note: added CTX_data_dir_get_ex() which has options for returning different members from the context.
2012-12-19 02:08:58 +00:00
Campbell Barton
0ddc77f913 code cleanup: warnings 2012-12-19 01:48:54 +00:00
Campbell Barton
2349370a51 fix for typo in r53145 2012-12-19 01:42:28 +00:00
Campbell Barton
efc75018d7 yet another fix-for-fix, missing NULL check in id_us_ensure_real() 2012-12-19 01:28:00 +00:00
Campbell Barton
f6c5a72e3f fix [#33606] Adding the Decimate modifier will crash Blender
own regression since 2.65 release.
2012-12-19 01:24:12 +00:00
Mitchell Stokes
f10dea7e3b BGE: Removing the VBO raster_storage option from the UI. 2012-12-18 21:19:15 +00:00