9 years agoFrom the long todo:
Ton Roosendaal [Sat, 22 Dec 2012 13:39:44 +0000 (13:39 +0000)]
From the long todo:

New Outliner mode: "Main Data".

This shows a flattened, non-hierarchical list of all linkable "ID" data in
your current project. It works fine on searches. Actually this is the
view on the "Main" database in Blender, the one that's saved in a .blend.

This is in general more useful than the "Datablocks" viewer,
which is not searchable, and shows every property of data as well.

9 years agoSmall drawing glitch, for UI with transparent overlapping regions;
Ton Roosendaal [Sat, 22 Dec 2012 11:52:53 +0000 (11:52 +0000)]
Small drawing glitch, for UI with transparent overlapping regions;

- The corner 'duplicate/merge area' widget was drawing too often.

(Added comment in subwindow 'active' code, too many redraws are being
sent on moving mouse over region eddges)

9 years agoSmall tweak in the new "Relative Parent" option for Bones that have Object-children:
Ton Roosendaal [Sat, 22 Dec 2012 11:08:25 +0000 (11:08 +0000)]
Small tweak in the new "Relative Parent" option for Bones that have Object-children:

- Transform now is relative to the bone root.

For backwards compatibility this transform was set to the tip for parenting...

Now the new parenting option uses the root, the old one still the tip.
I've noted in the code to check on a version patch, to make it consistent.

9 years agofix for using uninitialized flag in my last commit.
Campbell Barton [Sat, 22 Dec 2012 09:37:37 +0000 (09:37 +0000)]
fix for using uninitialized flag in my last commit.

9 years agoBGE: The PyGILState_Ensure() call in KX_Scene was causing a segfault in the Blenderpl...
Mitchell Stokes [Sat, 22 Dec 2012 08:59:11 +0000 (08:59 +0000)]
BGE: The PyGILState_Ensure() call in KX_Scene was causing a segfault in the Blenderplayer even when being run in the main thread. I'm removing it for now since I don't think it will really cause a problem.

9 years agocorrect own error in openmp use for BM_mesh_elem_index_ensure().
Campbell Barton [Sat, 22 Dec 2012 08:37:34 +0000 (08:37 +0000)]
correct own error in openmp use for BM_mesh_elem_index_ensure().

9 years agoWeight gradient tool for weight paint mode
Campbell Barton [Sat, 22 Dec 2012 08:19:27 +0000 (08:19 +0000)]
Weight gradient tool for weight paint mode
- blends from current weight into alpha zero.
- uses brush alpha & curve.
- respects weight paint vertex/face select modes.
- updates realtime.

Access With
- Alt+LMB (linear gradient)
- Ctrl+Alt+LMB (radial gradient)

- WM_gesture_straightline_* are used but not well suited to this task, may end up replacing with own modal operator.
- Key handling works but needs to be done better.

9 years agofunction for flushing polygon -> vert,edge selection (in object mode), currently...
Campbell Barton [Sat, 22 Dec 2012 08:13:44 +0000 (08:13 +0000)]
function for flushing polygon -> vert,edge selection (in object mode), currently unused.

9 years agoBGE: Committing async LibLoad from Swiss. This does the lib loading in a separate...
Mitchell Stokes [Sat, 22 Dec 2012 05:38:32 +0000 (05:38 +0000)]
BGE: Committing async LibLoad from Swiss. This does the lib loading in a separate thread to keep the BGE from freezing. Here is an example from the docs:

      # Print a message when an async LibLoad is done
      import bge

      def finished_cb(status):
          print("Library (%s) loaded in %.2fms." % (status.libraryName, status.timeTaken))

      bge.logic.LibLoad('myblend.blend', 'Scene', async=True).onFinish = finished_cb

LibLoad() now returns a KX_LibLoadStatus object for information on the library loading. LibNew() and LibFree() are unaffected by this commit. In other words, the async option only works for LibLoad(). Furthermore it only works for Scenes, not Actions or Meshes.

