blender.git
6 years agoFix cycles aliasing warnings caused by motion blur transforms.
Brecht Van Lommel [Fri, 21 Dec 2012 10:26:48 +0000 (10:26 +0000)]
Fix cycles aliasing warnings caused by motion blur transforms.

6 years agoBug fix #33639
Ton Roosendaal [Fri, 21 Dec 2012 10:15:12 +0000 (10:15 +0000)]
Bug fix #33639

Material Texture blend modes Screen, Overlay and Multiply didn't respect
the alpha for textures... an error I could trace back to 2004 even.

Obviously the fix should be done, but it might change the appearance of
renders somewhat. Will keep an eye open if this is worth ugly
version-patching.

Now: image textures with alpha, will only apply the blend modes
respecting the alpha values.

6 years agoBuildbot: disable Jack for now, it doesn't work when linked statically
Sergey Sharybin [Fri, 21 Dec 2012 09:37:43 +0000 (09:37 +0000)]
Buildbot: disable Jack for now, it doesn't work when linked statically

No easy build configuration fix for this, need to be switched to more
like a plugin system to support jack.

6 years agoFix #33640: Blender crashes when I click on "Connect Hair" in "Particles" pannel
Sergey Sharybin [Fri, 21 Dec 2012 09:27:39 +0000 (09:27 +0000)]
Fix #33640: Blender crashes when I click on "Connect Hair" in "Particles" pannel

Issue was caused by disabled particle system modifier, now connect hair
will check on that and give an error message if modifier is disabled.

6 years agominor bmesh improvements
Campbell Barton [Fri, 21 Dec 2012 07:28:14 +0000 (07:28 +0000)]
minor bmesh improvements
- use 2 omp sections for vert -> (edge, face) selection flushing.
- dont use face-loop iterator for cddm_from_bmesh_ex conversion to give some speedup (some modifiers use this).
- use float(*)[3] for functions that return coords.

6 years agospeedup for face tessellation:
Campbell Barton [Fri, 21 Dec 2012 07:24:31 +0000 (07:24 +0000)]
speedup for face tessellation:
- quads, tris now use direct pointer access rather then iterators.
- for ngons also avoid iterator, just loop over the loops.

also minor change, use floorf rather then floor for ED_view3d_project_short_ex, ED_view3d_project_int_ex

6 years agoCode cleanup
Joshua Leung [Fri, 21 Dec 2012 06:17:20 +0000 (06:17 +0000)]
Code cleanup

* "ad" -> "adt": use proper var names for AnimData
* Replacing some flattened loops with the cleaner for-loop syntax

6 years agofix own error in bmesh/openmp unhiding, set BM_OMP_LIMIT to 0 so we can spot these...
Campbell Barton [Fri, 21 Dec 2012 06:06:17 +0000 (06:06 +0000)]
fix own error in bmesh/openmp unhiding, set BM_OMP_LIMIT to 0 so we can spot these cases more easily (will change before release).

6 years agoCode cleanup - Replacing 0/1 with boolean constants
Joshua Leung [Fri, 21 Dec 2012 05:57:37 +0000 (05:57 +0000)]
Code cleanup - Replacing 0/1 with boolean constants

