blender.git
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.

6 years agoFixes for ctrl+click on panel header:
Brecht Van Lommel [Tue, 18 Dec 2012 14:46:00 +0000 (14:46 +0000)]
Fixes for ctrl+click on panel header:
* It collapsed panels in other tabs too
* Ctrl + click next to the panel header still caused panels do be collapsed
* Ctrl + Return over panel header now works as well

6 years agofunctions to make a string representation of a property & assignment.
Campbell Barton [Tue, 18 Dec 2012 14:11:19 +0000 (14:11 +0000)]
functions to make a string representation of a property & assignment.

6 years agoFix #33600: copying objects with point caches did not copy the external,
Brecht Van Lommel [Tue, 18 Dec 2012 14:05:54 +0000 (14:05 +0000)]
Fix #33600: copying objects with point caches did not copy the external,
disk cache and lib path settings.

6 years agoNicer function for drawing text in 3d window:
Ton Roosendaal [Tue, 18 Dec 2012 13:59:47 +0000 (13:59 +0000)]
Nicer function for drawing text in 3d window:

ED_region_visible_rect(ar, rect)
Returns the visible rect inside a region, subtracting the overlapping UI regions.

Added with minimal overhead, only called once per region draw.

Also fixes the 'Auto Key' warning print in 3d window (was behind properties)

6 years agosome speedup by avoiding translation on entire enum arrays, and just translate the...
Campbell Barton [Tue, 18 Dec 2012 13:46:37 +0000 (13:46 +0000)]
some speedup by avoiding translation on entire enum arrays, and just translate the single name that ends up being used.

6 years agofix for include and use break statement (may as well not loop more then needed).
Campbell Barton [Tue, 18 Dec 2012 13:25:23 +0000 (13:25 +0000)]
fix for include and use break statement (may as well not loop more then needed).

6 years agoadd index argument to RNA_property_as_string() - currently unused.
Campbell Barton [Tue, 18 Dec 2012 13:21:32 +0000 (13:21 +0000)]
add index argument to RNA_property_as_string() - currently unused.

6 years agoFix #33599: VBO textured draw mode did not update correctly when an image filepath
Brecht Van Lommel [Tue, 18 Dec 2012 12:42:13 +0000 (12:42 +0000)]
Fix #33599: VBO textured draw mode did not update correctly when an image filepath
was changed to an invalid one. Also fixed Object Color not being displayed correctly
with VBO's.

The way it has to clear the VBO buffers here is quite poor though and slow, we
really need textures and materials in the depsgraph to do this quicker.

6 years agoBug fix, IRC collection. (Fix for recent commit)
Ton Roosendaal [Tue, 18 Dec 2012 12:14:14 +0000 (12:14 +0000)]
Bug fix, IRC collection. (Fix for recent commit)

On saving new files (after loading startup.blend), the user prefs were included.
G.fileflags again...

