blender.git
7 years agoMerging r58330 through r58361 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Thu, 18 Jul 2013 09:29:12 +0000 (09:29 +0000)]
Merging r58330 through r58361 from trunk into soc-2013-depsgraph_mt

7 years agoAvoid creating Morph Controllers when shape key export is disabled
Gaia Clary [Thu, 18 Jul 2013 07:54:19 +0000 (07:54 +0000)]
Avoid creating Morph Controllers when shape key export is disabled

7 years agofix for action editor view-selected behaving strangely.
Campbell Barton [Thu, 18 Jul 2013 02:59:28 +0000 (02:59 +0000)]
fix for action editor view-selected behaving strangely.
- when an fcurve had no selected keyframes, a default fallback value was used which caused view-selected to include frame 1, even when no selected frames were there.

- the vertical axis was always reset, ideally we would center vertically too but the way this operator currently works we only know about the frame range,
  now don't change the vertical scroll when viewing selected since it would always jump to the top of the screen (view-all still acts this way).

7 years ago* Fix a typo in code.
Thomas Dinges [Wed, 17 Jul 2013 21:25:44 +0000 (21:25 +0000)]
* Fix a typo in code.

7 years agoLeaf bone length calculation used wrong bone tail
Gaia Clary [Wed, 17 Jul 2013 21:06:27 +0000 (21:06 +0000)]
Leaf bone length calculation used wrong bone tail

7 years agoFix: #36184 Collada import/export... leaf bone size was not set as needed.
Gaia Clary [Wed, 17 Jul 2013 20:22:08 +0000 (20:22 +0000)]
Fix: #36184 Collada import/export... leaf bone size was not set as needed.

7 years agoHide unnecessary error print when showing tooltip over a property with no RNA
Brecht Van Lommel [Wed, 17 Jul 2013 17:31:12 +0000 (17:31 +0000)]
Hide unnecessary error print when showing tooltip over a property with no RNA
path, ideally this would work everywhere but it's a known limitation, no need
to print an error in the console each time it happens.

7 years agoAdded some documentation for the minimal progress bar in blender_python_api
Gaia Clary [Wed, 17 Jul 2013 17:07:11 +0000 (17:07 +0000)]
Added some documentation for the minimal progress bar in blender_python_api

7 years agostyle cleanup
Campbell Barton [Wed, 17 Jul 2013 14:14:50 +0000 (14:14 +0000)]
style cleanup