6 years agoBugfix [#33623] Missing labels in UI for Expanded Polynomial FModifier
Joshua Leung [Fri, 21 Dec 2012 05:55:17 +0000 (05:55 +0000)]
Bugfix [#33623] Missing labels in UI for Expanded Polynomial FModifier

Fix for second issue in the UI for this FModifier, where the "x" would not be
shown for order=1 where DPI >= 88 and Text AA is off, as the label sizes used
were too small.

6 years agoreplace MIN/MAX 3,4 with inline functions
Campbell Barton [Fri, 21 Dec 2012 05:07:26 +0000 (05:07 +0000)]
replace MIN/MAX 3,4 with inline functions

6 years agoBugfix [#33623] UI for Factored Polynomial Generator FModifiers drawing
Joshua Leung [Fri, 21 Dec 2012 05:03:47 +0000 (05:03 +0000)]
Bugfix [#33623] UI for Factored Polynomial Generator FModifiers drawing
incorrectly

* Plus signs were used between factors instead of multiplication. These now use
the times symbol
* Fixed alignment problem for last factor being more spread out

6 years agofix own regression in 2.65 [#33643] Rotation does not work at certain zoom level
Campbell Barton [Fri, 21 Dec 2012 03:49:47 +0000 (03:49 +0000)]
fix own regression in 2.65 [#33643] Rotation does not work at certain zoom level

caused by not projecting points behind the perspective view,
even though this worked in 2.64 the values were flipped (rotating direction was reversed and the center point was flipped).

added V3D_PROJ_TEST_CLIP_NEAR, when omitted ED_view3d_project_*** will project points from behind a perspective view plane.

6 years agopatches from fedora:
Campbell Barton [Fri, 21 Dec 2012 03:02:36 +0000 (03:02 +0000)]
patches from fedora:
blender-2.64-64bit.patch
blender-2.64a-big-endian.patch
by Jochen@herr-schmitt.de

6 years agoDDS compressed textures now make use of the anisotropic filtering setting.
Mitchell Stokes [Fri, 21 Dec 2012 02:49:15 +0000 (02:49 +0000)]
DDS compressed textures now make use of the anisotropic filtering setting.

6 years agocorrect ed_view3d_project__internal() was unnecessarily casting (float -> short ...
Campbell Barton [Fri, 21 Dec 2012 02:36:07 +0000 (02:36 +0000)]
correct ed_view3d_project__internal() was unnecessarily casting (float -> short -> float).

6 years agoBGE: Adding a Python interface for handling joysticks without needing logic bricks...
Mitchell Stokes [Fri, 21 Dec 2012 02:28:59 +0000 (02:28 +0000)]
BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like:

if bge.logic.joysticks[0]:
    activate_player_one()

if bge.logic.joysticks[1]:
    activate_player_two()

etc..

The interface exposed by SCA_PythonJoystick is very similar to the joystick logic brick except for one key difference: axis values are normalized to a -1.0 to 1.0 range instead of -32767 to 32767, which is what the logic brick exposed.

6 years agominor cleanup to ui_get_but_vectorf / ui_set_but_vectorf, change the vector with...
Campbell Barton [Fri, 21 Dec 2012 00:11:45 +0000 (00:11 +0000)]
minor cleanup to ui_get_but_vectorf / ui_set_but_vectorf, change the vector with one function call if its size 3.

6 years agoCycles: reduce memory usage of instanced objects by about 40%, as long as the
Brecht Van Lommel [Thu, 20 Dec 2012 19:26:57 +0000 (19:26 +0000)]
Cycles: reduce memory usage of instanced objects by about 40%, as long as the
motion vector pass is not enabled.

6 years agoUI fixes, from the todo:
Ton Roosendaal [Thu, 20 Dec 2012 19:18:46 +0000 (19:18 +0000)]
UI fixes, from the todo:

- Button panel animation didn't work for 3D View properties and similar regions.
- Akey on View3d overlapping panel: was accidentally passed on as event to the main window.

6 years agoBugfix, irc collection:
Ton Roosendaal [Thu, 20 Dec 2012 18:18:09 +0000 (18:18 +0000)]
Bugfix, irc collection:

Copy/Paste from and to color swatches now includes alpha.
Buttons without alpha have this value on '1' on copy.

6 years agoRestored old hack to open/close panels on A-key.
Ton Roosendaal [Thu, 20 Dec 2012 18:04:06 +0000 (18:04 +0000)]
Restored old hack to open/close panels on A-key.
Notes in code:

- This has to become a decent handler
- Actually "A" should open/close all?

Currently, Enter key does open/close too, but only on headers.
This because Enter on a button gets handled by buttons... that's
why the Akey was proposed :)

6 years agoSmall fix in drawing 'selection circle' in outliner. It wasn't circular.
Ton Roosendaal [Thu, 20 Dec 2012 17:40:30 +0000 (17:40 +0000)]
Small fix in drawing 'selection circle' in outliner. It wasn't circular.

6 years agoUI todo:
Ton Roosendaal [Thu, 20 Dec 2012 16:50:39 +0000 (16:50 +0000)]
UI todo:

- Recoded soft shadow drawing for menus, giving better predictable results
  (and round off nicer on top side, was looking bad still)
- Brought it under DPI control
- Added Theme setting to control size and strength for it.

Max size 24 pix:
http://wiki.blender.org/index.php/File:MenuShadow.png

6 years agoBetter cursor centering for text editor
Sergey Sharybin [Thu, 20 Dec 2012 16:37:07 +0000 (16:37 +0000)]
Better cursor centering for text editor

6 years agoFix #33630: DDS compressed textures were not actually using mipmaps for minification.
Brecht Van Lommel [Thu, 20 Dec 2012 15:49:59 +0000 (15:49 +0000)]
Fix #33630: DDS compressed textures were not actually using mipmaps for minification.

6 years agoFix #33629: DDS DXT5 with alpha not loaded correctly, Y flipping code was wrong.
Brecht Van Lommel [Thu, 20 Dec 2012 15:45:42 +0000 (15:45 +0000)]
Fix #33629: DDS DXT5 with alpha not loaded correctly, Y flipping code was wrong.

6 years agoBug fix:
Ton Roosendaal [Thu, 20 Dec 2012 14:45:56 +0000 (14:45 +0000)]
Bug fix:

Laptop trackpad scroll was inverted for 3d window.
Now movement is consistent among editors and follows system prefs.

6 years agoChange region drawing callbacks to work much closer to how blender manages them inter...
Campbell Barton [Thu, 20 Dec 2012 13:29:58 +0000 (13:29 +0000)]
Change region drawing callbacks to work much closer to how blender manages them internally.
- yes, this does break scripts, but the api is marked experimental.

ED_region_draw_cb_activate() adds a callback to a region type whereas the api made it look like the callback was being added to the region instance.
Use a class method on bpy.types.Space to manage region drawing, eg.

was:
  self._handle = context.region.callback_add(draw_callback_px, args, 'POST_PIXEL')

is now:
  self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL')

6 years agoUpdated icon svg and bitmaps. Now has the movieclip editor again :)
Ton Roosendaal [Thu, 20 Dec 2012 12:56:46 +0000 (12:56 +0000)]
Updated icon svg and bitmaps. Now has the movieclip editor again :)

6 years agoBug fix #28915 and #33538
Ton Roosendaal [Thu, 20 Dec 2012 12:01:15 +0000 (12:01 +0000)]
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 :)

6 years agoMac Retina fix:
Ton Roosendaal [Thu, 20 Dec 2012 11:14:52 +0000 (11:14 +0000)]
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.

6 years agoCamera tracking: synchronize changes with own branch
Sergey Sharybin [Thu, 20 Dec 2012 11:03:39 +0000 (11:03 +0000)]
Camera tracking: synchronize changes with own branch

Should be no functional changes.

6 years agoMake the get_node_type method in Node subtype an actual classmethod by setting the...
Lukas Toenne [Thu, 20 Dec 2012 09:49:15 +0000 (09:49 +0000)]
Make the get_node_type method in Node subtype an actual classmethod by setting the new FUNC_USE_SELF_TYPE flag.

6 years agoAssociate Node RNA subtypes with their respective bNodeType on registration. This...
Lukas Toenne [Thu, 20 Dec 2012 09:49:11 +0000 (09:49 +0000)]
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.

6 years agoSupport for actual class methods in the RNA/bpy. Previously all functions with FUNC_N...
Lukas Toenne [Thu, 20 Dec 2012 09:33:12 +0000 (09:33 +0000)]
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.

6 years agoScons / Windows Release Builds:
Thomas Dinges [Thu, 20 Dec 2012 08:54:37 +0000 (08:54 +0000)]
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

6 years agoadd a comment
Morten Mikkelsen [Thu, 20 Dec 2012 05:07:14 +0000 (05:07 +0000)]
add a comment

6 years agomust use permutation table
Morten Mikkelsen [Thu, 20 Dec 2012 05:03:00 +0000 (05:03 +0000)]
must use permutation table

6 years agopy api: add restrict state context manager (thats python's context not blenders context),
Campbell Barton [Thu, 20 Dec 2012 03:56:22 +0000 (03:56 +0000)]
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.

6 years agoadd a test to the addons loaded that tries to load all addons then lists addons that...
Campbell Barton [Thu, 20 Dec 2012 03:10:30 +0000 (03:10 +0000)]
add a test to the addons loaded that tries to load all addons then lists addons that fail.

6 years agopy api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would...
Campbell Barton [Thu, 20 Dec 2012 03:08:27 +0000 (03:08 +0000)]
py api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would allow any nonzero value.

6 years agostyle cleanup
Campbell Barton [Thu, 20 Dec 2012 00:29:31 +0000 (00:29 +0000)]
style cleanup

6 years agoCycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
Brecht Van Lommel [Wed, 19 Dec 2012 21:17:16 +0000 (21:17 +0000)]
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

6 years agoAnimation system small fix:
Ton Roosendaal [Wed, 19 Dec 2012 18:36:20 +0000 (18:36 +0000)]
Animation system small fix:

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

6 years agoMore tweaks to WeighVG icon
Bastien Montagne [Wed, 19 Dec 2012 16:48:06 +0000 (16:48 +0000)]
More tweaks to WeighVG icon

6 years agoAnother patch for changes in file format...
Ton Roosendaal [Wed, 19 Dec 2012 16:45:47 +0000 (16:45 +0000)]
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.

6 years agoBugfix, in 2.61.1
Ton Roosendaal [Wed, 19 Dec 2012 16:16:20 +0000 (16:16 +0000)]
Bugfix, in 2.61.1

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

6 years agoUI DPI scaling:
Ton Roosendaal [Wed, 19 Dec 2012 15:44:47 +0000 (15:44 +0000)]
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.

6 years agouse DPI for scrollbar width
Campbell Barton [Wed, 19 Dec 2012 15:22:39 +0000 (15:22 +0000)]
use DPI for scrollbar width

6 years agoextrude individual was crashing.
Campbell Barton [Wed, 19 Dec 2012 15:15:00 +0000 (15:15 +0000)]
extrude individual was crashing.

6 years agopatch [#33306] Default file format: PNG, 90%
Campbell Barton [Wed, 19 Dec 2012 15:02:51 +0000 (15:02 +0000)]
patch [#33306] Default file format: PNG, 90%

6 years agoicon update [#33448] Adding Vector Sources for Icons
Campbell Barton [Wed, 19 Dec 2012 14:57:01 +0000 (14:57 +0000)]
icon update [#33448] Adding Vector Sources for Icons
from: Blender ICONS - v.2.5.08 (GPL).svg

also updated the shell script.

6 years agoChange version char to 'a'.
Sergey Sharybin [Wed, 19 Dec 2012 14:02:50 +0000 (14:02 +0000)]
Change version char to 'a'.

6 years agoUI DPI: use a sharper filter when scaling icons, when the scale matches a mipmap
Brecht Van Lommel [Wed, 19 Dec 2012 12:51:43 +0000 (12:51 +0000)]
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

6 years agoMultires baker: renamed Number of Rays to Samples after discussion with Brecht
Sergey Sharybin [Wed, 19 Dec 2012 12:30:39 +0000 (12:30 +0000)]
Multires baker: renamed Number of Rays to Samples after discussion with Brecht

6 years agoUI DPI scaling fix:
Ton Roosendaal [Wed, 19 Dec 2012 12:22:15 +0000 (12:22 +0000)]
UI DPI scaling fix:

2D views with scale prints (numbers over slider) now follow the text size.

6 years agoSync (ui) names between composite node files and rna nodetree types (Pixelate was...
Bastien Montagne [Wed, 19 Dec 2012 11:56:10 +0000 (11:56 +0000)]
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! :)

6 years agoIcon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
Ton Roosendaal [Wed, 19 Dec 2012 11:55:41 +0000 (11:55 +0000)]
Icon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
locations. Makes default headers and menus always crisp.

6 years agofix [#33616] Documentation not matching the behaviour of bmesh.utils
Campbell Barton [Wed, 19 Dec 2012 11:18:08 +0000 (11:18 +0000)]
fix [#33616] Documentation not matching the behaviour of bmesh.utils

incorrect api docs

6 years agoMinor enhancements to end message of build_deps.sh
Bastien Montagne [Wed, 19 Dec 2012 11:07:10 +0000 (11:07 +0000)]
Minor enhancements to end message of build_deps.sh

6 years agoOutliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Ton Roosendaal [Wed, 19 Dec 2012 11:03:59 +0000 (11:03 +0000)]
Outliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Made them appear blurry.

6 years agoDPI: icons were still drawing with color fringing when scaled up/down, opengl
Brecht Van Lommel [Wed, 19 Dec 2012 10:12:58 +0000 (10:12 +0000)]
DPI: icons were still drawing with color fringing when scaled up/down, opengl
texture needs to be premul alpha for correct results.

6 years agoMinor fix
Bastien Montagne [Wed, 19 Dec 2012 09:50:31 +0000 (09:50 +0000)]
Minor fix

6 years agouse BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces...
Campbell Barton [Wed, 19 Dec 2012 09:45:56 +0000 (09:45 +0000)]
use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup.

6 years agobmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh...
Campbell Barton [Wed, 19 Dec 2012 09:13:06 +0000 (09:13 +0000)]
bmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh_copy(), gives ~30% overall speedup in my tests.

6 years agoMultirs baker: support for threaded baking
Sergey Sharybin [Wed, 19 Dec 2012 08:13:41 +0000 (08:13 +0000)]
Multirs baker: support for threaded baking

6 years agodissallow access to the context while addons import and register.
Campbell Barton [Wed, 19 Dec 2012 07:27:23 +0000 (07:27 +0000)]
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)

6 years agofix error in recent addition - reporting property changes, setting None would crash.
Campbell Barton [Wed, 19 Dec 2012 06:41:19 +0000 (06:41 +0000)]
fix error in recent addition - reporting property changes, setting None would crash.

6 years agocode cleanup: use interp_v3_v3v3()
Campbell Barton [Wed, 19 Dec 2012 04:59:47 +0000 (04:59 +0000)]
code cleanup: use interp_v3_v3v3()

6 years agoinclude cleanup
Campbell Barton [Wed, 19 Dec 2012 04:49:32 +0000 (04:49 +0000)]
include cleanup

6 years agocode cleanup: remove unneeded include's and rename some static functions in text_form...
Campbell Barton [Wed, 19 Dec 2012 04:23:02 +0000 (04:23 +0000)]
code cleanup: remove unneeded include's and rename some static functions in text_format_py.c

6 years agogeneralize formatting code so different formatters can be registered and each has...
Campbell Barton [Wed, 19 Dec 2012 04:02:19 +0000 (04:02 +0000)]
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.

6 years agoFixing some messed up comments from r53146 and changing a C++ style comment in C...
Mitchell Stokes [Wed, 19 Dec 2012 02:15:33 +0000 (02:15 +0000)]
Fixing some messed up comments from r53146 and changing a C++ style comment in C code to a C style comment (from r53152).

6 years agoimprove info view property output for properties.
Campbell Barton [Wed, 19 Dec 2012 02:08:58 +0000 (02:08 +0000)]
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.

6 years agocode cleanup: warnings
Campbell Barton [Wed, 19 Dec 2012 01:48:54 +0000 (01:48 +0000)]
code cleanup: warnings

6 years agofix for typo in r53145
Campbell Barton [Wed, 19 Dec 2012 01:42:28 +0000 (01:42 +0000)]
fix for typo in r53145

6 years agoyet another fix-for-fix, missing NULL check in id_us_ensure_real()
Campbell Barton [Wed, 19 Dec 2012 01:28:00 +0000 (01:28 +0000)]
yet another fix-for-fix, missing NULL check in id_us_ensure_real()

6 years agofix [#33606] Adding the Decimate modifier will crash Blender
Campbell Barton [Wed, 19 Dec 2012 01:24:12 +0000 (01:24 +0000)]
fix [#33606] Adding the Decimate modifier will crash Blender

own regression since 2.65 release.

6 years agoBGE: Removing the VBO raster_storage option from the UI.
Mitchell Stokes [Tue, 18 Dec 2012 21:19:15 +0000 (21:19 +0000)]
BGE: Removing the VBO raster_storage option from the UI.

6 years agoBGE: Some as of yet unmerged work I did in the Swiss branch. These changes include:
Mitchell Stokes [Tue, 18 Dec 2012 20:56:25 +0000 (20:56 +0000)]
BGE: Some as of yet unmerged work I did in the Swiss branch. These changes include:
  * Cleaning up the conversion code to avoid a per-face material conversion. Materials are now stored in buckets and only converted if a new material is found. This replaces some of Campbell's earlier work on the subject. His work wasn't as thorough, but it was much safer for a release.
  * Shaders are only compiled for LibLoaded materials once. Before they could be compiled twice, which could really slow things down.
  * Refactoring the rasterizer code to use a strategy design pattern to handle different geometry rendering methods such as immediate mode, vertex arrays and vertex buffer objects. VBOs are added, but they will be disabled in a following commit since they are still slower than vertex arrays with display lists. However, VBOs are still useful for mobile, so it's good to keep them around.
  * Better multi-uv support. The BGE should now be able to handle more than two UV layers, which should help it better match the viewport.

6 years agoDPI: fix wrong scaling of editor type choosing buttons, and for menu arrows
Brecht Van Lommel [Tue, 18 Dec 2012 20:00:52 +0000 (20:00 +0000)]
DPI: fix wrong scaling of editor type choosing buttons, and for menu arrows
overlapping or being too close to icons in small buttons.

6 years agoIcons now draw good again!
Ton Roosendaal [Tue, 18 Dec 2012 19:35:54 +0000 (19:35 +0000)]
Icons now draw good again!

- Exported via Inkscape a 16 and 32 pixel bitmap version
- Use these as mipmap levels for OpenGL texture drawing.
- Changed code to get right sizes for drawing icons - better than last week's method.

Todo:

- Custom icons don't work yet (old one)
- Missing icons in the svg
- The .sh script for inkscape needs changed to support this
  (now do manual saving)

6 years agoVarious minor fixes to i18n code (mostly, translation of enum items' tooltips was...
Bastien Montagne [Tue, 18 Dec 2012 18:25:48 +0000 (18:25 +0000)]
Various minor fixes to i18n code (mostly, translation of enum items' tooltips was wrongly bound to iface option, not tooltips one, and recent changes in r53119 were incorectly using BLF_pgettext, made them simpler by using CTX_IFACE_ macro).

Also fixed CTX_FOO_ macros when building without i18n, those were kinda wrong.

And hid i18n ui section in userpreferences when built without its support too.

6 years agoAdding "build_options" to bpy.app, a frozenset containing strings matching optional...
Bastien Montagne [Tue, 18 Dec 2012 18:02:20 +0000 (18:02 +0000)]
Adding "build_options" to bpy.app, a frozenset containing strings matching optional feature's build defines (like 'FFMPEG', 'MOD_BOOLEAN', 'INTERNATIONAL', etc.) for all enabled elements.

Note I tried to select all interesting defines, but this might be extended if needed...

6 years agoMade motion tracking data aware of DPI in clip editor.
Sergey Sharybin [Tue, 18 Dec 2012 17:47:05 +0000 (17:47 +0000)]
Made motion tracking data aware of DPI in clip editor.

Also synchronized tracking dopesheet channels height/spacing with fcurve dopesheet.

6 years agoFix #33586: Encoding to mpeg4 makes first frame(s) blocky
Sergey Sharybin [Tue, 18 Dec 2012 17:46:59 +0000 (17:46 +0000)]
Fix #33586: Encoding to mpeg4 makes first frame(s) blocky

Issue was caused by rc_initial_buffer_occupancy being set for context
Commented this option for now -- it's not used in ffmpeg.c.

Now encoding seems to be working nice for MPEG4 and other codecs as well.

However, if there're some gurus around please check :)

6 years agoMultires baker: made octree aware of user-defined resolution in performance panel
Sergey Sharybin [Tue, 18 Dec 2012 17:46:54 +0000 (17:46 +0000)]
Multires baker: made octree aware of user-defined resolution in performance panel

6 years agoMultires baker: noneed to tag display as invalid after every flushed pixel
Sergey Sharybin [Tue, 18 Dec 2012 17:46:48 +0000 (17:46 +0000)]
Multires baker: noneed to tag display as invalid after every flushed pixel

6 years agoAmbient occlusion baker from multi-resolution mesh
Sergey Sharybin [Tue, 18 Dec 2012 17:46:42 +0000 (17:46 +0000)]
Ambient occlusion baker from multi-resolution mesh

This implements AO baking directly from multi-resolution mesh with much
less memory overhead than regular baker.

Uses rays distribution implementation from Morten Mikkelsen, raycast
is based on RayObject also used by Blender Internal.

Works in single-thread yet, multi-threading would be implemented later.

6 years agoMove multires baker into own file in render/
Sergey Sharybin [Tue, 18 Dec 2012 17:46:26 +0000 (17:46 +0000)]
Move multires baker into own file in render/

Currently will only keep object editor a bit clearer, but in
the future will be needed because of using some internal renderer
data structures.

6 years agofix for crash in recent changes, missing NULL check
Campbell Barton [Tue, 18 Dec 2012 17:06:31 +0000 (17:06 +0000)]
fix for crash in recent changes, missing NULL check

6 years agomake sure color picker and color swatch buttons have rnaindex of -1.
Campbell Barton [Tue, 18 Dec 2012 17:00:49 +0000 (17:00 +0000)]
make sure color picker and color swatch buttons have rnaindex of -1.
Some were 0 some -1, but this messed up reporting - making it think that only red was being changed for each button.

6 years agofix for crash in own commit - happend when changing userprefs.
Campbell Barton [Tue, 18 Dec 2012 16:52:46 +0000 (16:52 +0000)]
fix for crash in own commit - happend when changing userprefs.

6 years agouse 'bpy.context' when printing properties in the info window.
Campbell Barton [Tue, 18 Dec 2012 16:20:30 +0000 (16:20 +0000)]
use 'bpy.context' when printing properties in the info window.

6 years agoFix part of #33469: cloth preroll had a wrong tooltip and low limit of 200 frames.
Brecht Van Lommel [Tue, 18 Dec 2012 15:44:04 +0000 (15:44 +0000)]
Fix part of #33469: cloth preroll had a wrong tooltip and low limit of 200 frames.

6 years agochanging RNA properties now prints python script in the info view.
Campbell Barton [Tue, 18 Dec 2012 15:22:06 +0000 (15:22 +0000)]
changing RNA properties now prints python script in the info view.

next will add context so bpy.data.xxx[id] are not used for all references.

6 years agoBlender icons now are in the 21st century too!
Ton Roosendaal [Tue, 18 Dec 2012 15:10:54 +0000 (15:10 +0000)]
Blender icons now are in the 21st century too!

Default size for bitmap now is 32x32 pixels. Code change for higher densities is easy,
all under review. Let's first check this!

6 years agoFix region expander (+) drawing too narrow.
Brecht Van Lommel [Tue, 18 Dec 2012 14:55:51 +0000 (14:55 +0000)]
Fix region expander (+) drawing too narrow.

6 years agoClass method 'get_node_type' for node RNA types. This can be used to map RNA types...
Lukas Toenne [Tue, 18 Dec 2012 14:49:32 +0000 (14:49 +0000)]
Class method 'get_node_type' for node RNA types. This can be used to map RNA types and Python classes to the associated node type by means of the node type identifier.