8 years agoMerging changes from trunk r58091-58323.
Mitchell Stokes [Wed, 17 Jul 2013 01:40:26 +0000 (01:40 +0000)]
Merging changes from trunk r58091-58323.

8 years agoStyle cleanup of UI messages.
Bastien Montagne [Tue, 16 Jul 2013 13:12:58 +0000 (13:12 +0000)]
Style cleanup of UI messages.
Mostly, "weight groups" -> "vertex groups", and usual case/endpoints/typos/etc.

As a remainder, please read before writing UI messages!

8 years agoFix missing render info text in blender internal rendered viewport after
Brecht Van Lommel [Tue, 16 Jul 2013 12:22:31 +0000 (12:22 +0000)]
Fix missing render info text in blender internal rendered viewport after
previous fix for checking char arrays against NULL.

8 years agofix for checking char arrays against NULL, instead check their first character. also...
Campbell Barton [Tue, 16 Jul 2013 11:42:07 +0000 (11:42 +0000)]
fix for checking char arrays against NULL, instead check their first character. also remove some dead code (return directly after return).

8 years agocorrect own incorrect check bmesh edgerin subdivide, also add missing break in orthog...
Campbell Barton [Tue, 16 Jul 2013 11:39:48 +0000 (11:39 +0000)]
correct own incorrect check bmesh edgerin subdivide, also add missing break in orthogonalize_m3 though this one wouldn't effect release builds.