9 years agoText Editor: Gray out the Register check unless the file has .py extension. (feature...
Pablo Vazquez [Sat, 22 Dec 2012 05:04:30 +0000 (05:04 +0000)]
Text Editor: Gray out the Register check unless the file has .py extension. (feature lost since July)

9 years agocode cleanup and minor changes
Campbell Barton [Sat, 22 Dec 2012 01:08:42 +0000 (01:08 +0000)]
code cleanup and minor changes
- use DummyRNA_NULL_items to replace empty enums.
- replace calloc with malloc in copy_dverts since its copied over after.
- add wmGesture->userdata, so operators that use gestures have somewhere to store their own data (not used yet).

9 years ago"Fix" for [#33524] Interaction of "Size" & "Distance" sliders in "Spot Lamp" panel...
Bastien Montagne [Fri, 21 Dec 2012 20:25:02 +0000 (20:25 +0000)]
"Fix" for [#33524] Interaction of "Size" & "Distance" sliders in "Spot Lamp" panel with "3D view"

Simply added a dashed line materializing the center/direction of the spot, and ending at Distance from it (exactly as for the Area lamp). We already had something similar for buffered shadow spots (to materialize start/end clipping), and imho it's also quite useful to see *where* points a spot, when using wide spots!

Very easy to revert anyway.

9 years agoback to utf-8 encoding!
Bastien Montagne [Fri, 21 Dec 2012 19:20:24 +0000 (19:20 +0000)]
back to utf-8 encoding!

9 years agoBug fix #33648
Ton Roosendaal [Fri, 21 Dec 2012 19:05:52 +0000 (19:05 +0000)]
Bug fix #33648

Node location coordinate was wrapped within 10k limits, now 100k.
Go figure how large these modern node setups get :)

9 years agoAdditional fix in glsl shaders: "Darken" was using different formula as render.
Ton Roosendaal [Fri, 21 Dec 2012 18:10:01 +0000 (18:10 +0000)]
Additional fix in glsl shaders: "Darken" was using different formula as render.
"Divide" still differs too for division by zero - cannot find this yet...

9 years agoBug fix #33647
Ton Roosendaal [Fri, 21 Dec 2012 17:47:50 +0000 (17:47 +0000)]
Bug fix #33647

Particle combing didn't always respond as expected. The combed effect was
depending on the center of object in view, instead of on the center of
selected hairs. That made combing in certain close ups impossible.

Same was actually true for transform tools for hairs!

And even worse - there was an optimize break in calculating center
which wasn't true even. Causing centers for transform to fail similar
in other cases.

9 years agoBug fix, own collection:
Ton Roosendaal [Fri, 21 Dec 2012 16:11:50 +0000 (16:11 +0000)]
Bug fix, own collection:

User preference "Zoom Scale" didn't work correct for 2d views.
(was calculating center of region badly).

9 years agorename rna prop _parenting -> _parent
Campbell Barton [Fri, 21 Dec 2012 12:17:30 +0000 (12:17 +0000)]
rename rna prop _parenting -> _parent

9 years agomake Node.links return a tuple, this may you can't do socket.links.append() by mistake.
Campbell Barton [Fri, 21 Dec 2012 12:16:13 +0000 (12:16 +0000)]
make Node.links return a tuple, this may you can't do socket.links.append() by mistake.
removed RNAMeta mixin class since you cant register subclasses.

also some minor code cleanup

9 years agoArmature bone feature:
Ton Roosendaal [Fri, 21 Dec 2012 12:07:28 +0000 (12:07 +0000)]
Armature bone feature:

New Bone option: "Relative Parenting".

This makes Child-Objects of Bones transform similar to how deformations
of bones are calculated. Allows to move bones in editmode to set pivot.

The option is in Bone Panel, with clear label.
It is ON now by default when you add new bones

Requested by Kjartan, our famous robot designer :) For "hard body rigs" it's
very useful.

9 years agoFix #33644: rendering to a new window and then closing it would not completely
Brecht Van Lommel [Fri, 21 Dec 2012 11:56:02 +0000 (11:56 +0000)]
Fix #33644: rendering to a new window and then closing it would not completely
remove it, but still stick around listed in the Window menu.

Fixed by removing the setReleasedWhenClosed:NO hack and using the proper cocoa
window delegate mechanism.

9 years agoExplicit python class for NodeSocket RNA type in bpy_types. This defines a utility...
Lukas Toenne [Fri, 21 Dec 2012 11:31:59 +0000 (11:31 +0000)]
Explicit python class for NodeSocket RNA type in bpy_types. This defines a utility property for getting links to or from a node socket, as discussed on bf-committers:

Note: NodeTree and Node currently use standard python classes generated by bpy for now. The customnodes branch defines such classes as well, with specialized metaclasses for use with ID properties. Not needed in trunk yet.

9 years agoCycles: merge some changes from a local branch to bring network rendering a bit
Brecht Van Lommel [Fri, 21 Dec 2012 11:13:46 +0000 (11:13 +0000)]
Cycles: merge some changes from a local branch to bring network rendering a bit
more up to date, still nowhere near working though, but might as well commit this
in case someone else is interested in working on it.

9 years agoCycles: add some extra CUDA nvcc paths for runtime compile, might help for #33622.
Brecht Van Lommel [Fri, 21 Dec 2012 10:27:35 +0000 (10:27 +0000)]
Cycles: add some extra CUDA nvcc paths for runtime compile, might help for #33622.

9 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.

9 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

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

9 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.

9 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.

9 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.

9 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

9 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

9 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).

9 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

9 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.

9 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

9 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

* 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

9 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.

9 years agopatches from fedora:
Campbell Barton [Fri, 21 Dec 2012 03:02:36 +0000 (03:02 +0000)]
patches from fedora:

9 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.

9 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).

9 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]:

if bge.logic.joysticks[1]:


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.

9 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.

9 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.

9 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.

9 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.

9 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 :)

9 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.

9 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:

9 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

9 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.

9 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.

9 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.

9 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.

  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')

9 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 :)

9 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 :)

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

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

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

9 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

enable this for loading scripts in 'startup' too.

9 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.

9 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.

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

9 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.


9 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.

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

9 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.

9 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.

9 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.

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

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

9 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%

9 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.

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

9 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.


9 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

9 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.

9 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! :)

9 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.

9 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

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

9 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.

9 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.

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

9 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.

9 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.

9 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

9 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)

9 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.

9 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()

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

9 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

9 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.

9 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).

9 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.

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