blender.git
6 years agoUpgrade for the add_search node operator. This now uses the same basic system as...
Lukas Toenne [Thu, 9 May 2013 11:43:48 +0000 (11:43 +0000)]
Upgrade for the add_search node operator. This now uses the same basic system as the regular add_node operator, with enum items generated from the common node categories system (nodeitems_utils module). This means that any node listed in the regular node Add menu can now also be added via searching, including node groups and the like. The search operator also uses the subsequent transform to make insertion a bit more streamlined.

6 years agocan't use alloca in inline functions (fills up stack - I thought compiler would be...
Campbell Barton [Thu, 9 May 2013 11:42:24 +0000 (11:42 +0000)]
can't use alloca in inline functions (fills up stack - I thought compiler would be smart here).

also reserve the exact number of vert/face/edge/loops when creating a bmesh during undo.

6 years agobmesh: avoid using BLI_array macros for every face when converting to bmesh, replace...
Campbell Barton [Thu, 9 May 2013 10:44:38 +0000 (10:44 +0000)]
bmesh: avoid using BLI_array macros for every face when converting to bmesh, replace with alloca

6 years agobmesh speedup: skip free-realloc while running CustomData_bmesh_merge() when nothing...
Campbell Barton [Thu, 9 May 2013 10:41:05 +0000 (10:41 +0000)]
bmesh speedup: skip free-realloc while running CustomData_bmesh_merge() when nothing is changed (happens quite often that there is nothing to do).

6 years agoFix for add_node operator: needs to have SKIP_SAVE set for the settings collection...
Lukas Toenne [Thu, 9 May 2013 10:13:13 +0000 (10:13 +0000)]
Fix for add_node operator: needs to have SKIP_SAVE set for the settings collection to prevent it from re-using settings from a previous call. This would otherwise lead to python exceptions when those properties don't exist for the other node type (point in case: node_tree only is defined for group nodes).

6 years agoPartial revert of own commits r56604 and r56603:
Thomas Dinges [Thu, 9 May 2013 10:03:38 +0000 (10:03 +0000)]
Partial revert of own commits r56604 and r56603:
* Reverted the changes to code comments, as suggested by Campbell. It makes it more hard to follow.
* Only keep changes to actual UI messages.

6 years agoFix for do_versions bug with node groups: The special case of direct input-to-output...
Lukas Toenne [Thu, 9 May 2013 08:29:59 +0000 (08:29 +0000)]
Fix for do_versions bug with node groups: The special case of direct input-to-output connections was not handled correctly. In this case both the tonode and fromnode pointers in old node groups are NULL.

6 years agoFix suggested by Campbell Barton: use %r instead of %s when building the python expre...
Lukas Toenne [Thu, 9 May 2013 08:05:02 +0000 (08:05 +0000)]
Fix suggested by Campbell Barton: use %r instead of %s when building the python expression for the node operator settings to ensure correct escaping.

6 years agofix for 2 errors introduced since release
Campbell Barton [Thu, 9 May 2013 07:02:51 +0000 (07:02 +0000)]
fix for 2 errors introduced since release
- shape key NULL pointer dereference.
- use uninitialized variable for bmesh free.

also update credits and merge dissolve flag assignment.

6 years agofix rna_info, python method to C function wasn't being tested for. (broke changelog...
Campbell Barton [Thu, 9 May 2013 02:50:59 +0000 (02:50 +0000)]
fix rna_info, python method to C function wasn't being tested for. (broke changelog generator)

6 years agoupdate autogenerated changelog. also correct typos in the generator.
Campbell Barton [Thu, 9 May 2013 01:58:49 +0000 (01:58 +0000)]
update autogenerated changelog. also correct typos in the generator.