6 years agofix [#33598] Regression in 2.65 while opening a 2.64 file
Campbell Barton [Tue, 18 Dec 2012 11:17:20 +0000 (11:17 +0000)]
fix [#33598] Regression in 2.65 while opening a 2.64 file

VBO's were using a material limit half the size of the rest of blender.

6 years agoCorrection for own commit r53006, removed some ndof keymaps, bad!
Campbell Barton [Tue, 18 Dec 2012 10:57:46 +0000 (10:57 +0000)]
Correction for own commit r53006, removed some ndof keymaps, bad!

6 years agoFixed operator_modal_view3d_raycast.py template so that it uses hit points in world...
Luke Frisken [Tue, 18 Dec 2012 10:43:06 +0000 (10:43 +0000)]
Fixed operator_modal_view3d_raycast.py template so that it uses hit points in world space to give correct selection. Also set selected object to active.

6 years agoAdding Amharic (i.e. ethiopic) language.
Bastien Montagne [Tue, 18 Dec 2012 09:13:04 +0000 (09:13 +0000)]
Adding Amharic (i.e. ethiopic) language.

6 years agoAdding Amharic (i.e. ethiopic) glyphs.
Bastien Montagne [Tue, 18 Dec 2012 09:03:21 +0000 (09:03 +0000)]
Adding Amharic (i.e. ethiopic) glyphs.

6 years agoAdded WeightVG modifier icon to svg file (and tried enhance it slightly).
Bastien Montagne [Tue, 18 Dec 2012 08:50:22 +0000 (08:50 +0000)]
Added WeightVG modifier icon to svg file (and tried enhance it slightly).

6 years agofix [#33580] Masking keyframes disappear from dope sheet when using undo.
Campbell Barton [Tue, 18 Dec 2012 08:41:38 +0000 (08:41 +0000)]
fix [#33580] Masking keyframes disappear from dope sheet when using undo.

6 years agofix for own error in recent commit with active pose mode, depended on an uninitialize...
Campbell Barton [Tue, 18 Dec 2012 07:38:02 +0000 (07:38 +0000)]
fix for own error in recent commit with active pose mode, depended on an uninitialized flag.

6 years agoadd support for active-element in pose mode and armature editmode.
Campbell Barton [Tue, 18 Dec 2012 06:36:35 +0000 (06:36 +0000)]
add support for active-element in pose mode and armature editmode.
This works most usefully when combined with Normal orientation.

6 years agocode cleanup
Campbell Barton [Tue, 18 Dec 2012 05:38:21 +0000 (05:38 +0000)]
code cleanup

6 years agofix [#33575] Manipulator showing incorrect local axes in armature pose mode.
Campbell Barton [Tue, 18 Dec 2012 05:29:56 +0000 (05:29 +0000)]
fix [#33575] Manipulator showing incorrect local axes in armature pose mode.

6 years agostyle cleanup
Campbell Barton [Tue, 18 Dec 2012 01:52:18 +0000 (01:52 +0000)]
style cleanup

6 years agostyle cleanup
Campbell Barton [Tue, 18 Dec 2012 01:46:15 +0000 (01:46 +0000)]
style cleanup

6 years agoFix #33487: game engine did not convert objects with rotation modes other than
Brecht Van Lommel [Mon, 17 Dec 2012 21:40:28 +0000 (21:40 +0000)]
Fix #33487: game engine did not convert objects with rotation modes other than
Euler XYZ correctly, was never implemented;

6 years agoFix #33505: various issues
Brecht Van Lommel [Mon, 17 Dec 2012 20:37:10 +0000 (20:37 +0000)]
Fix #33505: various issues
* Motion blur with shutter time > 1 did result in the correct evaluation
  of some modifiers because it set the subframe to values > 1, and some
  places assume the current frame to be set to the integer coordinate and
  the subframe to be a value between 0 and 1.
* Shape keys did not take subframe time offsets into account.
* Point density texture was using an current frame value that was never set.

6 years agoMinor update to i18n spell check stuff...
Bastien Montagne [Mon, 17 Dec 2012 20:32:25 +0000 (20:32 +0000)]
Minor update to i18n spell check stuff...

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

6 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

6 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!

6 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".

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

6 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!)

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

6 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

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

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

Errors:
- 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.

Fixes:
- 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.

6 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

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

6 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

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

6 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:
  bpy.types.Objects.some_function()

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

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

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

6 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

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

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

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

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

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

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

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

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

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

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

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

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

6 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

6 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"

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

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

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

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

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

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

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

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

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

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

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

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

But!

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

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

6 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

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

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

http://www.opengl.org/wiki/Common_Mistakes#Automatic_mipmap_generation

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

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

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

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

6 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:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability

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

6 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*.

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

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

6 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

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

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

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

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

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

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

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

6 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

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

6 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 http://kmamou.blogspot.com and the Bullet SDK's Demos/ConvexDecompositionDemo.

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

6 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

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

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

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