9 years agoFix a bug in CustomData_duplicate_referenced_layer(_named) functions: MEM_dupallocN...
Bastien Montagne [Mon, 19 Dec 2011 08:26:53 +0000 (08:26 +0000)]
Fix a bug in CustomData_duplicate_referenced_layer(_named) functions: MEM_dupallocN does not work with complex layers like CD_MDEFORMVERT ones, so rather use copy func when available.

9 years agocorrections to some comments
Campbell Barton [Mon, 19 Dec 2011 05:23:52 +0000 (05:23 +0000)]
corrections to some comments

9 years ago- mathutils matrix creation - use memcpy rather than copying every matrix row/col...
Campbell Barton [Mon, 19 Dec 2011 05:14:09 +0000 (05:14 +0000)]
- mathutils matrix creation - use memcpy rather than copying every matrix row/col individually.
- creating a new non-square matrix would use uninitialized memory.

9 years agoremove mathutils internal variable for storing pointers to each matrix row, instead...
Campbell Barton [Mon, 19 Dec 2011 03:12:10 +0000 (03:12 +0000)]
remove mathutils internal variable for storing pointers to each matrix row, instead use macros to access row/column's.

also add an assert so invalid index access will raise an error in debug mode, without this it was quite easy to access invalid memory without meaning to.

no functional change.

9 years agochange BLI_assert() so it can be included in other defines.
Campbell Barton [Mon, 19 Dec 2011 03:06:44 +0000 (03:06 +0000)]
change BLI_assert() so it can be included in other defines.

9 years agoFix for cmake for recent mingw png lib move.
Thomas Dinges [Sun, 18 Dec 2011 23:32:24 +0000 (23:32 +0000)]
Fix for cmake for recent mingw png lib move.

9 years agoMinGW png libs
Thomas Dinges [Sun, 18 Dec 2011 23:23:09 +0000 (23:23 +0000)]
MinGW png libs
* Moved to gcc/png in the libs dir.

9 years agoremove unneeded NULL check in ui_searchbox_create() which confuses static checkers...
Campbell Barton [Sun, 18 Dec 2011 22:42:43 +0000 (22:42 +0000)]
remove unneeded NULL check in ui_searchbox_create() which confuses static checkers since the values used later.

9 years agoremove windows only benchmark functions, use PIL_time.h's TIMEIT macros instead.
Campbell Barton [Sun, 18 Dec 2011 22:35:52 +0000 (22:35 +0000)]
remove windows only benchmark functions, use PIL_time.h's TIMEIT macros instead.

