8 years agoMinor tweaks to some UI messages...
Bastien Montagne [Mon, 17 Dec 2012 20:16:37 +0000 (20:16 +0000)]
Minor tweaks to some UI messages...

8 years agouv edge based stitch. Useful to disambiguate betwen islands
Antony Riakiotakis [Mon, 17 Dec 2012 20:14:07 +0000 (20:14 +0000)]
uv edge based stitch. Useful to disambiguate betwen islands
 when uvs are shared by more than two islands. Uv edges
 usually belong to only two islands, making for much cleaner
 stitches. To change between stitch modes, press TAB.
 Initial mode depends on the selection mode of the image
 editor. Documentation can also be found on the release wiki

8 years agoFix [#33590] The Screw Tool in Edit Mode isn't calculating the correct angle step...
Bastien Montagne [Mon, 17 Dec 2012 19:26:09 +0000 (19:26 +0000)]
Fix [#33590] The Screw Tool in Edit Mode isn't calculating the correct angle step divisions per turn.

Degrees were used as radians... :p
Also tweaked min values of steps and turns!

8 years agoObject Layer property now has tag "not animatable".
Ton Roosendaal [Mon, 17 Dec 2012 18:45:13 +0000 (18:45 +0000)]
Object Layer property now has tag "not animatable".

Even with new depsgraph that'll be a big problem to support.
For as long layers define relationships or define evaluation
this should remain a static state.

Instead, animate outliner "visibility".

8 years agoUI fixes:
Ton Roosendaal [Mon, 17 Dec 2012 17:37:48 +0000 (17:37 +0000)]
UI fixes:

- on setting lower DPI, the regions that were scrolled down would start moving down
  1 pixel on every draw. Caused by rounding error. (int + 0.1 vs int -0.1)
  (Ancient bug)

- circles used in outliner - to denote selection/active - now draw bigger, and better
  centered. (2.66 fix only)

8 years agofix [#33581] Vertex Color Layer
Campbell Barton [Mon, 17 Dec 2012 15:17:51 +0000 (15:17 +0000)]
fix [#33581] Vertex Color Layer

vertex colors were added to meshes with no faces whenver exiting/entering editmode, while in vertex paint mode outside of editmode. *(making a really big list of vertex colors!)

8 years agofix/workaround [#33493] checker de-select and edge loops
Campbell Barton [Mon, 17 Dec 2012 15:02:26 +0000 (15:02 +0000)]
fix/workaround [#33493] checker de-select and edge loops

Checker de-select by default would give uneven selection on a circle, this isnt really a bug but the offset used would give unevenly spaced selection even if the 3rd vertex for eg could be evenly selected on a circle.

Change how the offset works so the active element always remains selected when the offset is set to zero, this tends to give more even de-selection.

8 years agoBug fix, IRC report.
Ton Roosendaal [Mon, 17 Dec 2012 14:51:06 +0000 (14:51 +0000)]
Bug fix, IRC report.

With 2 windows, 2 scenes, linked objects:
- enter editmode in 1 window.
- the other window allowed to enter editmode too.
- and crash happened on exit editmode.

Since editmode is in Context (scene->obedit) a bad conflict arises.

New function BKE_object_is_in_editmode() returns this info outside of
context. Note I didn't use BMEdit_FromObject() because of the assert().

NOTE: contextual storage of editmode could need rework... five places:
- ob->mode / ob->restore_mode
- scene->object
- CTX_data_edit_object()
- BKE_object_is_in_editmode()
- view3d mode handling menu

8 years agoVersion patch for reading old files (2.50 and before).
Ton Roosendaal [Mon, 17 Dec 2012 12:35:39 +0000 (12:35 +0000)]
Version patch for reading old files (2.50 and before).

In 2.50 a new convention was added to save the filename in the .blend itself.
This to allow recovery of temp saves.

In current svn, it made old files open as if it was a saved home file (not
storing the name in header, or in file history).

Note: file handling for all recovery, remapping etc is in need for cleanup.

8 years agoBugfix 33560
Ton Roosendaal [Mon, 17 Dec 2012 12:03:31 +0000 (12:03 +0000)]
Bugfix 33560

Setup: 2 windows, 2 scenes, shared objects and groups.

- editing in 1 window, didn't correctly update shared stuff in the other
  (like child - parent relations)
- deleting group members in 1 scene, could crash the other.

- On load, only a depsgraph was created for the "active" scene. Now it makes
  depsgraphs for all visible scenes.
- "DAG ID flushes" were only working on active scenes too, they now take
  the other visible into account as well.
- Delete object - notifier was only sent to the active scene.

All in all it's a real depsgraph fix (for once!) :) Using multi-window and
multi-scene setups now is more useful.

8 years agomissed adding show_grease_pencil to node space in recent commit
Campbell Barton [Mon, 17 Dec 2012 09:17:21 +0000 (09:17 +0000)]
missed adding show_grease_pencil to node space in recent commit

8 years agoSmall tweak for using transparent+overlapping regions:
Ton Roosendaal [Mon, 17 Dec 2012 09:02:43 +0000 (09:02 +0000)]
Small tweak for using transparent+overlapping regions:

On mouse-over these regions now become active always (as if they were opaque).
This active state is used by many tools, or for drawing cursors.

Currently, all events (if not handled by button region) are passed on anyway to
the underlying region.

Visible errors were for example drawing the paint brush circle.

8 years agoFix part #33534: Building proxies will remove strip animation
Sergey Sharybin [Mon, 17 Dec 2012 08:45:44 +0000 (08:45 +0000)]
Fix part #33534: Building proxies will remove strip animation

8 years agoAdded GPL header to sconscripts!
Bastien Montagne [Mon, 17 Dec 2012 08:01:43 +0000 (08:01 +0000)]
Added GPL header to sconscripts!
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...

8 years agobpy/rna api: add support for classmethods.
Campbell Barton [Mon, 17 Dec 2012 06:58:19 +0000 (06:58 +0000)]
bpy/rna api: add support for classmethods.

So RNA can expose functions from the type, eg:

8 years agocode cleanup: use 'const float *' when getting the 3d cursor and not editing it.
Campbell Barton [Mon, 17 Dec 2012 05:38:50 +0000 (05:38 +0000)]
code cleanup: use 'const float *' when getting the 3d cursor and not editing it.

8 years agomissed this recent commit, while drawing grease pencil, draw if 'Render Only' is on.
Campbell Barton [Mon, 17 Dec 2012 05:36:00 +0000 (05:36 +0000)]
missed this recent commit, while drawing grease pencil, draw if 'Render Only' is on.

8 years agodon't draw the sequencer grease pencil panel when in the channel view or scopes.
Campbell Barton [Mon, 17 Dec 2012 04:44:39 +0000 (04:44 +0000)]
don't draw the sequencer grease pencil panel when in the channel view or scopes.

also don't draw grease pencil over scopes.

8 years agopatch [#33441] Remove unneeded strcpy()'s from makesdna.c
Campbell Barton [Mon, 17 Dec 2012 02:46:30 +0000 (02:46 +0000)]
patch [#33441] Remove unneeded strcpy()'s from makesdna.c

8 years agofix [#33501] Grease pencil in OpenGL render
Campbell Barton [Mon, 17 Dec 2012 02:34:53 +0000 (02:34 +0000)]
fix [#33501] Grease pencil in OpenGL render

With the view3d 'Render Only' option, grease pencil wouldn't draw, but for OpenGL render it did.

Since grease pencil can be very useful in opengl renders, enable grease pencil drawing with 'Render Only' option in the viewport,
and add a checkbox in the grease pencil header not to draw (unchecking each layer is annoying and applies to all spaces).

8 years agofix [#33551] End Caps on a curve array with subsurf crashes blender when entering...
Campbell Barton [Mon, 17 Dec 2012 00:39:03 +0000 (00:39 +0000)]
fix [#33551] End Caps on a curve array with subsurf crashes blender when entering Edit Mode

DM_to_bmesh_ex could merge a 'dm' into an existing BMesh, in that case CD_ORIGINDEX values needed to be set to ORIGINDEX_NONE.

8 years agoFix knife cut-through bug #33571.
Howard Trickey [Mon, 17 Dec 2012 00:31:59 +0000 (00:31 +0000)]
Fix knife cut-through bug #33571.
The code to connect across a face didn't stop after it found one.

8 years agoFix [#33565]: Dynamic Paint modifier surfaces not copied
Miika Hamalainen [Sun, 16 Dec 2012 19:19:45 +0000 (19:19 +0000)]
Fix [#33565]: Dynamic Paint modifier surfaces not copied

Dynamic Paint canvas surfaces were not copied with modifier.

8 years agoTest print in bugfix...
Ton Roosendaal [Sun, 16 Dec 2012 14:50:50 +0000 (14:50 +0000)]
Test print in bugfix...

8 years agofix for bevel using the wrong property name when shift was held.
Campbell Barton [Sun, 16 Dec 2012 14:22:48 +0000 (14:22 +0000)]
fix for bevel using the wrong property name when shift was held.

8 years agoBug fix 33563
Ton Roosendaal [Sun, 16 Dec 2012 14:19:29 +0000 (14:19 +0000)]
Bug fix 33563

Region sizex/sizey should store the actual used sizes, for hide/reveal.
Didn't happen correctly, resulting in opening button regions of size 1.

8 years agofix own error [#33529] Bevel on a certain edgeloop results in segmentation fault
Campbell Barton [Sun, 16 Dec 2012 14:17:15 +0000 (14:17 +0000)]
fix own error [#33529] Bevel on a certain edgeloop results in segmentation fault
relied on edges having a loop, now use overlap apiflag instead.

8 years agoBugfix #33458
Ton Roosendaal [Sun, 16 Dec 2012 13:31:56 +0000 (13:31 +0000)]
Bugfix #33458

Tooltips in Blender were not scaling when zooming in/out on UI elements.
(They did follow DPI though, but tooltips were in a 'global' fixed size).

Error was that for tooltips on large scaled popups (like in Node editor)
the drawing was entirely wrong even.

Now tooltips scale correctly, also for fonts.

8 years agoCycles: add "Textures" panel in particle properties, to make it possble to add
Brecht Van Lommel [Sun, 16 Dec 2012 12:55:52 +0000 (12:55 +0000)]
Cycles: add "Textures" panel in particle properties, to make it possble to add
textures when Cycles is selected as render engine.

8 years agoBugfix IRC report
Sergey Sharybin [Sun, 16 Dec 2012 11:47:13 +0000 (11:47 +0000)]
Bugfix IRC report

Curves heavily scaled down will have render artifacts

Caused by precision issues when computing average normal map
for INDEX3 surface type. Now calculation happens in local object
space instead of world space.

8 years agocorrect bad comment
Campbell Barton [Sun, 16 Dec 2012 10:28:52 +0000 (10:28 +0000)]
correct bad comment

8 years agoset compositor background scale to 1.0
Campbell Barton [Sun, 16 Dec 2012 09:41:39 +0000 (09:41 +0000)]
set compositor background scale to 1.0

8 years agoCycles OSL: small optimization to geometry node, tangent output still was
Brecht Van Lommel [Sun, 16 Dec 2012 09:37:32 +0000 (09:37 +0000)]
Cycles OSL: small optimization to geometry node, tangent output still was
not properly optimized out in some cases.

For reference, setting this will give detailed information about OSL shaders:
export OSL_OPTIONS="statistics:level=1,debug=1,llvm_debug=1"

8 years agoFix region overlap drawing over render info text in image editor and 3d view.
Brecht Van Lommel [Sun, 16 Dec 2012 09:37:15 +0000 (09:37 +0000)]
Fix region overlap drawing over render info text in image editor and 3d view.

8 years agoreplace strcpy with BLI_strncpy or memcpy when the size is known.
Campbell Barton [Sun, 16 Dec 2012 08:43:05 +0000 (08:43 +0000)]
replace strcpy with BLI_strncpy or memcpy when the size is known.

8 years agoBugfix #33541 - Deleting all keyframes leaves dangling action groups
Joshua Leung [Sun, 16 Dec 2012 06:30:17 +0000 (06:30 +0000)]
Bugfix #33541 - Deleting all keyframes leaves dangling action groups

When deleting all keyframes in F-Curves, the corresponding F-Curves are deleted.
If all the F-Curves in an action group were deleted in such a way, the group
wouldn't be removed. This meant that these groups would never be shown (until
F-Curves for these groups were created again), but would still exist, causing
problems when trying to rearrange groups in the animation editors (i.e. groups
would appear to not move). Now these groups get deleted when they get empty.

8 years agoupdate themes
Campbell Barton [Sun, 16 Dec 2012 05:48:27 +0000 (05:48 +0000)]
update themes

8 years agoreplace TypeError with Value error for matrix operations where the type is right...
Campbell Barton [Sun, 16 Dec 2012 04:10:57 +0000 (04:10 +0000)]
replace TypeError with Value error for matrix operations where the type is right but it can't succeed because of a property of the instance (normally the wrong col/row size).

8 years agoadd Matrix.normalized(), handy for transforming normals.
Campbell Barton [Sun, 16 Dec 2012 04:05:16 +0000 (04:05 +0000)]
add Matrix.normalized(), handy for transforming normals.

8 years agoerror in 53006, moved into another keymap rather then just re-ordering.
Campbell Barton [Sun, 16 Dec 2012 02:53:28 +0000 (02:53 +0000)]
error in 53006, moved into another keymap rather then just re-ordering.

8 years agoReverting rev 53044 because it broke something and was wrong.
Ove Murberg Henriksen [Sun, 16 Dec 2012 02:29:46 +0000 (02:29 +0000)]
Reverting rev 53044 because it broke something and was wrong.
I also added comment to avoid this happening in the future.

8 years agoFixing name of a function to be consistent with the rest of the code.
Ove Murberg Henriksen [Sat, 15 Dec 2012 23:52:39 +0000 (23:52 +0000)]
Fixing name of a function to be consistent with the rest of the code.

8 years agoChanged some comments to make more sense.
Ove Murberg Henriksen [Sat, 15 Dec 2012 22:47:57 +0000 (22:47 +0000)]
Changed some comments to make more sense.

8 years agoFix cycles build error with OSL disabled.
Brecht Van Lommel [Sat, 15 Dec 2012 20:43:25 +0000 (20:43 +0000)]
Fix cycles build error with OSL disabled.

8 years agoBugfix: [#33513] Transfer weights mixing up.
Ove Murberg Henriksen [Sat, 15 Dec 2012 20:32:32 +0000 (20:32 +0000)]
Bugfix: [#33513] Transfer weights mixing up.
Removal of this line fixed the bug.


I suspect it opens up for an excaption.
I will try to identify the exception and handle it in a different way.

8 years agoPure style cleanup.
Ove Murberg Henriksen [Sat, 15 Dec 2012 19:56:25 +0000 (19:56 +0000)]
Pure style cleanup.

8 years agoOSX: makeKeyAndOrderFront would show window from orderedWindows list on every loop...
Jens Verwiebe [Sat, 15 Dec 2012 18:32:53 +0000 (18:32 +0000)]
OSX: makeKeyAndOrderFront would show window from orderedWindows list  on every loop, so use makeKeyWindow only to avoid flicker when closing app

8 years agoBugfix, IRC submitted:
Ton Roosendaal [Sat, 15 Dec 2012 18:12:38 +0000 (18:12 +0000)]
Bugfix, IRC submitted:

Color Pickers, square versions, didn't draw the 'cursor' correctly.
Was missing colorprofile check.

8 years agoAttempted fix #33546: GPU mipmap generation is not working on some ATI cards,
Brecht Van Lommel [Sat, 15 Dec 2012 17:15:42 +0000 (17:15 +0000)]
Attempted fix #33546: GPU mipmap generation is not working on some ATI cards,
causing textures to be missing in textured draw mode. There is apparently a bug
in the ATI drivers, committed a workaround for that now.

8 years agoCleanup:
Ton Roosendaal [Sat, 15 Dec 2012 16:35:00 +0000 (16:35 +0000)]

Removed unused panel colors (and panel text) from Themes.

8 years agominor edits with recent commits, also avoid calling BKE_mesh_from_object() in vertex...
Campbell Barton [Sat, 15 Dec 2012 16:31:25 +0000 (16:31 +0000)]
minor edits with recent commits, also avoid calling BKE_mesh_from_object() in vertex paint, just pass the mesh.

8 years agoBetter tooltip for "Install Theme..."
Ton Roosendaal [Sat, 15 Dec 2012 16:27:12 +0000 (16:27 +0000)]
Better tooltip for "Install Theme..."

8 years agoFinished themes for transparent Button regions in Blender.
Ton Roosendaal [Sat, 15 Dec 2012 16:22:18 +0000 (16:22 +0000)]
Finished themes for transparent Button regions in Blender.

Notes and image:

- now each editor has own settings for "show panel header" and
  "show panel background", and colors+alpha for this.

- this setting used to be global for all editors, but it can conflict
  with looks of specific editors.

- Now you can set for editors to show panels with a 100% transparent
  tool/properties region.

Note: read XML theme files now might get an error, Campbell will fix.

8 years agouse struct type for VPaintData.vertexcosnos rather then float*.
Campbell Barton [Sat, 15 Dec 2012 16:13:27 +0000 (16:13 +0000)]
use struct type for VPaintData.vertexcosnos rather then float*.

8 years agomove pbvh into BKE, it used many BKE bad level includes.
Campbell Barton [Sat, 15 Dec 2012 15:59:25 +0000 (15:59 +0000)]
move pbvh into BKE, it used many BKE bad level includes.

now blenlib/BLI doesn't depend on any blenkern/BKE functions,
there are still some bad level includes but these are only to access G.background and the blender version define.

8 years agomove bpath module from BLI to BKE, it was making many bad level calls into BKE.
Campbell Barton [Sat, 15 Dec 2012 15:31:50 +0000 (15:31 +0000)]
move bpath module from BLI to BKE, it was making many bad level calls into BKE.

8 years agoOSX/availability: use of the numerical value instead of the symbol in the #if MAC_OS_...
Jens Verwiebe [Sat, 15 Dec 2012 11:15:05 +0000 (11:15 +0000)]
OSX/availability: use of the numerical value instead of the symbol in the #if MAC_OS_X_VERSION_MIN_REQUIRED comparison clause: If the code is loaded on an older system that does not include the symbol definition, the comparison still works

8 years agoGraah! Not using brains for quick fixes...
Ton Roosendaal [Sat, 15 Dec 2012 11:00:57 +0000 (11:00 +0000)]
Graah! Not using brains for quick fixes...

8 years agoClassical mistake - fix a bug in 1 feature, but don't test the related ones :/
Ton Roosendaal [Sat, 15 Dec 2012 10:53:35 +0000 (10:53 +0000)]
Classical mistake - fix a bug in 1 feature, but don't test the related ones :/

Previous commit broke dragging area edges.

8 years agoCycles OSL minor optimizations: recycle shading context, don't do memory
Brecht Van Lommel [Sat, 15 Dec 2012 10:18:42 +0000 (10:18 +0000)]
Cycles OSL minor optimizations: recycle shading context, don't do memory
allocations for trace data, avoid some virtual function calls. Only helps
a few percentages.

8 years agoBugfix, irc collection:
Ton Roosendaal [Sat, 15 Dec 2012 09:45:34 +0000 (09:45 +0000)]
Bugfix, irc collection:

With larger header sizes (via DPI setting), splitting an area horizontally (using
left-bottom corner widget, move up) stopped immediate after split, not allowing
to drag it to a position.

Culprit was code to check minimum header size, and area operator using the same
flags. Now ScrVert has two flags - one for internal use, one for the tools to set.

8 years agoavoid using strlen() for comparisons in for loops. for expanding whitespace in the...
Campbell Barton [Sat, 15 Dec 2012 07:57:16 +0000 (07:57 +0000)]
avoid using strlen() for comparisons in for loops. for expanding whitespace in the text editor and ui paste.

8 years agoprevent the text 3d cursor from z-fighting with the text.
Campbell Barton [Sat, 15 Dec 2012 06:12:40 +0000 (06:12 +0000)]
prevent the text 3d cursor from z-fighting with the text.

8 years agoremove modifiers_indexInObject(), just call BLI_findindex directly.
Campbell Barton [Sat, 15 Dec 2012 05:46:41 +0000 (05:46 +0000)]
remove modifiers_indexInObject(), just call BLI_findindex directly.

8 years agoadd checks to style checker script for 'a . b' and 'a []'
Campbell Barton [Sat, 15 Dec 2012 04:44:10 +0000 (04:44 +0000)]
add checks to style checker script for 'a . b' and 'a []'
also use BLI_findindex for modifiers_indexInObject

8 years agostyle cleanup: stop the style checker script from complaining about '!*ptr'
Campbell Barton [Sat, 15 Dec 2012 02:48:25 +0000 (02:48 +0000)]
style cleanup: stop the style checker script from complaining about '!*ptr'

8 years agoHi there, it has been a while, just curious if my SVN account still works :)
Erwin Coumans [Sat, 15 Dec 2012 01:01:35 +0000 (01:01 +0000)]
Hi there, it has been a while, just curious if my SVN account still works :)
This commit is an attempt to improve collisions between moving Bullet rigid bodies using (concave) triangle mesh bounds.
Instead of using Gimpact, this we create a btCompoundShape with child shape tetrahedra derived from the surface triangles.
For each triangle, we add a fourth vertex using the centroid, shifting inwards using the triangle normal.
If the centroid hits an internal triangle, we stop. The default depth could be exposed as 'advanced' setting in the user interface.
This solution will be a slower than the original/gimpact solution, but a bit more reliable.
In the future, it is better to add HACD, convex decomposition to Blender, for moving concave meshes.
See and the Bullet SDK's Demos/ConvexDecompositionDemo.

8 years agoRestoring default theme made the panel regions opaque again.
Antony Riakiotakis [Fri, 14 Dec 2012 23:20:11 +0000 (23:20 +0000)]
Restoring default theme made the panel regions opaque again.

8 years agoinitialize static island colour display on reverting to default theme
Antony Riakiotakis [Fri, 14 Dec 2012 22:39:03 +0000 (22:39 +0000)]
initialize static island colour display on reverting to default theme

8 years agoFix #33539: shift+numpad 2/4/8 shortcuts for zoom in image and clip editor
Brecht Van Lommel [Fri, 14 Dec 2012 22:08:19 +0000 (22:08 +0000)]
Fix #33539: shift+numpad 2/4/8 shortcuts for zoom in image and clip editor
don't work in Windows. These shortcuts are taken by the operating system,
so ctrl+numpad 2/4/8 now work as well and are the shortcuts shown in menus.

8 years agoFix #33497: seting object scale to 0 on one axis made moving verts in edit mode
Brecht Van Lommel [Fri, 14 Dec 2012 21:41:22 +0000 (21:41 +0000)]
Fix #33497: seting object scale to 0 on one axis made moving verts in edit mode
impossible. In this case matrix inversion failed and didn't give a useful result.
Now it falls back to a pseudoinverse in that case, so that moving along the
other axes still works.

There may be other places that can benefit from this, but this is a place where
it has no significant performance impact, doing this in general for e.g. bone
matrices could be quite slow.

8 years agoFix mac build error with SDK < 10.7, this version is not then defined then as
Brecht Van Lommel [Fri, 14 Dec 2012 20:56:14 +0000 (20:56 +0000)]
Fix mac build error with SDK < 10.7, this version is not then defined then as
pointed out by Patrick Boelens on the mailing list.

8 years agoBug fix, irc submitted:
Ton Roosendaal [Fri, 14 Dec 2012 18:54:22 +0000 (18:54 +0000)]
Bug fix, irc submitted:

On saving a first .blend after startup, the file would load back as if it was not
saved (showing no name in header).

The whole FILEFLAGS and G.relabase_valid and G.file_saved etc is messy.
This commit fixes issues, but only adds more mess :)

Will discuss a nicer implementation of all of this.

8 years agouse UI_view2d_getscale() to get the scale for image cursor drawing and ED_mask_pixels...
Campbell Barton [Fri, 14 Dec 2012 16:51:02 +0000 (16:51 +0000)]
use UI_view2d_getscale() to get the scale for image cursor drawing and ED_mask_pixelspace_factor(). - was getting the image width/height when its not needed before.

8 years agocode cleanup and move alternate shell calculation method into its own function: BM_ve...
Campbell Barton [Fri, 14 Dec 2012 16:10:46 +0000 (16:10 +0000)]
code cleanup and move alternate shell calculation method into its own function: BM_vert_calc_shell_factor_ex

8 years agoworkaround for ndof events showing in view3d menu items. (add before other keys,...
Campbell Barton [Fri, 14 Dec 2012 16:09:31 +0000 (16:09 +0000)]
workaround for ndof events showing in view3d menu items. (add before other keys, eventually we may want to have some kind of priority here)

8 years agoCycles: make "Open Shading Language" a boolean toggle, the other option "GPU Compatib...
Brecht Van Lommel [Fri, 14 Dec 2012 15:26:49 +0000 (15:26 +0000)]
Cycles: make "Open Shading Language" a boolean toggle, the other option "GPU Compatible" was confusing.

8 years agocommands to convert svg-to-png as shell scripts (just for convenience), and center...
Campbell Barton [Fri, 14 Dec 2012 15:17:53 +0000 (15:17 +0000)]
commands to convert svg-to-png as shell scripts (just for convenience), and center prvicons.svg so the resulting image is sized properly.

8 years agoFixes for correct UI scaling display:
Ton Roosendaal [Fri, 14 Dec 2012 15:09:59 +0000 (15:09 +0000)]
Fixes for correct UI scaling display:

- Move to layer (and more popups) didn't scale yet
- User Prefs and render window now open on right location on Mac Retinas
- Brush sizes for painting now scale for Mac Retina

8 years agoBlender Internal / Texture UI:
Thomas Dinges [Fri, 14 Dec 2012 14:59:16 +0000 (14:59 +0000)]
Blender Internal / Texture UI:
* Ocean Texture was not in alphabetical order.

8 years agoSCons: clean up code which was commented out since 2007
Sergey Sharybin [Fri, 14 Dec 2012 12:06:24 +0000 (12:06 +0000)]
SCons: clean up code which was commented out since 2007

8 years agoSCons; cleanup from using deprecated libraries from svn
Sergey Sharybin [Fri, 14 Dec 2012 12:06:09 +0000 (12:06 +0000)]
SCons; cleanup from using deprecated libraries from svn

This was already done for CMake and mentioning this paths in scons only
messes things up.

8 years agoFix #33532: vertex paint subtract mode was broken, always resulting in black.
Brecht Van Lommel [Fri, 14 Dec 2012 12:00:59 +0000 (12:00 +0000)]
Fix #33532: vertex paint subtract mode was broken, always resulting in black.

8 years agoFix #33530: Blender Crash when selecting "Point select mode" in Particle Mode with...
Sergey Sharybin [Fri, 14 Dec 2012 09:47:05 +0000 (09:47 +0000)]
Fix #33530: Blender Crash when selecting "Point select mode" in Particle Mode with and 0 hairs object

8 years agoadd back a key to access view-cursor (alt+home)
Campbell Barton [Fri, 14 Dec 2012 09:40:32 +0000 (09:40 +0000)]
add back a key to access view-cursor (alt+home)

8 years agoFix #33526: Bezier Curve Tilt in transform panel does not work beyond 360 degrees
Sergey Sharybin [Fri, 14 Dec 2012 09:29:05 +0000 (09:29 +0000)]
Fix #33526: Bezier Curve Tilt in transform panel does not work beyond 360 degrees

No need to clamp tilt value in transform panel, til beyond 360 degrees works
fine and clamping it in panel lead to some unexpected behavior.

8 years agoFix #33525: Mask points are add offset for the mouse when adding on viewer node with...
Sergey Sharybin [Fri, 14 Dec 2012 09:19:13 +0000 (09:19 +0000)]
Fix #33525: Mask points are add offset for the mouse when adding on viewer node with aspect != 1

It was strange logic in code from 2010 which forced image aspect to be 1 for
viewer nodes and render results.

Not sure why it's needed, was only used for unwrapping aspect correction,
but render result/viewer images are already handled differently there.

8 years agoOSX/nativePixel: fix compile for OSX < 10.7
Jens Verwiebe [Fri, 14 Dec 2012 08:48:48 +0000 (08:48 +0000)]
OSX/nativePixel: fix compile for OSX < 10.7

8 years agocorrect scrollbars not working properly with DPI in the console/info view.
Campbell Barton [Fri, 14 Dec 2012 08:05:56 +0000 (08:05 +0000)]
correct scrollbars not working properly with DPI in the console/info view.

8 years agotweaks to text selection and highlight drawing.
Campbell Barton [Fri, 14 Dec 2012 06:12:04 +0000 (06:12 +0000)]
tweaks to text selection and highlight drawing.

8 years agocode cleanup: minor edits to the console.
Campbell Barton [Fri, 14 Dec 2012 05:27:53 +0000 (05:27 +0000)]
code cleanup: minor edits to the console.

8 years agoAdding a new SPH solver that is more physically accurate. See patch #29681
Alex Fraser [Fri, 14 Dec 2012 04:57:26 +0000 (04:57 +0000)]
Adding a new SPH solver that is more physically accurate. See patch #29681

The solver was mostly implemented by John Mansour at VPAC, with help from me and with funding from the AutoCRC. The SPH formulation is due to Gingold and Monaghan, and the smoothing kernel is due to Wendland.

This solver does not replace the old one; it is available as an option. Note that the new solver uses different units than the old one. The patch page has a couple of attachments that can be used to test the new solver, particularly sphclassical_dam_s0.01_grav.blend (ignore the earlier tests). The simulation in that file compares well with a physical experimental dam break; details in a paper by Changhong Hu and Makoto Sueyoshi, also referred to on that page.

8 years agostyle cleanup
Campbell Barton [Fri, 14 Dec 2012 04:38:52 +0000 (04:38 +0000)]
style cleanup

8 years agoUV Warp Modifier:
Campbell Barton [Fri, 14 Dec 2012 04:07:30 +0000 (04:07 +0000)]
UV Warp Modifier:
Based on patch [#30837] UV Offset Modifier
by Pawel Kowal (pkowal)

- Allows you to setup a transformation between objects to apply to UV coords.
- Option to select which axis apply to U/V.
- Option to select the UV center (needed for transformations that scale or rotate).
- Uses from/to objects in a similar way to the Warp modifier.
- Vertex group can be used to adjust influence.

8 years agoSVG Icons: Frame Next/Prev (used for Motion Tracker controls)
Joshua Leung [Fri, 14 Dec 2012 01:52:08 +0000 (01:52 +0000)]
SVG Icons: Frame Next/Prev (used for Motion Tracker controls)

8 years agoSVG Icons: Back to screen icon
Joshua Leung [Fri, 14 Dec 2012 01:40:09 +0000 (01:40 +0000)]
SVG Icons: Back to screen icon

8 years agoSVG Icons - Ported over some of the animation related icons
Joshua Leung [Fri, 14 Dec 2012 01:34:11 +0000 (01:34 +0000)]
SVG Icons - Ported over some of the animation related icons

* Made SVG versions of the NLA solo (star) icons. These are much nicer than the hack 'n slash bitmap versions, but could still do with some polish. The svg is too heavy to do fine tweaks here.

* Ported over the mute/graph-visible icons
* Recreated Drivers icon

* Moved Blender icon from AD1/DA1 to AD16/DA16, as per the trunk icon sheet

8 years agoadd assert if both args to invert_m4_m4 are the same.
Campbell Barton [Fri, 14 Dec 2012 00:49:55 +0000 (00:49 +0000)]
add assert if both args to invert_m4_m4 are the same.

8 years agopatch [#33448] Adding Vector Sources for Icons
Campbell Barton [Thu, 13 Dec 2012 23:18:38 +0000 (23:18 +0000)]
patch [#33448] Adding Vector Sources for Icons

add additional icons to the svg.

8 years agoFix #33522: Crash when "rotate arond selection" is on, and when no object in scene
Sergey Sharybin [Thu, 13 Dec 2012 20:07:16 +0000 (20:07 +0000)]
Fix #33522: Crash when "rotate arond selection" is on, and when no object in scene

Own regression in recent fix