8 years agofix own regression [#36154] Simple deform modifier doesn't recalculate normals
Campbell Barton [Tue, 16 Jul 2013 08:24:53 +0000 (08:24 +0000)]
fix own regression [#36154] Simple deform modifier doesn't recalculate normals
get_cddm and get_dm are called within modifiers so they wont ensure normals are valid, added an arg to optionally ensure valid normals.

8 years agofix [#36153] Crash when choosing a brush.
Campbell Barton [Tue, 16 Jul 2013 06:49:03 +0000 (06:49 +0000)]
fix [#36153] Crash when choosing a brush.

8 years agofix [#36155] Crash with __contains__
Campbell Barton [Tue, 16 Jul 2013 05:29:19 +0000 (05:29 +0000)]
fix [#36155] Crash with __contains__

8 years agofix [#36157] Memory Leak in GHOST_DropTargetX11
Campbell Barton [Tue, 16 Jul 2013 05:10:58 +0000 (05:10 +0000)]
fix [#36157] Memory Leak in GHOST_DropTargetX11
would leak a little bit of memory for every window created.

8 years agorevert part of own commit r58304, gives different behavior when de-selecting with...
Campbell Barton [Tue, 16 Jul 2013 03:41:09 +0000 (03:41 +0000)]
revert part of own commit r58304, gives different behavior when de-selecting with the lasso in some cases, will look into this after release.

8 years agomove ED_armature_edit_bone_select() into a more general utility function so view3d...
Campbell Barton [Tue, 16 Jul 2013 01:49:20 +0000 (01:49 +0000)]
move ED_armature_edit_bone_select() into a more general utility function so view3d-select bone operators can use it and get matching selection behavior when entering editmode.
- specifically - write to the connected parents tipsel flag when setting the rootsel flag.

8 years agofix for the tip of the bones without connected children de-selecting when entering...
Campbell Barton [Tue, 16 Jul 2013 00:40:12 +0000 (00:40 +0000)]
fix for the tip of the bones without connected children de-selecting when entering editmode.

8 years agoFix memory leak in BKE_mesh_vert_poly_map_create.
Antony Riakiotakis [Tue, 16 Jul 2013 00:34:03 +0000 (00:34 +0000)]
Fix memory leak in BKE_mesh_vert_poly_map_create.

8 years agoBGE: adding a fix so 2D filters work properly with side-by-side stereoscopic rendering.
Mitchell Stokes [Mon, 15 Jul 2013 22:44:48 +0000 (22:44 +0000)]
BGE: adding a fix so 2D filters work properly with side-by-side stereoscopic rendering.

8 years agoBGE: Fix for [#36023] "Objects of added scene are lit by lights of current scene...
Mitchell Stokes [Mon, 15 Jul 2013 22:35:09 +0000 (22:35 +0000)]
BGE: Fix for [#36023] "Objects of added scene are lit by lights of current scene" reported by Raf Colson (raco).

The material caching now keeps a cache per scene. Before materials from different scenes were sharing the same cache.

8 years agorevert part of own commit r58254, utf8 isnt stepping by 1 always so use less-than...
Campbell Barton [Mon, 15 Jul 2013 21:34:48 +0000 (21:34 +0000)]
revert part of own commit r58254, utf8 isnt stepping by 1 always so use less-than comparison.

8 years agoFix text object text entry being broken after recent fix to BLI_strncpy_wchar_from_utf8.
Brecht Van Lommel [Mon, 15 Jul 2013 19:04:49 +0000 (19:04 +0000)]
Fix text object text entry being broken after recent fix to BLI_strncpy_wchar_from_utf8.
Checked other usages of this function but they seem to be fine.

8 years agoFix #36058: Displace Modifier errors using a baked Image and displace baking inconsis...
Sergey Sharybin [Mon, 15 Jul 2013 14:47:58 +0000 (14:47 +0000)]
Fix #36058: Displace Modifier errors using a baked Image and displace baking inconsistency between 2.67/2.68RC and previous versions

This was in fact really nasty bug, caused by multitex_nodes
function using global variable R (which is a copy of current
renderer). this variable is not initialized to anything
meaningful for until first rendering (preview or final)

Since multitex_nodes might be used outside of render pipeline,
made it so whether CM is on or off as an argument to functions
multitex_ext_safe and multitex_ext. Now multitex_nodes() is
only shall be used for stuff happening from render pipeline!

Also needed to make some changes to other places, so all the
usages of texture sampling knows for the fact whether CM is
on or off.

And one more change is related on behavior of dispalcement,
wave, warp, weightvg modifiers and smoke. They'll be always
using CM off since texture is used for influence, not for

It's rather bigger patch, but it's mostly straightforward
changes, which we really need to be done.

Reviewed by Brecht, thanks!

8 years agoFix #36127: 10 bit DPX render would crash when doing rendering animations from
Brecht Van Lommel [Mon, 15 Jul 2013 14:33:19 +0000 (14:33 +0000)]
Fix #36127: 10 bit DPX render would crash when doing rendering animations from
the UI on OS X.

The problem is due to a large variable on the stack, and pthreads have a smaller
stack size than the main thread by default. On Linux the pthread stack size seems
to be 2MB, OS X 512KB and Windows 256KB - 512KB.

8 years agofix for sequence strips being given non utf8 names, where the filepath wasn't utf8.
Campbell Barton [Mon, 15 Jul 2013 11:26:43 +0000 (11:26 +0000)]
fix for sequence strips being given non utf8 names, where the filepath wasn't utf8.
also correct bad assumption in BKE_image_load_exists() that all paths are relative to the current blend file.

8 years agoFix #36139: cycles not taking texture spacing settings into account for
Brecht Van Lommel [Mon, 15 Jul 2013 11:11:36 +0000 (11:11 +0000)]
Fix #36139: cycles not taking texture spacing settings into account for
generated coordinates on text objects.

8 years agofix: #36122 Collada import - Keyframes offset after recording and playing
Gaia Clary [Mon, 15 Jul 2013 11:01:23 +0000 (11:01 +0000)]
fix: #36122 Collada import - Keyframes offset after recording and playing

8 years agoCollada miport: Report 'unknown animation class' only when relevant
Gaia Clary [Mon, 15 Jul 2013 10:50:04 +0000 (10:50 +0000)]
Collada miport: Report 'unknown animation class' only when relevant

8 years agoFix #36145: Error in inverting channels in the UV/Image Editor
Sergey Sharybin [Mon, 15 Jul 2013 10:44:17 +0000 (10:44 +0000)]
Fix #36145: Error in inverting channels in the UV/Image Editor

Issue was caused by operator redo saving values for previous
inverted channels, meaning the same channels will be inverted
next time operator runs.

Don't think it's useful to save operator values here, since
you don;t have visual feedback about which channels were
inverted. So marked all this properties as SKIP_SAVE. Gives
much more predictable results.

8 years agocorrect placement of debug memset() for DEBUG_STRSIZE
Campbell Barton [Mon, 15 Jul 2013 09:10:51 +0000 (09:10 +0000)]
correct placement of debug memset() for DEBUG_STRSIZE

8 years agoprevious commit r58256, had error in editmode (somehow it worked in most tests still).
Campbell Barton [Mon, 15 Jul 2013 09:03:28 +0000 (09:03 +0000)]
previous commit r58256, had error in editmode (somehow it worked in most tests still).
also don't decrement active indices below zero (also a problem in 2.67).

8 years agoclang/cmake - quiet warnings for external libs and reference moto as a system include.
Campbell Barton [Mon, 15 Jul 2013 08:26:16 +0000 (08:26 +0000)]
clang/cmake - quiet warnings for external libs and reference moto as a system include.

8 years agoFix #36124: VSE - Input Color doesn't invalidate cache properly for movies
Sergey Sharybin [Mon, 15 Jul 2013 07:58:15 +0000 (07:58 +0000)]
Fix #36124: VSE - Input Color doesn't invalidate cache properly for movies

Animation structure holds some buffers inside,
so for proper cache invalidation we need to
re-open the animation.

8 years agofix for error (-1 index into array) when removing customdata layers with no data...
Campbell Barton [Mon, 15 Jul 2013 06:29:09 +0000 (06:29 +0000)]
fix for error (-1 index into array) when removing customdata layers with no data, delete_customdata_layer was using layer data pointer to check weather to adjust index values (but both pointers can be NULL). Remove this code and do in customdata.c

8 years agofix for bad lengths being passed to string functions.
Campbell Barton [Mon, 15 Jul 2013 05:11:14 +0000 (05:11 +0000)]
fix for bad lengths being passed to string functions.

8 years agofix for error in string copy
Campbell Barton [Mon, 15 Jul 2013 05:09:06 +0000 (05:09 +0000)]
fix for error in string copy
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start().
- BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.

8 years agodebug option (off by default), for BLI_string to help find incorrect sizes being...
Campbell Barton [Mon, 15 Jul 2013 03:54:57 +0000 (03:54 +0000)]
debug option (off by default), for BLI_string to help find incorrect sizes being passed in (enable in source files only)

8 years agoallow deselection when bones BONE_UNSELECTABLE flag is set (lasso/box/circle select)
Campbell Barton [Mon, 15 Jul 2013 02:03:31 +0000 (02:03 +0000)]
allow deselection when bones BONE_UNSELECTABLE flag is set (lasso/box/circle select)

8 years agofix [#36128] Not deselect all bone when I press the A button in edit mode
Campbell Barton [Mon, 15 Jul 2013 01:47:01 +0000 (01:47 +0000)]
fix [#36128] Not deselect all bone when I press the A button in edit mode

8 years agofix [#36107] Moving origin of instanced objects doesn't work properly
Campbell Barton [Mon, 15 Jul 2013 01:34:59 +0000 (01:34 +0000)]
fix [#36107] Moving origin of instanced objects doesn't work properly

now use the active object first if its selected, this means when multiple instances are selected, using the active object gives a predictable outcome.

8 years agofix for own regression, face index ranges still need checking in some places.
Campbell Barton [Sun, 14 Jul 2013 23:41:33 +0000 (23:41 +0000)]
fix for own regression, face index ranges still need checking in some places.

8 years agofix regression [#36141] Crash with skin and remesh modifier in edit mode.
Campbell Barton [Sun, 14 Jul 2013 23:27:47 +0000 (23:27 +0000)]
fix regression [#36141] Crash with skin and remesh modifier in edit mode.

8 years agoreplace strncpy with BLI_strncpy for cases we expect the string to be NULL terminated.
Campbell Barton [Sun, 14 Jul 2013 22:08:56 +0000 (22:08 +0000)]
replace strncpy with BLI_strncpy for cases we expect the string to be NULL terminated.

8 years ago== libredcode / licence cleanup ==
Peter Schlaile [Sun, 14 Jul 2013 20:38:55 +0000 (20:38 +0000)]
== libredcode / licence cleanup ==

Changed libredcode to GNU GPL v2 or later to make it more compatible
with additional libraries added to blender.

8 years agofix: #36060 Collada Import: animated armature+mesh problem
Gaia Clary [Sun, 14 Jul 2013 17:21:12 +0000 (17:21 +0000)]
fix: #36060 Collada Import: animated armature+mesh problem

8 years agoRemoved unused paramter from ArmatureImporter:add_joint()
Gaia Clary [Sun, 14 Jul 2013 16:24:42 +0000 (16:24 +0000)]
Removed unused paramter from ArmatureImporter:add_joint()

8 years agoFix a few issues found by coverity code scan in cycles code, nothing that caused
Brecht Van Lommel [Sun, 14 Jul 2013 13:19:57 +0000 (13:19 +0000)]
Fix a few issues found by coverity code scan in cycles code, nothing that caused
an actual bug as far as I can tell.

8 years agofix for case where negative index was used when rendering particles with UV's, also...
Campbell Barton [Sun, 14 Jul 2013 13:18:05 +0000 (13:18 +0000)]
fix for case where negative index was used when rendering particles with UV's, also removed redundant array check.

8 years agoFix some unnecessary memory allocation slowness in cycles mesh export.
Brecht Van Lommel [Sun, 14 Jul 2013 12:51:41 +0000 (12:51 +0000)]
Fix some unnecessary memory allocation slowness in cycles mesh export.

8 years agominor: commented fallthrough
Gaia Clary [Sun, 14 Jul 2013 12:30:05 +0000 (12:30 +0000)]
minor: commented fallthrough

8 years agorecent changes to particle normal orientation change behavior in a way you might...
Campbell Barton [Sun, 14 Jul 2013 10:57:43 +0000 (10:57 +0000)]
recent changes to particle normal orientation change behavior in a way you might not want (even though in general I think its an improvement).
split this into 2 options, added 'Normal-Tangent' orientation that makes the mesh orient towards the tangent, otherwise it uses Z-Up as before.

8 years agofix [#36135] File name of previously saved render result no longer remembered
Campbell Barton [Sun, 14 Jul 2013 09:57:03 +0000 (09:57 +0000)]
fix [#36135] File name of previously saved render result no longer remembered

in fact the problem was caused by own previous fix/improvement for a different case, now this works as follows...

- render uses last-saved name, falls back to 'untitled' in blend file path.
- non render uses id-name always, saves into dir of last-saved image, fall back to blend file path.

8 years agofix relating to [#36093] Stationary Particle system - particle Y axis fails to follow...
Campbell Barton [Sun, 14 Jul 2013 07:27:44 +0000 (07:27 +0000)]
fix relating to [#36093] Stationary Particle system - particle Y axis fails to follow emitter object rotation

With deformations and on a simple cube you could get axis flipping with normal-particle alignment.
now use the normal & tangent to create the orientation to give a stable matrix that wont flip.

8 years agofix: #34823 Collada: nodes exporting world matrices
Gaia Clary [Sun, 14 Jul 2013 00:34:21 +0000 (00:34 +0000)]
fix: #34823 Collada: nodes exporting world matrices

8 years agoFix for [#35482] 2.67 freestyle line visibility computation bug.
Tamito Kajiyama [Sat, 13 Jul 2013 19:33:25 +0000 (19:33 +0000)]
Fix for [#35482] 2.67 freestyle line visibility computation bug.

The reported line visibility issue was caused by a wrong calculation of a 2D
bounding box (so-called "proscenium face" in Freestyle) in the case of a
spherical grid data structure used for a perspective camera.  The problem was
resulting from the proscenium computation based on two corners (min and max)
of the 3D bounding box of imported mesh data.  Aware of the spherical coordinate
transformation involving non-linear (arctangent) functions, now the proscenium
is computed by taking in account all the eight corners of the 3D bounding box.

Also added minor code changes to facilitate future debugging.

8 years agofix for bad NULL check in bmo_connect_pair, also remove duplicate checks in if statem...
Campbell Barton [Sat, 13 Jul 2013 16:25:47 +0000 (16:25 +0000)]
fix for bad NULL check in bmo_connect_pair, also remove duplicate checks in if statements and redundant initialization vars.

8 years agofix for more errors with switch missing break
Campbell Barton [Sat, 13 Jul 2013 14:44:04 +0000 (14:44 +0000)]
fix for more errors with switch missing break
- boids random option was falling through to average.
- (NC_OBJECT | ND_DRAW) notifier was falling through to ND_SHADING button preview updates.

8 years agofix for missing break statements in switch, some key shortcuts and notifiers were...
Campbell Barton [Sat, 13 Jul 2013 14:21:36 +0000 (14:21 +0000)]
fix for missing break statements in switch, some key shortcuts and notifiers were falling through when its obviously incorrect to do so.

8 years agocorrect bad allocation sizes, unwrap was over-allocating, makesdna was under allocating.
Campbell Barton [Sat, 13 Jul 2013 14:19:57 +0000 (14:19 +0000)]
correct bad allocation sizes, unwrap was over-allocating, makesdna was under allocating.

8 years agoremove NULL checks on fixed size arrays, also was calling BLI_testextensie_glob every...
Campbell Barton [Sat, 13 Jul 2013 14:16:59 +0000 (14:16 +0000)]
remove NULL checks on fixed size arrays, also was calling BLI_testextensie_glob every time in the file selector with a blank string.

8 years agofix for 2 bugs in animation playback
Campbell Barton [Sat, 13 Jul 2013 12:58:00 +0000 (12:58 +0000)]
fix for 2 bugs in animation playback
- reading bmp images was failing (needed to increase the size of the header to 64 bytes)
- the dnd image was being incorrectly checked (was always returning true even when none was used).

8 years agofix for missing break with compositor levels (blue passed through to luminance)
Campbell Barton [Sat, 13 Jul 2013 12:14:04 +0000 (12:14 +0000)]
fix for missing break with compositor levels (blue passed through to luminance)

8 years agofix for orthogonalize_m3,4, missing break statements in switch.
Campbell Barton [Sat, 13 Jul 2013 06:54:44 +0000 (06:54 +0000)]
fix for orthogonalize_m3,4, missing break statements in switch.

8 years agoremove redundant null checks and avoid divide by zero in driver evaluation
Campbell Barton [Sat, 13 Jul 2013 05:53:14 +0000 (05:53 +0000)]
remove redundant null checks and avoid divide by zero in driver evaluation

8 years agofix errors in code
Campbell Barton [Sat, 13 Jul 2013 05:50:35 +0000 (05:50 +0000)]
fix errors in code
- BKE_mball_center_median(), didn't work.
- clip_refresh was removing handlers from wrong space.
- new_modifier, replace strcpy with BLI_strncpy

8 years agofix for misc errors
Campbell Barton [Sat, 13 Jul 2013 05:46:48 +0000 (05:46 +0000)]
fix for misc errors
- reference to out of scope stack var
- freeing fixes size array (never allocated)
- add matching va_end for va_start

8 years agofix bad uses of sizeof() with memory allocation.
Campbell Barton [Sat, 13 Jul 2013 05:43:35 +0000 (05:43 +0000)]
fix bad uses of sizeof() with memory allocation.

8 years agoFix #35470: crash rendering from the terminal in some cases due to render info
Brecht Van Lommel [Fri, 12 Jul 2013 20:31:30 +0000 (20:31 +0000)]
Fix #35470: crash rendering from the terminal in some cases due to render info
text threading issue.

8 years agoFix #35586: add an option to the Z Combine compositing node to disable the Z
Brecht Van Lommel [Fri, 12 Jul 2013 20:15:22 +0000 (20:15 +0000)]
Fix #35586: add an option to the Z Combine compositing node to disable the Z
buffer antialiasing that was restored in 2.67 after it was missing in the new
compositor implementation.

This option tends to make results worse rather then better for Cycles renders,
but is useful for Blender internal. Their Z-buffers look quite different for
antialiasing, and I'd rather not change either.

8 years agoFix #35827: object selection through camera view not working in some cases.
Brecht Van Lommel [Fri, 12 Jul 2013 19:32:36 +0000 (19:32 +0000)]
Fix #35827: object selection through camera view not working in some cases.

The problem was that when the camera is selected, the transform manipulator
is located exactly at the camera view location, and this was blocking selection
of other objects with some OpenGL implementations.

8 years agoFix #36115: dynamic paint not showing correct result after file load or undo.
Brecht Van Lommel [Fri, 12 Jul 2013 16:33:37 +0000 (16:33 +0000)]
Fix #36115: dynamic paint not showing correct result after file load or undo.

8 years agoRelated to #36115: show in render info text when 3D view layer or camera overrides
Brecht Van Lommel [Fri, 12 Jul 2013 16:33:30 +0000 (16:33 +0000)]
Related to #36115: show in render info text when 3D view layer or camera overrides
scene settings when pressing F12 over a 3D view.

8 years agoMoved code for calculating local_matrix to BKE funtion for reuse
Gaia Clary [Fri, 12 Jul 2013 12:58:01 +0000 (12:58 +0000)]
Moved code for calculating local_matrix to BKE funtion for reuse

8 years agofix [#36109] UI softlock when first property of an operator is String
Campbell Barton [Fri, 12 Jul 2013 12:11:21 +0000 (12:11 +0000)]
fix [#36109] UI softlock when first property of an operator is String
disable editing a string on operator UI popups, causes feedback loop

8 years agoGet rid of global originmat matrix from object.c
Sergey Sharybin [Fri, 12 Jul 2013 11:18:34 +0000 (11:18 +0000)]
Get rid of global originmat matrix from object.c

This matrix was used to store the space the object is in,
which then was accessed by snapping code. No reason to
keep it as a global variable (which isn't safe for threading,
unlikely it'll give issues now, but it's easy to avoid
issues early here).

Now made it so BKE_object_where_is_calc_ex will get an
optional parameter originmat and set this matrix in

Original patch by self, minor changes by Campbell, thanks!

8 years agofix [#36093] Stationary Particle system - particle Y axis fails to follow emitter...
Campbell Barton [Fri, 12 Jul 2013 08:41:27 +0000 (08:41 +0000)]
fix [#36093] Stationary Particle system - particle Y axis fails to follow emitter object rotation

8 years agoExpose exec callback to an operator
Sergey Sharybin [Fri, 12 Jul 2013 08:31:39 +0000 (08:31 +0000)]
Expose exec callback to an operator

Internally it was only invoke callback set for an
operator template. This invoke was setting such
properties as mouse_x and mouse_y and was calling
an exec function.

This meant that t seemed to be really easy to
use operator from by giving a mouse
positions, but in fact it wasn't possible (because
it requires exec callback)

This commit sets operator's template exec callback,
which makes it possible using from

8 years agofix for crash with texture-baking caused by recent changes to render-database initial...
Campbell Barton [Fri, 12 Jul 2013 05:42:16 +0000 (05:42 +0000)]
fix for crash with texture-baking caused by recent changes to render-database initialization, running bake 3 times would crash.

8 years agofix [#36106] Defining the Loopcut number with the keyboard is limited to 130
Campbell Barton [Fri, 12 Jul 2013 01:33:42 +0000 (01:33 +0000)]
fix [#36106] Defining the Loopcut number with the keyboard is limited to 130
mousewheel value is now clamped too and raised the limit to 500.

8 years agooptimize interp_weights_poly_v2(), well tested, was calculating the area twice as...
Campbell Barton [Fri, 12 Jul 2013 00:18:27 +0000 (00:18 +0000)]
optimize interp_weights_poly_v2(), well tested, was calculating the area twice as much as was needed.

8 years agoUI / Cycles:
Thomas Dinges [Fri, 12 Jul 2013 00:08:55 +0000 (00:08 +0000)]
UI / Cycles:
* Make it more clear for the user what affects 3D View and Final render.
* Static / Dynamic BVH only affects viewport, BVH Cache only final. (see BlenderSync::get_scene_params)

8 years agoFix for Bug #35695: Freestyle produces extra line across an object with pointed areas.
Tamito Kajiyama [Thu, 11 Jul 2013 17:25:18 +0000 (17:25 +0000)]
Fix for Bug #35695: Freestyle produces extra line across an object with pointed areas.

The cause of inconsistent edge connectivity in the view map (documented in the commit
log of revision 58006) was identified and fixed.  The problem was that when a ViewEdge
was split at a cusp vertex (ViewMapBuilder::computeCusps()), the ViewVertex at one end
of a newly created ViewEdge in ViewMap::InsertViewVertex() was not properly updated to
take account of edge connectivity changes.

8 years agofix [#36105] Bevel UV Flicker
Campbell Barton [Thu, 11 Jul 2013 15:57:22 +0000 (15:57 +0000)]
fix [#36105] Bevel UV Flicker
interp_weights_poly_v2/3 functions used much too small an epsilon value, caused flickering.

8 years agoutility function for printing arbitrary sizes vectors.
Campbell Barton [Thu, 11 Jul 2013 15:32:26 +0000 (15:32 +0000)]
utility function for printing arbitrary sizes vectors.

8 years agofix [#36100] bevel lost selection
Campbell Barton [Thu, 11 Jul 2013 14:21:50 +0000 (14:21 +0000)]
fix [#36100] bevel lost selection
interpolating loop was copying face attributes including selection, checked all users of this function and its safe to remove the call (which is bad to begin with).

8 years agoFix bevel when there is a gap in faces around vertex.
Howard Trickey [Thu, 11 Jul 2013 13:29:52 +0000 (13:29 +0000)]
Fix bevel when there is a gap in faces around vertex.
Fixes bug #35927 (Vertex Bevel bug) but even edge
bevel didn't work on the example there. Problem
was with forming the proper ccw ordering of edges
around the bevel.
Also appears to fix bug #35582 (Bevel, weird results).

8 years agoadd BM_elem_attrs_copy_ex() which can take a flag arg to define which flags should...
Campbell Barton [Thu, 11 Jul 2013 12:43:34 +0000 (12:43 +0000)]
add BM_elem_attrs_copy_ex() which can take a flag arg to define which flags should be copied. (mainly to be able to avoid copying selection/hidden state)

8 years agoFix #36091: external render engines like Luxrender don't work well with the save
Brecht Van Lommel [Thu, 11 Jul 2013 12:22:29 +0000 (12:22 +0000)]
Fix #36091: external render engines like Luxrender don't work well with the save
buffers option, it requires specific tile sizes and if they don't match what
OpenEXR expects file saving can get stuck.

Now I've made support for his optional, with a bl_use_save_buffers property for
RenderEngine, set to False by default.

8 years agofix [#36099] Undo crashes on an armature with ID-Properties
Campbell Barton [Thu, 11 Jul 2013 11:38:28 +0000 (11:38 +0000)]
fix [#36099] Undo crashes on an armature with ID-Properties
armatures undo state now stores ID-properties.

8 years agofix for bridge tool where the 2 loops overlap (typical use for scanfill), however...
Campbell Barton [Thu, 11 Jul 2013 08:37:30 +0000 (08:37 +0000)]
fix for bridge tool where the 2 loops overlap (typical use for scanfill), however its nice to support with bridge too since it can do subdivisions, handles customdata and fills in quads.

8 years agofix [#36090] Blender displays strange symbol in edge length
Campbell Barton [Thu, 11 Jul 2013 05:11:10 +0000 (05:11 +0000)]
fix [#36090] Blender displays strange symbol in edge length

8 years agofix [#36089] crash when using a tiff without TIFFTAG_EXTRASAMPLES
Campbell Barton [Thu, 11 Jul 2013 04:38:47 +0000 (04:38 +0000)]
fix [#36089] crash when using a tiff without TIFFTAG_EXTRASAMPLES

8 years agofix for problem with edge slide where it would stop shapekey modifier from being...
Campbell Barton [Thu, 11 Jul 2013 04:24:36 +0000 (04:24 +0000)]
fix for problem with edge slide where it would stop shapekey modifier from being applied (because of added vertices),
now, instead of making hidden copies of faces, the faces are copied into a temp bmesh.

also remove a hash that was being created and not used (old code).

8 years agobm_loop_interp_mdisps was doing multiple lookups in the same pointer in a nested...
Campbell Barton [Thu, 11 Jul 2013 01:28:27 +0000 (01:28 +0000)]
bm_loop_interp_mdisps was doing multiple lookups in the same pointer in a nested loop. only need one, also avoid multiple layer lookups with mdisp calculation/smoothing

8 years agoFix #36053: slow GPU render with panorama camera + depth of field.
Brecht Van Lommel [Wed, 10 Jul 2013 17:25:52 +0000 (17:25 +0000)]
Fix #36053: slow GPU render with panorama camera + depth of field.

8 years agoFix #36082: animation playback not working after rendering of background scenes and
Brecht Van Lommel [Wed, 10 Jul 2013 16:46:13 +0000 (16:46 +0000)]
Fix #36082: animation playback not working after rendering of background scenes and
multiple render layer nodes. Also fixes issue with database free with vector blur
after recent thread safety changes.

8 years agoBM_mesh_clear was setting toolflags incorrectly, also no meed to calloc when shrinkin...
Campbell Barton [Wed, 10 Jul 2013 13:06:31 +0000 (13:06 +0000)]
BM_mesh_clear was setting toolflags incorrectly, also no meed to calloc when shrinking toolflags array.

8 years agoskip duplicating faces for edge slide unless its used, this causes update problems...
Campbell Barton [Wed, 10 Jul 2013 12:37:15 +0000 (12:37 +0000)]
skip duplicating faces for edge slide unless its used, this causes update problems for shape keys at the moment, Ill check on that but no need to run in most cases.

8 years agono need to copy mat4x4 -> 3x3 in mat4_to_scale
Campbell Barton [Wed, 10 Jul 2013 12:12:58 +0000 (12:12 +0000)]
no need to copy mat4x4 -> 3x3 in mat4_to_scale

8 years agoFix #36080: fix cycles crash with certain group node setups, accessing freed
Brecht Van Lommel [Wed, 10 Jul 2013 10:50:19 +0000 (10:50 +0000)]
Fix #36080: fix cycles crash with certain group node setups, accessing freed

8 years agoFix #36076: Metaballs as particles with particle texture (size influence) crashes...
Sergey Sharybin [Wed, 10 Jul 2013 10:24:06 +0000 (10:24 +0000)]
Fix #36076: Metaballs as particles with particle texture (size influence) crashes Blender

Issue was caused by size influence affecting on object's matrix, which
is nice by it's own. But mball code was using ob->size to check whether
it's zero-sized object or not, but then was using ob->obmat to scale
the meta elements.

This lead to situation when zero-sized elements were trying to tessellate,
which is for sure a really bad idea.

8 years agopatch [#36078] Fixes joining behavior for curves and armatures (when active object...
Campbell Barton [Wed, 10 Jul 2013 09:55:10 +0000 (09:55 +0000)]
patch [#36078] Fixes joining behavior for curves and armatures (when active object not selected).

8 years agoremove reference to wrong python version in comments & pedantic style edit.
Campbell Barton [Wed, 10 Jul 2013 09:40:49 +0000 (09:40 +0000)]
remove reference to wrong python version in comments & pedantic style edit.

8 years agofix for possible bug with compilers that dont have boolean support.
Campbell Barton [Wed, 10 Jul 2013 08:01:06 +0000 (08:01 +0000)]
fix for possible bug with compilers that dont have boolean support.

8 years agofix [#36065] UI labels are shown in the theme color for unselected list items
Campbell Barton [Wed, 10 Jul 2013 08:00:00 +0000 (08:00 +0000)]
fix [#36065] UI labels are shown in the theme color for unselected list items