6 years agofix [#35257] Brige > Merge sometimes flips result
Campbell Barton [Wed, 8 May 2013 23:14:27 +0000 (23:14 +0000)]
fix [#35257] Brige > Merge sometimes flips result

6 years agobugfix: [#31757] setGLSLMaterialSetting has no effect
Dalai Felinto [Wed, 8 May 2013 21:43:35 +0000 (21:43 +0000)]
bugfix: [#31757] setGLSLMaterialSetting has no effect
original patch by me, with contribution from HG1 and Florian Völker

bug introduced in rev. 40113

6 years agoUI naming consistency:
Thomas Dinges [Wed, 8 May 2013 21:41:47 +0000 (21:41 +0000)]
UI naming consistency:
* ShapeKey -> Shape Key. Was called "Shape Key" in most places already.

Pointed out by Dalai, thanks!

6 years agoUI naming consistency:
Thomas Dinges [Wed, 8 May 2013 21:05:52 +0000 (21:05 +0000)]
UI naming consistency:
* DopeSheet -> Dope Sheet. No need to glue the words together.

Only changed comments and UI strings, no functional changes. Request by Dalai Felinto.

6 years agoCycles / Tile Rendering:
Thomas Dinges [Wed, 8 May 2013 19:49:09 +0000 (19:49 +0000)]
Cycles / Tile Rendering:
* Code refactor of tile ordering to simplify the code and avoid some branching.
* Changed the Center method, so it really follows center -> corners, instead of the BI method, which was confusing sometimes.

6 years agoAttempt to fix OS X build with 10.6 SDK, was not working due to recent fullscreen...
Brecht Van Lommel [Wed, 8 May 2013 19:37:36 +0000 (19:37 +0000)]
Attempt to fix OS X build with 10.6 SDK, was not working due to recent fullscreen bug fixes.

6 years agoCycles / Hair rendering:
Thomas Dinges [Wed, 8 May 2013 17:33:25 +0000 (17:33 +0000)]
Cycles / Hair rendering:
* Enable hair rendering on the GPU.

Patch by Stuart Broadfoot, with small tweaks by me, to only enable it on sm_20 and above.

6 years agoBlender 2.68 release cycle begin:
Thomas Dinges [Wed, 8 May 2013 17:23:56 +0000 (17:23 +0000)]
Blender 2.68 release cycle begin:
* BCon1, Alpha. Let's have an awesome one!

6 years agoUpdated the custom_nodes.py template script to reflect socket draw API changes in...
Lukas Toenne [Wed, 8 May 2013 16:17:04 +0000 (16:17 +0000)]
Updated the custom_nodes.py template script to reflect socket draw API changes in r56584 and r56585.

6 years agoFix for node group user count: since node group pointer uses an explicit setter callb...
Lukas Toenne [Wed, 8 May 2013 16:00:08 +0000 (16:00 +0000)]
Fix for node group user count: since node group pointer uses an explicit setter callback it has to do user count increment/decrement manually.

6 years agoFix for node item polling: recursion check was the wrong way around, needs to test...
Lukas Toenne [Wed, 8 May 2013 15:41:09 +0000 (15:41 +0000)]
Fix for node item polling: recursion check was the wrong way around, needs to test is the parent tree is inside the group.

6 years agoAdded filter to the node group items callback to remove recursive node groups right...
Lukas Toenne [Wed, 8 May 2013 15:41:07 +0000 (15:41 +0000)]
Added filter to the node group items callback to remove recursive node groups right from the start. These tree pointers would be polled out internally as well, but this way they don't show up in the menus in the first place.

6 years agoA bit more pythonic way of using the items callback in node categories. The category...
Lukas Toenne [Wed, 8 May 2013 15:41:05 +0000 (15:41 +0000)]
A bit more pythonic way of using the items callback in node categories. The category.items attribute is now a function taking a context parameter instead of a property. This can be used for checking validity, e.g. for doing node group recursion checks, and filter out unusable items.

6 years ago2 fixes for node group node_tree pointer property: Make sure the nodeGroupPoll functi...
Lukas Toenne [Wed, 8 May 2013 15:41:01 +0000 (15:41 +0000)]
2 fixes for node group node_tree pointer property: Make sure the nodeGroupPoll function (which checks for recursion) is used both in the poll callback as well as the actual pointer assignment (set). The poll callback doesn't seem to be used when directly setting the node_tree pointer from the API, so to make sure no dangerous recursion situation can happen this needs a second check.

6 years agoExpose the data type property of node group interfaces for easier comparison in python.
Lukas Toenne [Wed, 8 May 2013 15:40:58 +0000 (15:40 +0000)]
Expose the data type property of node group interfaces for easier comparison in python.

6 years agoMoved a couple of common properties into the NodeAddOperator base class to avoid...
Lukas Toenne [Wed, 8 May 2013 15:40:53 +0000 (15:40 +0000)]
Moved a couple of common properties into the NodeAddOperator base class to avoid repetitive code. A new operator node_add_and_link is another variant that first creates a node and them connects a specific socket to an existing one (defined by context pointer).

6 years agoRemoved the unused socket template system from the bpy_types Node base class (it...
Lukas Toenne [Wed, 8 May 2013 15:40:51 +0000 (15:40 +0000)]
Removed the unused socket template system from the bpy_types Node base class (it interferes with the input_templates/output_templates functions from C nodes). This can be reimplemented in a nicer way for pynode subclasses later on, but should not be part of the basic Node class.

6 years agoExposed the node socket templates of C nodes in RNA by means of a classmethod. This...
Lukas Toenne [Wed, 8 May 2013 15:40:49 +0000 (15:40 +0000)]
Exposed the node socket templates of C nodes in RNA by means of a classmethod. This will allow the node link menu to determine feasible socket connections before an actual node instance is created.

6 years agoRemoved the add_group_node operator, this is now integrated into the generic node_add...
Lukas Toenne [Wed, 8 May 2013 15:40:46 +0000 (15:40 +0000)]
Removed the add_group_node operator, this is now integrated into the generic node_add operator. The group node tree pointer is then part of the settings dictionary.

6 years agoExpose the HIDE_VALUE flag of node sockets in RNA.
Lukas Toenne [Wed, 8 May 2013 15:40:44 +0000 (15:40 +0000)]
Expose the HIDE_VALUE flag of node sockets in RNA.

6 years agoWorkaround for C nodes: In order to make registerable RNA methods of the standard...
Lukas Toenne [Wed, 8 May 2013 15:40:40 +0000 (15:40 +0000)]
Workaround for C nodes: In order to make registerable RNA methods of the standard C nodes (e.g. poll or draw_buttons) available in python scripts, they need a specialized Node subtype (called NodeInternal). This is necessary because bpy omits any registerable functions of RNA types in the generated python classes, relying instead on using the supposed native implementation in a registered python class. Since the standard shader/compositor/texture nodes in Blender are not registered but directly created in makesrna they lack all registerable function in the associated python types. The NodeInternal RNA subtype replaces the registerable functions of the base Node type to solve this issue.

6 years agoExtended the draw callback API for node sockets with an explicit text parameter,...
Lukas Toenne [Wed, 8 May 2013 14:58:41 +0000 (14:58 +0000)]
Extended the draw callback API for node sockets with an explicit text parameter, instead of always using the sock->name string. This can be useful for drawing the socket values separate from the label, e.g. in the node view template.

6 years agoChange to socket draw functions: instead of always only drawing the socket label...
Lukas Toenne [Wed, 8 May 2013 14:58:37 +0000 (14:58 +0000)]
Change to socket draw functions: instead of always only drawing the socket label for connected sockets, leave this check up to the socket draw function itself. This allows future socket types to draw buttons or other info in all cases and handle connected/unconnected state more flexibly.

The drawinputfunc/drawoutputfunc callbacks in bNodeType are pretty much empty wrappers now and should be removed at some point. This per-node differentiation should rather be implemented as a specialized socket type if necessary. The only use case for this feature that remains is the file output node in compositor, which displays shortened file format info for each socket.

6 years agomore optimal method of calculating the normal for the solidify modifier.
Campbell Barton [Wed, 8 May 2013 14:33:02 +0000 (14:33 +0000)]
more optimal method of calculating the normal for the solidify modifier.
When adding 2 unit length vectors, the length can be used to calculate the angle.

6 years agoMask modifier for sequences
Sergey Sharybin [Wed, 8 May 2013 14:20:57 +0000 (14:20 +0000)]
Mask modifier for sequences

This modifier uses a mask set in the modifier settings
and multiplies strip by it. Alpha channel will also be
multiplied by mask, which makes it easy to mask some
objects on footage and alpha-over them in sequencer.

Actually, this modifier sets alpha for byte strips
directly (since byte is always straight alpha) and
multiplies float buffer by mask (flaots are premulled)
so in both cases masked strip could be easy alpha-overed
without any artifacts.

It uses own structure with only SequenceModifierData
property in to preserve both forward and backwards
compatibilities (using new structure ensures modifier
will be ignored on load in older blenders, the same
happens for mesh modifiers actually).

Request from Pablo Vazquez.

6 years agoFix for #35253, Cannot animate X, Y, Z values in nodes with vector sub-menu. The...
Lukas Toenne [Wed, 8 May 2013 14:18:09 +0000 (14:18 +0000)]
Fix for #35253, Cannot animate X, Y, Z values in nodes with vector sub-menu. The "component menu" template used for these socket buttons opens a popup, but this ui function does not support RNA info directly. Setting the uiBut rna pointer directly solves it.

6 years agocode cleanup: dissolve - use iterator macros, remove unused function.
Campbell Barton [Wed, 8 May 2013 14:08:37 +0000 (14:08 +0000)]
code cleanup: dissolve - use iterator macros, remove unused function.

6 years agomesh dissolve vertices: option to split off corners of surrounding faces, makes the...
Campbell Barton [Wed, 8 May 2013 14:01:38 +0000 (14:01 +0000)]
mesh dissolve vertices: option to split off corners of surrounding faces, makes the result more localized to the area around the vertex.

6 years agosplit dissolve into 3 different operators (face/edge/vert).
Campbell Barton [Wed, 8 May 2013 13:48:57 +0000 (13:48 +0000)]
split dissolve into 3 different operators (face/edge/vert).

6 years agoFix #35219: blender internal auto ray bias to avoid the terminator shadow
Brecht Van Lommel [Wed, 8 May 2013 13:23:20 +0000 (13:23 +0000)]
Fix #35219: blender internal auto ray bias to avoid the terminator shadow
problem was giving light flickering on a mesh with animated hair strands.

Now strands are not used to compute this auto bias excluded from this, from
tests it does not seem to be helpful for hair and only gives issues.

6 years agoFix #35240: command line -t number of threads option did not work for cycles.
Brecht Van Lommel [Wed, 8 May 2013 13:23:17 +0000 (13:23 +0000)]
Fix #35240: command line -t number of threads option did not work for cycles.
Now it works for blender internal, cycles and other multithreading code in
Blender in both background and UI mode.

6 years agoFix #35246: cycles has no simple way to combine bump and normal mapping. Now
Brecht Van Lommel [Wed, 8 May 2013 13:23:13 +0000 (13:23 +0000)]
Fix #35246: cycles has no simple way to combine bump and normal mapping. Now
the Bump node has a Normal input, so you can chain it after a Normal Map node.
Note that normal mapping always has to be done first because it is tied to the
particular mesh surface and tangents.

6 years agofix for recent commit, WITH_GUARDEDALLOC wasn't enabled for makesrna, makesdna.
Campbell Barton [Wed, 8 May 2013 13:19:55 +0000 (13:19 +0000)]
fix for recent commit, WITH_GUARDEDALLOC wasn't enabled for makesrna, makesdna.

6 years agoFix #35093: New Basis shape key doesn't act as Basis
Sergey Sharybin [Wed, 8 May 2013 13:16:45 +0000 (13:16 +0000)]
Fix #35093: New Basis shape key doesn't act as Basis

Made it so Move Shape Key ensures first key is a refkey,
so now it's possible to change basis key from the interface.

It's still needed to manually teak key's relative_key,
not sure whether there's a reliable automated way to tweak
this value when bassi key is changing.

6 years agoFix #35252: Crash with the node placed partially behind the screen
Sergey Sharybin [Wed, 8 May 2013 13:16:39 +0000 (13:16 +0000)]
Fix #35252: Crash with the node placed partially behind the screen

Issue was caused by negative maximal possible text width happening
in label clipping.

Solved by clamping width to 0 if it's negative.

6 years agofix [#30862] "Lock" and "Box" Quad View options won't stay put when toggling
Campbell Barton [Wed, 8 May 2013 13:01:05 +0000 (13:01 +0000)]
fix [#30862] "Lock" and "Box" Quad View options won't stay put when toggling

6 years agoadd in asserts when rv3d->viewmatob, rv3d->persmatob are not initialized.
Campbell Barton [Wed, 8 May 2013 13:00:52 +0000 (13:00 +0000)]
add in asserts when rv3d->viewmatob, rv3d->persmatob are not initialized.

This is often hard to spot since in many cases it works correctly even
when not initialized but may still fail in other situations.

6 years agocode cleanup: ui_but_is_rna_undo --> ui_is_but_rna_undo (ui_is_but_*** is used elsewhere)
Campbell Barton [Wed, 8 May 2013 13:00:33 +0000 (13:00 +0000)]
code cleanup: ui_but_is_rna_undo --> ui_is_but_rna_undo (ui_is_but_*** is used elsewhere)

6 years agominor speedup for bmesh - add CustomData_bmesh_free_block_data(), use
Campbell Barton [Wed, 8 May 2013 13:00:25 +0000 (13:00 +0000)]
minor speedup for bmesh - add CustomData_bmesh_free_block_data(), use
when the block would be immediately allocated again.

6 years agocode cleanup: remove ShapeActionActuator, they are now versioned out.
Campbell Barton [Wed, 8 May 2013 13:00:14 +0000 (13:00 +0000)]
code cleanup: remove ShapeActionActuator, they are now versioned out.

6 years agocode cleanup: remove redundant check in writedata().
Campbell Barton [Wed, 8 May 2013 13:00:06 +0000 (13:00 +0000)]
code cleanup: remove redundant check in writedata().

6 years agospeedup for freeing bmeshes, skip calling free on every
Campbell Barton [Wed, 8 May 2013 12:59:56 +0000 (12:59 +0000)]
speedup for freeing bmeshes, skip calling free on every
vert/edge/face/loop if there are no free functions for the customdata
layers.

6 years agouse BM_face_create_ngon_verts for python api face creation
Campbell Barton [Wed, 8 May 2013 12:59:46 +0000 (12:59 +0000)]
use BM_face_create_ngon_verts for python api face creation
(avoid doing it inline).

6 years agocode cleanup: remove references to BLI_rand.h
Campbell Barton [Wed, 8 May 2013 12:59:35 +0000 (12:59 +0000)]
code cleanup: remove references to BLI_rand.h

6 years agosmooth falloff options for loopcut.
Campbell Barton [Wed, 8 May 2013 12:58:28 +0000 (12:58 +0000)]
smooth falloff options for loopcut.

6 years agorename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
Campbell Barton [Wed, 8 May 2013 12:58:11 +0000 (12:58 +0000)]
rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
was renamed fairly recently but other similar iterators not negated
like this, would prefer to keep it as it was

6 years agouse bool for customdata functions.
Campbell Barton [Wed, 8 May 2013 12:57:18 +0000 (12:57 +0000)]
use bool for customdata functions.

6 years agode-duplicate draw_new_particle_system() particle drawing.
Campbell Barton [Wed, 8 May 2013 12:57:07 +0000 (12:57 +0000)]
de-duplicate draw_new_particle_system() particle drawing.

6 years agoauto indent for multi-line python statements.
Campbell Barton [Wed, 8 May 2013 12:57:00 +0000 (12:57 +0000)]
auto indent for multi-line python statements.

6 years agocode clenup: rename BKE_mesh_poly_calc_angles -> BKE_mesh_calc_poly_angles
Campbell Barton [Wed, 8 May 2013 12:56:51 +0000 (12:56 +0000)]
code clenup: rename BKE_mesh_poly_calc_angles -> BKE_mesh_calc_poly_angles

6 years agoadd option to only beauty fill between vertices with non-matching tags,
Campbell Barton [Wed, 8 May 2013 12:56:41 +0000 (12:56 +0000)]
add option to only beauty fill between vertices with non-matching tags,
useful for beauty filling the result of a bridge between 2 edge-loops.

6 years agoknife tool: use faster method for sort_by_frac_along(), no need to call
Campbell Barton [Wed, 8 May 2013 12:56:31 +0000 (12:56 +0000)]
knife tool: use faster method for sort_by_frac_along(), no need to call
line_point_factor_v3().

6 years agoknife tool: use the squared distance for comparison.
Campbell Barton [Wed, 8 May 2013 12:56:24 +0000 (12:56 +0000)]
knife tool: use the squared distance for comparison.

6 years agoknife tool: use 2d vectors for screen coords.
Campbell Barton [Wed, 8 May 2013 12:56:17 +0000 (12:56 +0000)]
knife tool: use 2d vectors for screen coords.

6 years agouse smaller size for uiWidgetTrias.vec
Campbell Barton [Wed, 8 May 2013 12:56:11 +0000 (12:56 +0000)]
use smaller size for uiWidgetTrias.vec

6 years agoremove unused define CLAMPTEST, move INPR to
Campbell Barton [Wed, 8 May 2013 12:56:02 +0000 (12:56 +0000)]
remove unused define CLAMPTEST, move INPR to
collision_compute_barycentric(), only place its used.

6 years agowarn of sign conversions for low level apis - ghash, heap, mempool
Campbell Barton [Wed, 8 May 2013 12:55:51 +0000 (12:55 +0000)]
warn of sign conversions for low level apis - ghash, heap, mempool

6 years agoadd matrix multiply for projection that outputs 2d values.
Campbell Barton [Wed, 8 May 2013 12:55:36 +0000 (12:55 +0000)]
add matrix multiply for projection that outputs 2d values.

6 years agoadd option to disable guardedalloc, helps for debugging memory errors
Campbell Barton [Wed, 8 May 2013 12:55:23 +0000 (12:55 +0000)]
add option to disable guardedalloc, helps for debugging memory errors
since guardedalloc confuses them.

The option cases a warning on build, since its ownly for experimental
use.

6 years agouse static functions for raycast functions.
Campbell Barton [Wed, 8 May 2013 12:55:05 +0000 (12:55 +0000)]
use static functions for raycast functions.

6 years agouse unsigned int, for mask rasterizer.
Campbell Barton [Wed, 8 May 2013 12:54:47 +0000 (12:54 +0000)]
use unsigned int, for mask rasterizer.

6 years agocode cleanup: use 'const float[2]' where possible.
Campbell Barton [Wed, 8 May 2013 12:54:33 +0000 (12:54 +0000)]
code cleanup: use 'const float[2]' where possible.

6 years agouse unsigned int's for smallhash, avoids using ABS when converting an
Campbell Barton [Wed, 8 May 2013 12:54:07 +0000 (12:54 +0000)]
use unsigned int's for smallhash, avoids using ABS when converting an
int from a key.

6 years agocode cleanup: BKE_mesh_nurbs_displist_to_mdata(), use const bool for
Campbell Barton [Wed, 8 May 2013 12:53:52 +0000 (12:53 +0000)]
code cleanup: BKE_mesh_nurbs_displist_to_mdata(), use const bool for
'conv_polys'

6 years agouse negative dot product for clipping, rather then doing it inline.
Campbell Barton [Wed, 8 May 2013 12:53:43 +0000 (12:53 +0000)]
use negative dot product for clipping, rather then doing it inline.

6 years agocode cleanup: remove unused 'dm' arg from BVHTreeFromMesh.
Campbell Barton [Wed, 8 May 2013 12:53:34 +0000 (12:53 +0000)]
code cleanup: remove unused 'dm' arg from BVHTreeFromMesh.

6 years agoremove unneeded null check in draw_viewport_name
Campbell Barton [Wed, 8 May 2013 12:53:14 +0000 (12:53 +0000)]
remove unneeded null check in draw_viewport_name

6 years agofix [#35259] Crash when enabling mesh analysis intersect.
Campbell Barton [Wed, 8 May 2013 12:40:23 +0000 (12:40 +0000)]
fix [#35259] Crash when enabling mesh analysis intersect.

6 years agoFix #35255: build for older OpenCollada versions failed, but don't see a good
Brecht Van Lommel [Wed, 8 May 2013 10:07:58 +0000 (10:07 +0000)]
Fix #35255: build for older OpenCollada versions failed, but don't see a good
reason to not keep it working.

6 years agoFix OS X 32 bit build error, and bring buildbot config in sync with default.
Brecht Van Lommel [Tue, 7 May 2013 18:32:37 +0000 (18:32 +0000)]
Fix OS X 32 bit build error, and bring buildbot config in sync with default.

6 years agoPutting undefined versioning to only older than 2.67.
Ton Roosendaal [Tue, 7 May 2013 16:35:37 +0000 (16:35 +0000)]
Putting undefined versioning to only older than 2.67.

6 years agoAnd here's the epic 2.67 splash and version!
Ton Roosendaal [Tue, 7 May 2013 16:27:55 +0000 (16:27 +0000)]
And here's the epic 2.67 splash and version!

Celebrating Freestyle :) Kudos to dfeveloper Tamito and Malaysian artist Mclelun!

6 years agoSupress error message if dlopen for jack.so failed
Sergey Sharybin [Tue, 7 May 2013 15:49:23 +0000 (15:49 +0000)]
Supress error message if dlopen for jack.so failed

This is mainly happening when there's no jack installed
in the system and no reason to cause general panic
messages in the terminal about this.

6 years agoFix #35122: Blenderplayer crashes when loading level
Sergey Sharybin [Tue, 7 May 2013 15:28:42 +0000 (15:28 +0000)]
Fix #35122: Blenderplayer crashes when loading level

Issue was caused by ntreeUpdateTree calling for a ntree
which is not in G.main.

This lead to issues in ntreeVerifyNodes (which is called
from ntreeUpdateTree).

Made is so ntreeUpdateTree now accepts main as an argument.
Will work for the release, later we could either solve the
TODO mentioned in ntreeUpdateTree which will eliminate need
in main there or make it so context's main is used from all
over where ntreeUpdateTree is called (currently there're
still some usages of G.main).

6 years agofix for glitch in text editor using ctrl+(backspace / delete),
Campbell Barton [Tue, 7 May 2013 01:00:19 +0000 (01:00 +0000)]
fix for glitch in text editor using ctrl+(backspace / delete),
for now just don't jump words when theres a selection.

6 years agoexpose bmesh volume calculation to python api (use for print toolbox addon).
Campbell Barton [Tue, 7 May 2013 00:00:32 +0000 (00:00 +0000)]
expose bmesh volume calculation to python api (use for print toolbox addon).

6 years agobullet: Don't use sse in api for windows.
Sergej Reich [Mon, 6 May 2013 22:53:11 +0000 (22:53 +0000)]
bullet: Don't use sse in api for windows.

Remove stray BT_USE_SSE_IN_API definitions.
Was causing problems especially for 32 bit windows.

It's not quite clear why they were added in the first place since
this should be defined in btScalar.h, needs further investigation.

Thanks to Francisco De La Cruz (xercesblue) for looking into this.

Should fix [#35071] Bullet Convex Hull Crashes on Win32 with SSE

6 years agoFix for crash when using 2D stabilization for float movie clips
Sergey Sharybin [Mon, 6 May 2013 17:59:02 +0000 (17:59 +0000)]
Fix for crash when using 2D stabilization for float movie clips

Also removed unneeded image buffer scaling, it was only needed
for "early output" if there was no rotation. That is no longer
supported since it used to pixelate result a lot and interpolation
is always used now.

Saves quite a few of memory and CPU cycles.

6 years agoFix missing angle zerolization when 2d stabilization is disabled.
Sergey Sharybin [Mon, 6 May 2013 17:24:30 +0000 (17:24 +0000)]
Fix missing angle zerolization when 2d stabilization is disabled.

Not sure how it wasn't noticed for so long, probably check happens
in callee as well, but better be safe than sorry here.

6 years agoFix crash rendering material with "Face Textures" option.
Brecht Van Lommel [Mon, 6 May 2013 14:00:28 +0000 (14:00 +0000)]
Fix crash rendering material with "Face Textures" option.

Example file: lib/tests/materials/crystal_cube.blend

6 years agoFix #35225: new OS X Lion fullscreen did not work together well with old
Brecht Van Lommel [Mon, 6 May 2013 13:39:25 +0000 (13:39 +0000)]
Fix #35225: new OS X Lion fullscreen did not work together well with old
fullscreen option. It was possible to enable both at the same time which got
you stuck in a state where it was impossible to exit fullscreen. Now I've made
them mutually exlusive, only one can be enabled at the same time.

Note the reason we need to support both is because the new Lion fullscreen does
not work with multiple monitors, it will just give black screens on the other
monitors. This is a limitation of OS X, you can find many complaints about this
online.

6 years agoAnother correction to svn rev56509
Sergey Sharybin [Mon, 6 May 2013 12:27:14 +0000 (12:27 +0000)]
Another correction to svn rev56509

Initial fix was not fully working, because faulty
edge shared the same address as screen area. This
lead to screen freeing issues -- double free (which
was supressed by guarded allocation actually) but
also freed memory access when iterating via edges
to free them.

Solved by a small hack which removes edges with bad
vertices from edges list. This prevents double-free
and freed memory access cased by corrupted files we're
currently fixing. In other cases this tweak is likely
be harmless -- in worst case scenario it'll lead to
small memory leak, which is not as much lethal as
freed memory access.

6 years agoFix for uninitialized variable in previous commit.
Sergey Sharybin [Mon, 6 May 2013 11:38:21 +0000 (11:38 +0000)]
Fix for uninitialized variable in previous commit.

6 years agoBug fix #35179
Ton Roosendaal [Mon, 6 May 2013 11:23:13 +0000 (11:23 +0000)]
Bug fix #35179

Added provision for saved corrupt blend files - caused by a startup.blend
addressing > 16 GB space, which was read in 32 bits.

Now an invalid screen will get removed immediate after read. Might give
a memory-not-in-memlist print, but that's quite safe.

6 years agoFix #35229: collada crash exporting constraints with no target set.
Brecht Van Lommel [Mon, 6 May 2013 11:12:00 +0000 (11:12 +0000)]
Fix #35229: collada crash exporting constraints with no target set.

6 years agoAttempt to fix #35228: hide a few LLVM symbols that are not in the llvm namespace
Brecht Van Lommel [Mon, 6 May 2013 09:44:56 +0000 (09:44 +0000)]
Attempt to fix #35228: hide a few LLVM symbols that are not in the llvm namespace
to try to avoid conflicts with Mesa GL llvmpipe on linux.

6 years agofix for cursor jumping error stepping backwards where the the first character of...
Campbell Barton [Mon, 6 May 2013 03:35:21 +0000 (03:35 +0000)]
fix for cursor jumping error stepping backwards where the the first character of a string would be skipped no matter what it was.

6 years agocorrection for uv template, also some doxygen comment corrections.
Campbell Barton [Sun, 5 May 2013 18:41:45 +0000 (18:41 +0000)]
correction for uv template, also some doxygen comment corrections.

6 years agoFix #35216: code examples like simple operator missing from python docs due to
Brecht Van Lommel [Sun, 5 May 2013 05:56:48 +0000 (05:56 +0000)]
Fix #35216: code examples like simple operator missing from python docs due to
rename of directory.