7 years agofix [#36176] Connected font Bevel moves inwards for some letter combinations
Campbell Barton [Wed, 17 Jul 2013 14:05:50 +0000 (14:05 +0000)]
fix [#36176] Connected font Bevel moves inwards for some letter combinations
bevel wasn't taking into account overlapping text (bug goes back to 1.8).

7 years agoPossible fix for [#36086] Activating the opencl option in the compositor causes blend...
Thomas Dinges [Wed, 17 Jul 2013 12:57:03 +0000 (12:57 +0000)]
Possible fix for [#36086] Activating the opencl option in the compositor causes blender crash
* Now OCL_init() returns error messages if the OpenCL library cannot be loaded.

7 years agoFix for #36150, missing Preview Render Updates with Add/Remove material slot.
Thomas Dinges [Wed, 17 Jul 2013 11:02:51 +0000 (11:02 +0000)]
Fix for #36150, missing Preview Render Updates with Add/Remove material slot.

7 years agore-commit temp workaround [#35920], this still fails for OSX retina display,
Campbell Barton [Wed, 17 Jul 2013 10:48:32 +0000 (10:48 +0000)]
re-commit temp workaround [#35920], this still fails for OSX retina display,
but at least it resolves for DPI values other then 72.

7 years agofix/resolve [#36173] Current frame doesn't update while OpenGL Rendering Animation
Campbell Barton [Wed, 17 Jul 2013 09:57:02 +0000 (09:57 +0000)]
fix/resolve [#36173] Current frame doesn't update while OpenGL Rendering Animation

there was no feedback to the user about the current frame rendering, for longer renders this is no good.

7 years agoMerging r58280 through r58329 from trunk into soc-2013-depsgaph_mt
Sergey Sharybin [Wed, 17 Jul 2013 09:31:57 +0000 (09:31 +0000)]
Merging r58280 through r58329 from trunk into soc-2013-depsgaph_mt

7 years agoRemove workaround for draw object free
Sergey Sharybin [Tue, 16 Jul 2013 20:11:08 +0000 (20:11 +0000)]
Remove workaround for draw object free

Code around draw objects became safe for threading
and no special workaround is needed in scene update
anymore.

Unused buffers will be freed next time window is
drawing. Some further tweaks maybe needed to how
buffers are freeing, but things shall work for now
nice and stable.

7 years agoStatistics calculation for threaded update
Sergey Sharybin [Tue, 16 Jul 2013 20:11:05 +0000 (20:11 +0000)]
Statistics calculation for threaded update

This commit adds per-thread statics for object
update threads which would give you information
about:

- How much objects each thread handled
- How much overall time thread spend on running
  object_handle_update.
- How long each of object_handle_update took.

Enabled by ./blender -d

The code is surrounded by ifdef, so shall be
not a problem to drop the code when we don't
need it anymore.

Also added special value for rt (debug_value)
of 13666 which switches scene update to a
single thread. Useful for benchmarking.

7 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 http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#UI_Messages before writing UI messages!

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

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

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

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

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

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

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

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

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

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

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

7 years agoStyle cleanup: task scheduler
Sergey Sharybin [Mon, 15 Jul 2013 21:51:22 +0000 (21:51 +0000)]
Style cleanup: task scheduler

Campbell will clean this stuff anyway, but better do it
in the branch, so trunk history would stay clean.

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

7 years agoThis shouldn't have gone to svn
Sergey Sharybin [Mon, 15 Jul 2013 19:18:48 +0000 (19:18 +0000)]
This shouldn't have gone to svn

7 years agoUtility benchmarking macros
Sergey Sharybin [Mon, 15 Jul 2013 19:17:45 +0000 (19:17 +0000)]
Utility benchmarking macros

This new macros could be used to benchmark overall
execution time of some chunk of code, running in cycle.

The usage is:

  void foo(void) {
    TIMEIT_BLOCK_INIT(overall_bar);

    for (...) {
      ...

      TIMEIT_BLOCK_BEGIN(over_bar);
      bar();
      TIMEIT_BLOCK_END(oberall_bar);

      ...
    }

    TIMEIT_BLOCK_STATS(overall_bar)
  }

This would print total time which was spent on
running function bar().

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

7 years agoMerging r58266 through r58279 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Mon, 15 Jul 2013 18:48:34 +0000 (18:48 +0000)]
Merging r58266 through r58279 from trunk into soc-2013-depsgraph_mt

7 years agoMade armatures evaluation safe(r) for threading
Sergey Sharybin [Mon, 15 Jul 2013 18:46:19 +0000 (18:46 +0000)]
Made armatures evaluation safe(r) for threading

Apparently, some routines in armature deformation code
were using static arrays. This is probably just an
optimization thing, but it's very bad for threading.

Now made it so bbone matrices array is allocating in
callee function stack. This required exposing
MAX_BBONE_SUBDIV to an external API, This is not so
much crappy from code side, and it shall be the same
fast as before.

7 years agoMake lattice deform safe for threading
Sergey Sharybin [Mon, 15 Jul 2013 18:46:15 +0000 (18:46 +0000)]
Make lattice deform safe for threading

Lattice deformation used to store some runtime data
inside of lattice datablock itself. It's something
which is REALLY bad. Ideally DNA shouldn't contain
and runtime data.

For now solved it in a way that initialization of
lattice deform will create a structure which contains
lattice object for which deformation is calculating
and that runtime data which used to be stored in
lattice datablock itself.

It works really fine for mesh deform modifier, but
there's still runtime data stored in particle system
DNA, It didn't look something easy to be solved, so
leaving this as-is for now.

7 years agoMake GPU buffers allocation/freeing safe for threading
Sergey Sharybin [Mon, 15 Jul 2013 18:46:08 +0000 (18:46 +0000)]
Make GPU buffers allocation/freeing safe for threading

Code in GPU_buffers_free was already trying to be safe
for threading, by skipping OGL calls there, but in fact
it was still buggy.

Namely, freeing was doing buffers shift in a cycle, and
if two threads will call this function shifting will go
crazy.

Now made it so GPU_buffers_alloc and GPU_buffers_free
are using mutex lock, so they're completely safe for
threading. Same goes to gpu_buffer_setup function.

It required minor functions reshuffle, so there're no
locks happening from locked thread, but it's all very
straightforward change.

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

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

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

Reviewed by Brecht, thanks!

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

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

7 years agoMerging r58196 through r58265 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Mon, 15 Jul 2013 11:25:56 +0000 (11:25 +0000)]
Merging r58196 through r58265 from trunk into soc-2013-depsgraph_mt

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

7 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

7 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

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

7 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

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

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

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

7 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

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

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

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

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

7 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

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

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

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

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

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

7 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

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

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

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

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

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

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

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

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

7 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

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

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

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

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

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

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

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

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

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

7 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

7 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

7 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

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

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

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

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

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

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

7 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

7 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

7 years agoMerging r58194 through r58195 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Fri, 12 Jul 2013 11:31:15 +0000 (11:31 +0000)]
Merging r58194 through r58195 from trunk into soc-2013-depsgraph_mt

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

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

7 years agoMerging r58166 through r58193 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Fri, 12 Jul 2013 09:13:15 +0000 (09:13 +0000)]
Merging r58166 through r58193 from trunk into soc-2013-depsgraph_mt

7 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

7 years agoExpose node.select exec callback to an operator
Sergey Sharybin [Fri, 12 Jul 2013 08:31:39 +0000 (08:31 +0000)]
Expose node.select 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 node.select 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 node.select from
python.

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

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

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

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