9 years agoMinor tweaking to WeightVGProximity modifier code (not really usefull currently,...
Bastien Montagne [Sun, 18 Dec 2011 21:46:26 +0000 (21:46 +0000)]
Minor tweaking to WeightVGProximity modifier code (not really usefull currently, but mandatory for other future changes…)

9 years agoRemoved buttons in node headers for hiding unused sockets and for hiding the (non...
Lukas Toenne [Sun, 18 Dec 2011 17:59:04 +0000 (17:59 +0000)]
Removed buttons in node headers for hiding unused sockets and for hiding the (non-socket) option buttons. These are rarely used buttons that only complicate the UI. Alternatively these operators can still be accessed in the Node menu of the node editor window, "Toggle Hidden Node Sockets" and "Toggle Node Options" respectively.

9 years agoGeneralized node groups for Cycles.
Lukas Toenne [Sun, 18 Dec 2011 15:34:06 +0000 (15:34 +0000)]
Generalized node groups for Cycles.

This allows group nodes inside other group nodes in cycles and makes the
code more generic for all possible cases, like direct group
input-to-output links and unused group sockets.

Previous code tried to connect external nodes and internal group sockets
by following links until a "real" node input/output. This quickly
becomes complicated in corner cases as described above and can lead to
unexpected behavior when the group socket is of a different type than
the internal/external sockets, but that conversion is skipped.

The new code uses the concept of "proxy nodes" similar to what the new
compositor does. Each group socket is replaced with a proxy node with a
single input and output, to which other nodes in the same tree and
internal nodes can link to. After all groups have been expanded in the
graph, these proxy nodes are removed again, adding converter nodes if

9 years agocleanup of weight paint color setting code, no functional changes
Campbell Barton [Sun, 18 Dec 2011 12:54:50 +0000 (12:54 +0000)]
cleanup of weight paint color setting code, no functional changes

9 years agoFix for toggle buttons in node headers.
Lukas Toenne [Sun, 18 Dec 2011 12:51:50 +0000 (12:51 +0000)]
Fix for toggle buttons in node headers.

The buttons for "hiding" (collapsing) a node, hiding unlinked sockets, additional options, the preview and for opening a node group were all using a custom mouse test function, which was broken. They now use actual buttons instead of just displaying icons. Before executing the respective operators the button's node has to be selected and activated, so the buttons use an intermediate handle function, which selects the node and then calls the operator.

9 years ago- remove rna access to deprecated sequencer attributes x/y offset & zoom.
Campbell Barton [Sun, 18 Dec 2011 09:36:47 +0000 (09:36 +0000)]
- remove rna access to deprecated sequencer attributes x/y offset & zoom.
- Object.to_mesh was still using deprecated colbits variable (object material wouldnt work for any material after 16)
- dont set colbits when setting material slot anymore.

9 years agoformatting edits in py api, no functional changes
Campbell Barton [Sun, 18 Dec 2011 08:50:06 +0000 (08:50 +0000)]
formatting edits in py api, no functional changes

9 years agoSupport for arbitrary sized vectors - (was limited by 2-4 previously)
Campbell Barton [Sun, 18 Dec 2011 07:27:11 +0000 (07:27 +0000)]
Support for arbitrary sized vectors - (was limited by 2-4 previously)

from Andrew Hale

* Text from the submission *

This patch adds the ability to use arbitrary sized vectors from mathutils.
Currently vectors are only of size 2, 3 or 4 since they are generally restricted
to geometric applications. However, we can use arbitrary sized vectors for
efficient calculations and data manipulation.

9 years agobugfix: [#29486] 2D filters make scene disappear when wire material used - patch...
Dalai Felinto [Sat, 17 Dec 2011 21:23:02 +0000 (21:23 +0000)]
bugfix: [#29486] 2D filters make scene disappear when wire material used - patch by Juha Mäki-Kanto
when last drawn material is wire it will not set back to face drawing.

9 years agoQuite some compiler warnings...
Bastien Montagne [Sat, 17 Dec 2011 16:22:08 +0000 (16:22 +0000)]
Quite some compiler warnings...

9 years agobetter to generate the library string always because it could lead to null pointer...
Antony Riakiotakis [Sat, 17 Dec 2011 13:02:31 +0000 (13:02 +0000)]
better to generate the library string always because it could lead to null pointer dereferences. I don't have a non-shader system to check so skipping the conditional just to be safe

9 years agomove GPU_code_generate_glsl_lib to GPU_extensions_init. This makes more sense as...
Antony Riakiotakis [Sat, 17 Dec 2011 12:58:20 +0000 (12:58 +0000)]
move GPU_code_generate_glsl_lib to GPU_extensions_init. This makes more sense as we cleanup the library string in GPU_extensions_exit. Thanks to Mitchel Stokes for reporting and proposing this

9 years agoCalculation of the center and normal for sculpting would ignore whether the sculpting...
Jason Wilkins [Sat, 17 Dec 2011 03:49:39 +0000 (03:49 +0000)]
Calculation of the center and normal for sculpting would ignore whether the sculpting tool is using the current vertex positions/normals or the positions/normals from before the current edit.  Most of the time this will lead to subtle and hard to predict differences from what a user might expect.  There was sum testing and discussion about at the end of last summer and even some screen shots showing the difference.  I'm going to go ahead and apply this since I do not think it is controversial.

9 years agouse 2d copy functions with UV's in more places.
Campbell Barton [Sat, 17 Dec 2011 03:46:38 +0000 (03:46 +0000)]
use 2d copy functions with UV's in more places.

9 years agoCode cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).
Brecht Van Lommel [Sat, 17 Dec 2011 01:13:02 +0000 (01:13 +0000)]
Code cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).

9 years agostyle edit only - move parenthesis onto second line of function definition (in keepin...
Campbell Barton [Sat, 17 Dec 2011 00:52:36 +0000 (00:52 +0000)]
style edit only - move parenthesis onto second line of function definition (in keeping with most of blenders code)

also split some long lines in own code.

9 years agoAutomatically update sound animation cache when doing a mixdown.
Joerg Mueller [Sat, 17 Dec 2011 00:22:15 +0000 (00:22 +0000)]
Automatically update sound animation cache when doing a mixdown.

9 years agoFix #29640: make duplicates release keep hierarchy and parent properties not
Brecht Van Lommel [Fri, 16 Dec 2011 23:56:18 +0000 (23:56 +0000)]
Fix #29640: make duplicates release keep hierarchy and parent properties not
working for multiple objects.

ID.newid only worked for one object, now it uses a hash instead.

9 years agoFix #27847: sequencer scene strip rendering crash, due to use of freed
Brecht Van Lommel [Fri, 16 Dec 2011 22:45:29 +0000 (22:45 +0000)]
Fix #27847: sequencer scene strip rendering crash, due to use of freed
RenderResult.rect. Sergey did all the work to track this down, I'm just
committing a slighty different fix.

9 years agoFix use of deprecated im_type member in quicktime export.
Brecht Van Lommel [Fri, 16 Dec 2011 22:33:22 +0000 (22:33 +0000)]
Fix use of deprecated im_type member in quicktime export.

9 years agoFix #29569: region expander widget drawing poorly antialiased.
Brecht Van Lommel [Fri, 16 Dec 2011 22:00:53 +0000 (22:00 +0000)]
Fix #29569: region expander widget drawing poorly antialiased.

9 years agoCycles Gamma Node
Dalai Felinto [Fri, 16 Dec 2011 20:35:06 +0000 (20:35 +0000)]
Cycles Gamma Node
Node specially useful for Texture correction.

This is also a nice example of a simple node made from scratch in case someone wants to create their custom nodes.
Review by Brecht.

9 years agoMath lib: matrix multiplication order fix for two functions that were
Brecht Van Lommel [Fri, 16 Dec 2011 19:53:12 +0000 (19:53 +0000)]
Math lib: matrix multiplication order fix for two functions that were
inconsistent with similar functions & math notation:

mul_m4_m4m4(R, B, A) => mult_m4_m4m4(R, A, B)
mul_m3_m3m4(R, B, A) => mult_m3_m3m4(R, A, B)

For branch maintainers, it should be relatively simple to fix things manually,
it's also possible run this script after merging to do automatic replacement:

9 years agoNormal Node - Cycles
Dalai Felinto [Fri, 16 Dec 2011 18:15:07 +0000 (18:15 +0000)]
Normal Node - Cycles
reviewed by Brecht, with help from Lukas.

Note: dot is reversed compared to Blender.
In Blender Normals point outside, while in Cycles they point inside.
If you use your own custom vector with the Normal Node you will see a difference.
If you feed it with object normals it should work just as good.

9 years agode-duplicate parent loop checking function
Campbell Barton [Fri, 16 Dec 2011 10:39:43 +0000 (10:39 +0000)]
de-duplicate parent loop checking function

9 years agoremove duplicate if'0'd functions, same versions are in drawarmature.c.
Campbell Barton [Fri, 16 Dec 2011 10:30:53 +0000 (10:30 +0000)]
remove duplicate if'0'd functions, same versions are in drawarmature.c.
also added note of function to de-duplicate.

9 years agoFixed incorrect usage of enum as integer
Sergey Sharybin [Fri, 16 Dec 2011 10:18:59 +0000 (10:18 +0000)]
Fixed incorrect usage of enum as integer

9 years agostatic functions for getting power of 2 values were being copied about too much,...
Campbell Barton [Fri, 16 Dec 2011 09:25:07 +0000 (09:25 +0000)]
static functions for getting power of 2 values were being copied about too much, add to the BLI_math api.
- is_power_of_2_i
- power_of_2_min_i
- power_of_2_max_i

9 years agoFixed point cache subframe interpolation issue.
Miika Hamalainen [Fri, 16 Dec 2011 09:22:28 +0000 (09:22 +0000)]
Fixed point cache subframe interpolation issue.

Point cache interpolation was using too early start frame in cases when target frame was a subframe. This appeared as random ghost particles when rendering particle animation with full sample motion blur enabled.

9 years agominor cleanup to mirror code
Campbell Barton [Fri, 16 Dec 2011 07:27:56 +0000 (07:27 +0000)]
minor cleanup to mirror code
- MirrTopoPair.hash was 'long' when only needed to be 'int'
- use 'intptr_t' rather than 'long' when the value is cast back to a pointer.

9 years agofix [#29620] Topology Mirror: not refreshing vertex UUIDs
Campbell Barton [Fri, 16 Dec 2011 04:01:08 +0000 (04:01 +0000)]
fix [#29620] Topology Mirror: not refreshing vertex UUIDs

9 years agofix [#29626] Warp tool: stuck Angle value
Campbell Barton [Fri, 16 Dec 2011 03:45:44 +0000 (03:45 +0000)]
fix [#29626] Warp tool: stuck Angle value

9 years agofix own error [#29631] frame is lost from driver namespace after reload
Campbell Barton [Fri, 16 Dec 2011 03:06:56 +0000 (03:06 +0000)]
fix own error [#29631] frame is lost from driver namespace after reload

9 years agofix [#29635] Attempts to import the site module are met with a TypeError exception.
Campbell Barton [Fri, 16 Dec 2011 00:06:01 +0000 (00:06 +0000)]
fix [#29635] Attempts to import the site module are met with a TypeError exception.

9 years agoCURVE_OT_extrude doesn't have type property, not sure where it came from here.
Sergey Sharybin [Thu, 15 Dec 2011 19:32:57 +0000 (19:32 +0000)]
CURVE_OT_extrude doesn't have type property, not sure where it came from here.

9 years agoreenabled auto scale for derivative maps
Morten Mikkelsen [Thu, 15 Dec 2011 15:48:44 +0000 (15:48 +0000)]
reenabled auto scale for derivative maps

9 years agoBicubic bump map filtering.
Antony Riakiotakis [Thu, 15 Dec 2011 13:58:09 +0000 (13:58 +0000)]
Bicubic bump map filtering.

This commit introduces bicubic bump map capabilities for the viewport for OpenGL 3.0+ capable GPUs.

To use the functionality change the bump mapping method to "best quality"
Previous "best quality" setting becomes "medium quality" now.
For non OpenGL 3.0 GPUs this becomes the same as "medium quality"

* added tooltip descriptions to the bump method settings.
* modified the shader to ommit extraneous matrix multiplications for matrices already provided by OpenGL.

Bicubic shader by Morten Mikkelsen. Thanks a lot!

Oh...and FIRST!

9 years agoBCon 1: Alpha, new features, fun and fixes again! :)
Thomas Dinges [Thu, 15 Dec 2011 13:41:29 +0000 (13:41 +0000)]
BCon 1: Alpha, new features, fun and fixes again! :)

9 years agoFix #29233: Windows accessibility feature "sticky keys" for disabled people not working.
Brecht Van Lommel [Thu, 15 Dec 2011 13:01:01 +0000 (13:01 +0000)]
Fix #29233: Windows accessibility feature "sticky keys" for disabled people not working.

9 years agoAdded note that cmake/scons rules are automatically generated for extern/libmv
Sergey Sharybin [Thu, 15 Dec 2011 12:44:05 +0000 (12:44 +0000)]
Added note that cmake/scons rules are automatically generated for extern/libmv
Also updated generation scripts and templates

9 years agoFree run no gaps time code implementation
Sergey Sharybin [Thu, 15 Dec 2011 12:18:09 +0000 (12:18 +0000)]
Free run no gaps time code implementation

This commit adds new timecode type which counts frames in gapless mode (counting
actually decoded frames instead of using pts to find frame number) which might
resolve issues with files which have got broken or incorrect base time value stored
in the header.

This timecode allows to deal with movies from #29388: Abnormal frame length on MP4 files

9 years agoNew fix for [#29543] Hook modifier: falloff + vgroup influence broken
Bastien Montagne [Thu, 15 Dec 2011 08:57:48 +0000 (08:57 +0000)]
New fix for [#29543] Hook modifier: falloff + vgroup influence broken

Don't know why, but creating a dm when there was none broke multi hooks on curves (see #29567)... So as a valid dm is only mandatory for meshes when a vgroup is set, only create it in those cases!

9 years agoFix #29615: Crash during undo after toggling "Float buffer" in image paint mode
Sergey Sharybin [Thu, 15 Dec 2011 08:01:49 +0000 (08:01 +0000)]
Fix #29615: Crash during undo after toggling "Float buffer" in image paint mode

Crash was caused by different types of buffers stored in tile in undo stack and in
image itself. Store type of buffer in tile, so byte tile wouldn't be applying on
float image anymore.

9 years agoFix #29577: repeat curve duplication not working in 2.60(as well as 2.61rc1)
Sergey Sharybin [Thu, 15 Dec 2011 07:54:13 +0000 (07:54 +0000)]
Fix #29577: repeat curve duplication not working in 2.60(as well as 2.61rc1)

Issue was caused by direct call of transforn operator from extrude and duplicate,
made them macro of duplicate/exturde and transform, so now repeating works nicely.

9 years agominor vertex group edits
Campbell Barton [Wed, 14 Dec 2011 23:53:46 +0000 (23:53 +0000)]
minor vertex group edits
* when freeing a deform weight, use one less memcpy call.
* vgroup_delete_object_mode(), was looping on the deform verts twice when it didn't need to.

9 years agomore vertex weight edits,
Campbell Barton [Wed, 14 Dec 2011 22:54:38 +0000 (22:54 +0000)]
more vertex weight edits,
* replace inline loops with api calls.
* change constraints so verts with 0.0 weight are ignored like they are everywhere else.

9 years agovertex group changes,
Campbell Barton [Wed, 14 Dec 2011 21:08:08 +0000 (21:08 +0000)]
vertex group changes,

use more api functions more (some vertex group editing functions were copied about), also make some functions int oapi calls.

- remove defgroup_find_index(), use BLI_findlink instead since they both work the same way.
- move static function getNearestPointOnPlane() to BLI_math api function closest_to_plane_v3()
- ED_vgroup_give_parray() added option to return an array where unselected verts are NULL (simplifies code & works for lattice when it didn't before).
- more consistant error checking of ob->actdef.

9 years agoFix for Jens commit, otherwise OSX will crash without Jack as soon as audio access...
Joerg Mueller [Wed, 14 Dec 2011 08:38:21 +0000 (08:38 +0000)]
Fix for Jens commit, otherwise OSX will crash without Jack as soon as audio access is tried.

9 years agoCleanup for 42622 using struct stat instead boost
Jens Verwiebe [Wed, 14 Dec 2011 08:01:24 +0000 (08:01 +0000)]
Cleanup for 42622 using struct stat instead boost

9 years agoOSX: Add a framework-check for Jack to avoid crashes
Jens Verwiebe [Wed, 14 Dec 2011 06:15:52 +0000 (06:15 +0000)]
OSX: Add a framework-check for Jack to avoid crashes

9 years agofix for py noise doc string (not a show stopper :) )
Campbell Barton [Tue, 13 Dec 2011 22:30:23 +0000 (22:30 +0000)]
fix for py noise doc string (not a show stopper :) )

9 years agoDo not use a dot in the end of descriptions
Sergey Sharybin [Tue, 13 Dec 2011 19:40:49 +0000 (19:40 +0000)]
Do not use a dot in the end of descriptions

9 years agoFirst Blender 2.61 commit! (Sneaked in quick tooltop fix too).
Ton Roosendaal [Tue, 13 Dec 2011 16:44:31 +0000 (16:44 +0000)]
First Blender 2.61 commit! (Sneaked in quick tooltop fix too).
A tag will happen after this commit.

9 years agoDo not switch to safe malloc if tracking sequence
Sergey Sharybin [Tue, 13 Dec 2011 16:37:52 +0000 (16:37 +0000)]
Do not switch to safe malloc if tracking sequence

Malloc is getting to be safe on sequence tracking by the jobs system,
so no additional set up are necessary.

This hopefully fixes crash on OSX with OpenMP enabled when compiling by older gcc

9 years agoDisallow link/append when in edit mode
Sergey Sharybin [Tue, 13 Dec 2011 12:51:40 +0000 (12:51 +0000)]
Disallow link/append when in edit mode

Linking changes active object which is pretty useful in general,
but which totally confuses edit mode (i.e. it becoming not so obvious
to leave from edit mode and inwalid tools in toolbar might be displayed)
so disable link/append when in edit mode

9 years agoFix cycles compile for win32.
Miika Hamalainen [Tue, 13 Dec 2011 10:17:17 +0000 (10:17 +0000)]
Fix cycles compile for win32.

9 years agoSmall typo fix for tooltip of FModifier.blend_out
Joshua Leung [Tue, 13 Dec 2011 10:15:14 +0000 (10:15 +0000)]
Small typo fix for tooltip of FModifier.blend_out

Cheers to "Lockal" for finding this one!

9 years agoFixed crash when tracking several tracks manually
Sergey Sharybin [Tue, 13 Dec 2011 10:07:22 +0000 (10:07 +0000)]
Fixed crash when tracking several tracks manually

Crash was caused by non-threadsafe guarded allocatio which becomes
threadsafe only when thread was started using BLI_threads module.

9 years agoBuildbot tweaks:
Sergey Sharybin [Tue, 13 Dec 2011 09:54:48 +0000 (09:54 +0000)]
Buildbot tweaks:
- Enable SSE/SSe2 for 64bit builds
- Build CUDA binaries

9 years agoFix #29594: cycles NaN values with window coordinates mapping.
Brecht Van Lommel [Tue, 13 Dec 2011 00:00:26 +0000 (00:00 +0000)]
Fix #29594: cycles NaN values with window coordinates mapping.

9 years agoCycles: require Experimental to be set to enable CUDA on cards with shader model
Brecht Van Lommel [Mon, 12 Dec 2011 22:51:35 +0000 (22:51 +0000)]
Cycles: require Experimental to be set to enable CUDA on cards with shader model
lower than 1.3, since we're not officially supporting these. We're already not
providing CUDA binaries for these, so better make it clear when compiling from
source too.

9 years agoOSX: proper scons config and linking weak for jackOSX and errorhandling
Jens Verwiebe [Mon, 12 Dec 2011 22:17:02 +0000 (22:17 +0000)]
OSX: proper scons config and linking weak for jackOSX and errorhandling

9 years agocorrection to report message
Campbell Barton [Mon, 12 Dec 2011 20:57:10 +0000 (20:57 +0000)]
correction to report message

9 years agoadd WM_operator_call_notest() for operators that need to call themselves within invok...
Campbell Barton [Mon, 12 Dec 2011 18:52:18 +0000 (18:52 +0000)]
add WM_operator_call_notest() for operators that need to call themselves within invoke functions without being freed.

9 years agoFix #29603: Mode switch on linked objects
Sergey Sharybin [Mon, 12 Dec 2011 18:25:52 +0000 (18:25 +0000)]
Fix #29603: Mode switch on linked objects

Do not allow to enter to weight paint mode for proxied objects.

9 years agofix [#29537] file/save crashes when target path isnt found
Campbell Barton [Mon, 12 Dec 2011 18:06:36 +0000 (18:06 +0000)]
fix [#29537] file/save crashes when target path isnt found

bug was that uiPupMenuSaveOver(...) could run the WM API call function which freed the operator, within the low level invoke function which kept using the freed memory.

Changed uiPupMenuSaveOver(...) to only show a popup so the caller needs to check if the file exists and should be immediately written (which was done everywhere except for blend saving anyway).

* added note that operators invoke/exec funcs cant call WM_operator_call(...) on themselves, ends up using freed memory.
* added BLI_is_file(path), checks the file exists and isnt a directory.

9 years agoFix #29600: Hook actions wrong Tool Shelf adjust
Sergey Sharybin [Mon, 12 Dec 2011 14:54:28 +0000 (14:54 +0000)]
Fix #29600: Hook actions wrong Tool Shelf adjust

Do not register hook_assign and hook_remove operators in the redo panel.

9 years agoFix #29599: Side of Active tool not working in Faces/Edges
Sergey Sharybin [Mon, 12 Dec 2011 14:52:00 +0000 (14:52 +0000)]
Fix #29599: Side of Active tool not working in Faces/Edges

Added warning message if there's no last selected vertex in the selection stack.

9 years agofix for 2 crashes running operators in background mode.
Campbell Barton [Mon, 12 Dec 2011 03:25:10 +0000 (03:25 +0000)]
fix for 2 crashes running operators in background mode.

9 years agonot all filepaths had the FILE_PATH subtype, this means using non utf8 paths would...
Campbell Barton [Sun, 11 Dec 2011 21:23:29 +0000 (21:23 +0000)]
not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.

9 years agofix for bpy.path.abspath() on windows when the library argument was set and its self...
Campbell Barton [Sun, 11 Dec 2011 19:48:56 +0000 (19:48 +0000)]
fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too.

9 years agofix [#29579] Redo brolken when jobs are running
Campbell Barton [Sun, 11 Dec 2011 19:23:02 +0000 (19:23 +0000)]
fix [#29579] Redo brolken when jobs are running

* undo now checks screen jobs only, was checking all jobs before so a material preview could make an undo fail.
  now this is only limiteds for render/fluid bake/bake.

* the redo UI is now disabled when screen operators run.

9 years agofix for accessing the keying set menu as an enum rather than in int
Campbell Barton [Sun, 11 Dec 2011 17:10:46 +0000 (17:10 +0000)]
fix for accessing the keying set menu as an enum rather than in int

9 years agoSet lens settings to blender's camera on "Setup Tracking Scene" operator
Sergey Sharybin [Sun, 11 Dec 2011 15:48:15 +0000 (15:48 +0000)]
Set lens settings to blender's camera on "Setup Tracking Scene" operator
Helps in cases camera was removed from scene after solve before setting scene up.

9 years agoFix #29574: Strange crash using translated Blender
Sergey Sharybin [Sun, 11 Dec 2011 15:42:39 +0000 (15:42 +0000)]
Fix #29574: Strange crash using translated Blender

Description can be NULL for properties like enum items. Just added NULL-check here

9 years agoSCA: Scene Actuator text error
Dalai Felinto [Sun, 11 Dec 2011 10:39:41 +0000 (10:39 +0000)]
SCA: Scene Actuator text error
copy+paste bug when creating the rnas

9 years agomissing config_freebsd.h from cmake file list
Campbell Barton [Sun, 11 Dec 2011 00:53:37 +0000 (00:53 +0000)]
missing config_freebsd.h from cmake file list

9 years agodelta scale default was still left at 0.0
Campbell Barton [Sun, 11 Dec 2011 00:01:04 +0000 (00:01 +0000)]
delta scale default was still left at 0.0

9 years agoremove unused function, found when syncing with bmesh, also remove/comment some unuse...
Campbell Barton [Sat, 10 Dec 2011 20:10:28 +0000 (20:10 +0000)]
remove unused function, found when syncing with bmesh, also remove/comment some unused defines

9 years agoIn the node space context update function: Properly clear the snode->edittree pointer...
Lukas Toenne [Sat, 10 Dec 2011 15:52:08 +0000 (15:52 +0000)]
In the node space context update function: Properly clear the snode->edittree pointer when no snode->nodetree is active. This would lead to crash in operators when switching from an existing node tree, since the usual poll function only tests for the edittree.

Fixes bug #29566.

9 years agoFix #29516: Twist brush giving crazy results
Sergey Sharybin [Sat, 10 Dec 2011 14:45:30 +0000 (14:45 +0000)]
Fix #29516: Twist brush giving crazy results

- Rotation now happens around initial stroke location rather than around scene origin
- Added slider for rotation strength which helps in cases only few rotation is needed
  to be to increase the precision of such strokes

9 years agoFixed for movieclips tag function which was tagging wrong list
Sergey Sharybin [Sat, 10 Dec 2011 13:54:51 +0000 (13:54 +0000)]
Fixed for movieclips tag function which was tagging wrong list

Pointed out by Lockal, thanks!

9 years agoBugfix [#29567] Second Hook Modifier fails on Curve Object
Joshua Leung [Sat, 10 Dec 2011 03:37:37 +0000 (03:37 +0000)]
Bugfix [#29567] Second Hook Modifier fails on Curve Object

This was broken in r.42515. In particular, rigs with Spline IK would break,
since they often use curves with hook modifiers controlling the control-points
of those curves.

9 years agoCompile fix for r.42546 typo
Joshua Leung [Sat, 10 Dec 2011 03:24:19 +0000 (03:24 +0000)]
Compile fix for r.42546 typo

9 years agodisabling DM_calc_auto_bump_scale() until after release
Morten Mikkelsen [Sat, 10 Dec 2011 01:14:36 +0000 (01:14 +0000)]
disabling DM_calc_auto_bump_scale() until after release

9 years agopicky edits & regen man page
Campbell Barton [Sat, 10 Dec 2011 01:07:22 +0000 (01:07 +0000)]
picky edits & regen man page

9 years agofix for error in bpy_extras.image_utils.load_image() when the image file exists but...
Campbell Barton [Sat, 10 Dec 2011 01:01:22 +0000 (01:01 +0000)]
fix for error in bpy_extras.image_utils.load_image() when the image file exists but cant be read (wrong permissions for eg).

9 years agoverify existence of dm
Morten Mikkelsen [Sat, 10 Dec 2011 01:00:12 +0000 (01:00 +0000)]
verify existence of dm

9 years agofixes scale on derivative maps
Morten Mikkelsen [Fri, 9 Dec 2011 23:26:06 +0000 (23:26 +0000)]
fixes scale on derivative maps

9 years agofix for bpy_extras.image_utils.load_image() making a placeholder image when passed...
Campbell Barton [Fri, 9 Dec 2011 21:07:37 +0000 (21:07 +0000)]
fix for bpy_extras.image_utils.load_image() making a placeholder image when passed a path in bytes.
made OBJ import fail when the image was missing.

9 years agocheck for weights outside of 0-1 range when validating weights
Campbell Barton [Fri, 9 Dec 2011 20:29:21 +0000 (20:29 +0000)]
check for weights outside of 0-1 range when validating weights