blender.git
8 years agobugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch...
Dalai Felinto [Tue, 11 Sep 2012 22:55:14 +0000 (22:55 +0000)]
bugfix [#32538] 'Mouse Over Any' sensor 'Pulse' button missing since 2.5x [Patch] - based on the patch from HG1

8 years agoFix for [#32536] Mixing with translated images in compositor produces
Jeroen Bakker [Tue, 11 Sep 2012 16:57:05 +0000 (16:57 +0000)]
Fix for [#32536] Mixing with translated images in compositor produces
garbage strips for each tile

Promoted the behaviour of combine channels to node operation so that all
nodes use the same implementation. (CombineChannel had a better
implementation)

8 years agoFix libmv build on OS X with 10.5 SDK. The tr1::unordered_map implementation
Brecht Van Lommel [Tue, 11 Sep 2012 11:54:10 +0000 (11:54 +0000)]
Fix libmv build on OS X with 10.5 SDK. The tr1::unordered_map implementation
is broken in this SDK, now it uses the boost implementation instead.

8 years agoPerformance fix for Cycles: Don't wait in the main UI thread when resetting devices.
Lukas Toenne [Tue, 11 Sep 2012 11:41:51 +0000 (11:41 +0000)]
Performance fix for Cycles: Don't wait in the main UI thread when resetting devices.

When the scene is updated Cycles resets the renderer device, cancelling
all existing tasks. The main thread would wait for all running tasks to
finish before continuing. This is ok when tasks can actually cancel in a
timely fashion. For OSL however, this does not work, since the OSL
shader group optimization takes quite a bit of time and can not be
easily be cancelled once running (on my crappy machine in full debug
mode: ~0.12 seconds for simple node trees). This would lead to very
laggy UI behavior and make it difficult to accurately control elements
such as sliders.

This patch removes the wait condition from the device->task_cancel
method. Instead it just sets the do_cancel flag and returns. To avoid
backlog in the task pool of the device it will return early from the
BlenderSession::sync function while the reset is going on (tested in
Session::resetting). Once all existing tasks have finished the do_cancel
flag is finally cleared again (checked in TaskPool::num_decrease).

Care has to be taken to avoid race conditions on the do_cancel flag,
since it can now be modified outside the TaskPool::cancel function
itself. For this purpose the scope of the TaskPool::num_mutex locks has
been extended, in most cases the mutex is now locked by the TaskPool
itself before calling TaskScheduler methods, instead of only locking
inside the num_increase/num_decrease functions themselves. The only
occurrence of a lock outside of the TaskPool methods is in
TaskScheduler::thread_run.

This patch is most useful in combination with the OSL renderer mode, so
it can probably wait until after the 2.64 release. SVM tasks tend to be
cancelled quickly, so the effect is less noticeable.

8 years agofix [#29616] Crash/infinite loop from missing cyclic check in group/dupligroups ...
Campbell Barton [Tue, 11 Sep 2012 10:18:45 +0000 (10:18 +0000)]
fix [#29616] Crash/infinite loop from missing cyclic check in group/dupligroups (unlikely/intentional)

calling BKE_ptcache_ids_from_object() could recursively call BKE_object_handle_update(), when there is no reason to update object transforms at all. Add option not to do any updates and just return an object list.

8 years agocode cleanup: use min/max inline functions rather than macros & simplify loop
Campbell Barton [Tue, 11 Sep 2012 09:39:37 +0000 (09:39 +0000)]
code cleanup: use min/max inline functions rather than macros & simplify loop

8 years agofix [#31738] BM_vert_splice modifies loops during iteration
Campbell Barton [Tue, 11 Sep 2012 06:12:48 +0000 (06:12 +0000)]
fix [#31738] BM_vert_splice modifies loops during iteration

patch by Nicholas Bishop, modified to avoid looping over vert-loops one extra time.

added BM_iter_as_arrayN(), returns an iterator as an array without knowing the length before calling.

8 years agoreplace BM_vert_face_count() use of BM_LOOPS_OF_VERT iterator with a direct call...
Campbell Barton [Tue, 11 Sep 2012 05:27:15 +0000 (05:27 +0000)]
replace BM_vert_face_count() use of BM_LOOPS_OF_VERT iterator with a direct call to bmesh_disk_facevert_count()

8 years agoadd some missing NULL checks, a few parts of the code used a pointer then checked...
Campbell Barton [Tue, 11 Sep 2012 02:18:27 +0000 (02:18 +0000)]
add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after.
also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks).

8 years agofix [#32531] Texturepainting always uses smooth shaded normals
Campbell Barton [Tue, 11 Sep 2012 01:30:05 +0000 (01:30 +0000)]
fix [#32531] Texturepainting always uses smooth shaded normals

8 years ago'new file' now runs bpy.app.handlers.load_pre/post callbacks.
Campbell Barton [Mon, 10 Sep 2012 23:36:07 +0000 (23:36 +0000)]
'new file' now runs bpy.app.handlers.load_pre/post callbacks.

Without this - there wasnt a good way to ensure addons were aware of new data being loading in new files.
requested by request by liquidape and maccuno.

8 years agofix for a bug running a script, then opening a new file.
Campbell Barton [Mon, 10 Sep 2012 23:32:46 +0000 (23:32 +0000)]
fix for a bug running a script, then opening a new file.

BPY_text_free_code() could run outside the python interpreter which abort()'s blender.

8 years agocode cleanup: string c++ lib, defines for default string sizes and use m_ convention...
Campbell Barton [Mon, 10 Sep 2012 22:43:36 +0000 (22:43 +0000)]
code cleanup: string c++ lib, defines for default string sizes and use m_ convention for member naming.

8 years agoFix #32529: after tomato merge, cycles multi GPU render not using all GPUs with
Brecht Van Lommel [Mon, 10 Sep 2012 14:00:05 +0000 (14:00 +0000)]
Fix #32529: after tomato merge, cycles multi GPU render not using all GPUs with
F12 rendering.

8 years agoFix #32530: animation playback did not respect preview frame range if the current
Brecht Van Lommel [Mon, 10 Sep 2012 14:00:01 +0000 (14:00 +0000)]
Fix #32530: animation playback did not respect preview frame range if the current
frame was before the start frame.

8 years agochange to auto-opening menus so the first menu item in popup menu wont auto open.
Campbell Barton [Mon, 10 Sep 2012 10:50:08 +0000 (10:50 +0000)]
change to auto-opening menus so the first menu item in popup menu wont auto open.

This way we can do predictable key-shortcut-chaining. Eg.

Shift+A, M, O --- adds a metaball cone.

In editmode
Ctrl+V, X, A --- Assign new vertex group.

8 years agoOSL cmake cleanup:
Lukas Toenne [Mon, 10 Sep 2012 08:38:51 +0000 (08:38 +0000)]
OSL cmake cleanup:
* Removed unused lib and include directories (also one bad 'src' include that wouldn't work anyway)
* Copied cmake library finding to APPLE and WIN32 sections. These may need some adjustment for their respective OS.

8 years agocode cleanup: use typedef'd enum for block bounds types.
Campbell Barton [Mon, 10 Sep 2012 07:03:30 +0000 (07:03 +0000)]
code cleanup: use typedef'd enum for block bounds types.

8 years agomake alphanumeric key shortcuts work for submenu's so you can chain keys together...
Campbell Barton [Mon, 10 Sep 2012 06:44:25 +0000 (06:44 +0000)]
make alphanumeric key shortcuts work for submenu's so you can chain keys together to select items in a menu.

eg: 'Ctrl+V, E, S'
for - Vertex, Separate, Selection

8 years agoCleanup for OSL linking in cmake: Move cmake OSL library search and path definition...
Lukas Toenne [Mon, 10 Sep 2012 06:18:20 +0000 (06:18 +0000)]
Cleanup for OSL linking in cmake: Move cmake OSL library search and path definition from the cycles macro file to the top-level CMakeLists.txt. This makes the OSL_LIBRARIES and other variables accessible throughout Blender cmake scripts and especially in the creator module for linking libraries.

8 years agofix [#32384] Submenu hotkeys not working at all since 2.6x
Campbell Barton [Mon, 10 Sep 2012 06:10:43 +0000 (06:10 +0000)]
fix [#32384] Submenu hotkeys not working at all since 2.6x

8 years agocode cleanup:
Campbell Barton [Mon, 10 Sep 2012 06:05:19 +0000 (06:05 +0000)]
code cleanup:
use an enum typedef for button types. it was quite annoying debugging UI code since the defines are bit-shifted. GDB would show but->type as 13824 and blender define was (27 << 9).

Now but->type shows as a humanly readable names.

8 years agomissing include in own recent commit
Campbell Barton [Mon, 10 Sep 2012 05:47:07 +0000 (05:47 +0000)]
missing include in own recent commit

8 years agofix [#32518] Vertex slide crash sometimes.
Campbell Barton [Mon, 10 Sep 2012 03:42:29 +0000 (03:42 +0000)]
fix [#32518] Vertex slide crash sometimes.

Undo would leave BMEditMesh->me pointer NULL, this would likely crash EDBM_verts_mirror_cache_begin() too.

Rather then restore 'me', remove the pointer altogether and use BMEditMesh->ob->data to save us having to keep track of 2 pointers.

8 years agocode cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.
Campbell Barton [Mon, 10 Sep 2012 03:34:43 +0000 (03:34 +0000)]
code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.

8 years agocode cleanup: use more specific args
Campbell Barton [Mon, 10 Sep 2012 02:45:29 +0000 (02:45 +0000)]
code cleanup: use more specific args

8 years agowhen pressing `play` report when the first frame can't be found.
Campbell Barton [Mon, 10 Sep 2012 02:04:02 +0000 (02:04 +0000)]
when pressing `play` report when the first frame can't be found.

8 years agocode cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.
Campbell Barton [Mon, 10 Sep 2012 01:55:58 +0000 (01:55 +0000)]
code cleanup: use single define for undo string size, was 64 mostly, but 512 in the UI.

8 years agostyle cleanup
Campbell Barton [Mon, 10 Sep 2012 01:34:42 +0000 (01:34 +0000)]
style cleanup

8 years agofix for own error in r50482.
Campbell Barton [Mon, 10 Sep 2012 01:22:04 +0000 (01:22 +0000)]
fix for own error in r50482.

8 years agostyle cleanup
Campbell Barton [Mon, 10 Sep 2012 01:07:20 +0000 (01:07 +0000)]
style cleanup

8 years agoFix #32513: incorrect color management in Material draw mode for Cycles.
Brecht Van Lommel [Sun, 9 Sep 2012 11:04:49 +0000 (11:04 +0000)]
Fix #32513: incorrect color management in Material draw mode for Cycles.

8 years agofix [#29072] Color pickers don't close properly when moving the mouse away
Campbell Barton [Sun, 9 Sep 2012 01:44:55 +0000 (01:44 +0000)]
fix [#29072] Color pickers don't close properly when moving the mouse away

instead of checking if the mouse is over another button to exit the popup.
Just check if the mouse is outside the rect-union between the button and the popup.

8 years agostyle cleanup:
Campbell Barton [Sun, 9 Sep 2012 00:00:21 +0000 (00:00 +0000)]
style cleanup:
also remove some redundant conversions int -> short -> int

8 years agofix for security flaw CVE-2008-1103, ref BZ #855092 on https://bugzilla.redhat.com
Campbell Barton [Sat, 8 Sep 2012 23:26:15 +0000 (23:26 +0000)]
fix for security flaw CVE-2008-1103, ref BZ #855092 on https://bugzilla.redhat.com

patch provided by Jochen Schmitt, made some minor edits.

8 years agominor improvements to saving quit.blend, print the OS error if the file fails to...
Campbell Barton [Sat, 8 Sep 2012 23:07:53 +0000 (23:07 +0000)]
minor improvements to saving quit.blend, print the OS error if the file fails to be created or written.

8 years agofix for error in own recent commit: do not hide alpha in HSV and Hex modes
Sv. Lockal [Sat, 8 Sep 2012 19:40:34 +0000 (19:40 +0000)]
fix for error in own recent commit: do not hide alpha in HSV and Hex modes

8 years agostyle cleanup
Campbell Barton [Sat, 8 Sep 2012 08:59:47 +0000 (08:59 +0000)]
style cleanup

8 years agostyle cleanup
Campbell Barton [Sat, 8 Sep 2012 06:40:03 +0000 (06:40 +0000)]
style cleanup

8 years ago== FFMPEG ==
Peter Schlaile [Fri, 7 Sep 2012 21:41:38 +0000 (21:41 +0000)]
== FFMPEG ==

This fixes [#32399] VSE doesn't show last 3 frames of Quicktime movie.

Some decoders store frames internally until EOF.
So one has to feed the decoding engine with empty packets after EOF
until all frames could be extracted properly.

8 years agoNew i18n font file for Blender, now including Hebrew charset!
Bastien Montagne [Fri, 7 Sep 2012 17:59:45 +0000 (17:59 +0000)]
New i18n font file for Blender, now including Hebrew charset!

8 years agoAdding Hebrew language.
Bastien Montagne [Fri, 7 Sep 2012 16:06:58 +0000 (16:06 +0000)]
Adding Hebrew language.

Note: looks like we do not have hebrew chars in current font... More FontForge fun ahead. :/

8 years agoinitial retina support for osx \ to take effect you must perhaps logout/in \i prefer...
Jens Verwiebe [Fri, 7 Sep 2012 15:44:20 +0000 (15:44 +0000)]
initial retina support for osx \ to take effect you must perhaps logout/in \i prefer in terminal: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f

8 years agoFix for Cycles (CUDA) compilation (again ...). Moved the AttributeStandard enum typed...
Lukas Toenne [Fri, 7 Sep 2012 11:06:45 +0000 (11:06 +0000)]
Fix for Cycles (CUDA) compilation (again ...). Moved the AttributeStandard enum typedef and the attribute_standard_name mapping function to util_attribute/util_types headers, so they can properly be used by kernel and render files alike. This should avoid any std C includes which are not available in CUDA. Thanks to Sergey for help!

8 years agoFix for order of creating mesh and filling in SculptSession
Sergey Sharybin [Fri, 7 Sep 2012 10:59:01 +0000 (10:59 +0000)]
Fix for order of creating mesh and filling in SculptSession

This would use proper draw_pbvh for initially calculated PBVH.

Wasn't harmful since this flag used to be updated form update_mesh_elements,
but it's still better to have things consistent all over.

8 years agominor fix for previous commit. ripping a vert-edge connected to a face would always...
Campbell Barton [Fri, 7 Sep 2012 06:46:26 +0000 (06:46 +0000)]
minor fix for previous commit. ripping a vert-edge connected to a face would always choose the face even if the mouse is closer to the edge, now check both edges and faces when ripping from a non wire vertex

8 years agominor improvements to rip
Campbell Barton [Fri, 7 Sep 2012 06:31:54 +0000 (06:31 +0000)]
minor improvements to rip
- rip tool didnt select the best edge to rip for wire verts (no connected faces)
- ripping one vert with 2 edges connected didnt work.

8 years agofixes for weight paint mode:
Campbell Barton [Fri, 7 Sep 2012 05:54:54 +0000 (05:54 +0000)]
fixes for weight paint mode:
- sample weight didnt work when the object was transformed.
- sample weight didnt work when vertex selection was enabled.
- 'All faces' option is used by weight paint mode, but there was no UI access.

add ED_mesh_pick_face_vert(). which uses the face selection buffer but returns the closest vertex.

8 years agofix Shift+LMB select when in weight-vertex-select mode. (it was mixing up vert/face...
Campbell Barton [Fri, 7 Sep 2012 02:18:04 +0000 (02:18 +0000)]
fix Shift+LMB select when in weight-vertex-select mode. (it was mixing up vert/face index values and didnt work at all)

8 years agoremove makeDerivedMesh from ED_mesh_pick_face(), this was added 44256 (bmesh merge...
Campbell Barton [Fri, 7 Sep 2012 00:58:00 +0000 (00:58 +0000)]
remove makeDerivedMesh from ED_mesh_pick_face(), this was added 44256 (bmesh merge), but is pretty bad (rebuilding entire derived mesh to pick a face), tested with subsurf modifier, sintel mesh - it works ok without it.
Also - other select modes like border-select dont do this, so looks safe to disable.

8 years agocode cleanup: header had many incorrect sections for function/file, also rename mouse...
Campbell Barton [Fri, 7 Sep 2012 00:22:10 +0000 (00:22 +0000)]
code cleanup: header had many incorrect sections for function/file, also rename mouse_mesh() --> EDBM_select_pick()

8 years agocode cleanup: move vertex and face picking functions into meshtools.c
Campbell Barton [Thu, 6 Sep 2012 23:50:28 +0000 (23:50 +0000)]
code cleanup: move vertex and face picking functions into meshtools.c

8 years agocode cleanup
Campbell Barton [Thu, 6 Sep 2012 23:41:03 +0000 (23:41 +0000)]
code cleanup

8 years agofix [#30063] Weight Paint + Pose Mode: [m] key does not toggle Face Selection Masking
Campbell Barton [Thu, 6 Sep 2012 23:10:01 +0000 (23:10 +0000)]
fix [#30063] Weight Paint + Pose Mode: [m] key does not toggle Face Selection Masking

disallow some pose operators when weight paint mode is enabled.

8 years agoResolve CUDA kernel compilation error
Sergey Sharybin [Thu, 6 Sep 2012 16:42:55 +0000 (16:42 +0000)]
Resolve CUDA kernel compilation error

Instead of including util_string.h which in fact also defines some
symbols from util_string.cpp include STL's string header and directly
use std::string.

8 years agoFix cycles continuously updating when creating a driver for a scene property,
Brecht Van Lommel [Thu, 6 Sep 2012 11:35:16 +0000 (11:35 +0000)]
Fix cycles continuously updating when creating a driver for a scene property,
like driving integrator seed with #frame.

The scene drivers are evaluated continuously, which would be nice to fix but
complicated, now it compares the RNA value to see if it actually changed, and
avoids the update in that case, which is a useful optimization by itself.

(merged from tomato branch)

8 years agoFix wrong cycles tile size in viewport, could affect performance a bit.
Brecht Van Lommel [Thu, 6 Sep 2012 11:34:55 +0000 (11:34 +0000)]
Fix wrong cycles tile size in viewport, could affect performance a bit.

8 years agofix for error in own recent commit
Campbell Barton [Thu, 6 Sep 2012 11:02:27 +0000 (11:02 +0000)]
fix for error in own recent commit

8 years agomake freeing sequencer strip without cache an option only exposed within sequencer.c
Campbell Barton [Thu, 6 Sep 2012 09:23:38 +0000 (09:23 +0000)]
make freeing sequencer strip without cache an option only exposed within sequencer.c

8 years agoCycles compiler fixes related to OSL changes:
Lukas Toenne [Thu, 6 Sep 2012 07:44:49 +0000 (07:44 +0000)]
Cycles compiler fixes related to OSL changes:

* reverted r50430
* removed 2 util_params.h includes from r50428, these were causing trouble with OIIO in CUDA compilation. The purpose of these was to define the ustring type, but can just use the standard string type from util_string as well.

8 years agofix [#32502] Shift + V Vertex slide doesn't work for x-mirror edit
Campbell Barton [Thu, 6 Sep 2012 06:18:10 +0000 (06:18 +0000)]
fix [#32502] Shift + V Vertex slide doesn't work for x-mirror edit

8 years agofix for crash in sequencer introduced with recent cache addition,
Campbell Barton [Thu, 6 Sep 2012 04:45:25 +0000 (04:45 +0000)]
fix for crash in sequencer introduced with recent cache addition,
- running undo with metastrips would crash immediately.
- freeing a strip without a scene would crash (clipboard does this).

8 years agofix [#32475] Enabled audio lets blender crash with autosplit option for movie output
Campbell Barton [Thu, 6 Sep 2012 03:08:47 +0000 (03:08 +0000)]
fix [#32475] Enabled audio lets blender crash with autosplit option for movie output

8 years agostyle cleanup: indentation
Campbell Barton [Thu, 6 Sep 2012 02:20:03 +0000 (02:20 +0000)]
style cleanup: indentation

8 years agocode clenup: comments and some style edits on ghost/osx (odd indentation)
Campbell Barton [Thu, 6 Sep 2012 02:10:09 +0000 (02:10 +0000)]
code clenup: comments and some style edits on ghost/osx (odd indentation)

8 years agocode cleanup: capitalize defines.
Campbell Barton [Thu, 6 Sep 2012 01:31:15 +0000 (01:31 +0000)]
code cleanup: capitalize defines.

8 years agofix [#32500] Odd behaviour with subdividing an ngon
Campbell Barton [Thu, 6 Sep 2012 01:06:36 +0000 (01:06 +0000)]
fix [#32500] Odd behaviour with subdividing an ngon

8 years agosupport ANIMFILTER_FOREDIT for mask layers, also move deprecated metaball types to...
Campbell Barton [Thu, 6 Sep 2012 00:38:28 +0000 (00:38 +0000)]
support ANIMFILTER_FOREDIT for mask layers, also move deprecated metaball types to the end of the switch statement when evaluating metaballs.

8 years agocode cleanup: remove deprecated defines and some struct members
Campbell Barton [Thu, 6 Sep 2012 00:33:59 +0000 (00:33 +0000)]
code cleanup: remove deprecated defines and some struct members

8 years agocommitted by accident
Campbell Barton [Wed, 5 Sep 2012 23:30:30 +0000 (23:30 +0000)]
committed by accident

8 years agocode cleanup: BM_face_legal_splits() was doing some redundant assignments.
Campbell Barton [Wed, 5 Sep 2012 23:22:47 +0000 (23:22 +0000)]
code cleanup: BM_face_legal_splits() was doing some redundant assignments.

8 years agoOSL Backend:
Thomas Dinges [Wed, 5 Sep 2012 23:22:36 +0000 (23:22 +0000)]
OSL Backend:
* Added the Phong BRDF from the inbuilt OSL shader library.

This can be used in OSL shaders only for now:
* phong(normal N, float exponent)
* phong_ramp(normal N, float exponent, color colors[8]

8 years agocode cleanup: use *(*var)[2] for pairs in bmesh code rather then a 1d array stepping...
Campbell Barton [Wed, 5 Sep 2012 23:17:19 +0000 (23:17 +0000)]
code cleanup: use *(*var)[2] for pairs in bmesh code rather then a 1d array stepping by 2.

8 years agosilencing some of the warnings in OSL for OSX
Dalai Felinto [Wed, 5 Sep 2012 20:50:10 +0000 (20:50 +0000)]
silencing some of the warnings in OSL for OSX

8 years agocode cleanup: bmesh subdivide code was growing arrays one by one, when the final...
Campbell Barton [Wed, 5 Sep 2012 19:21:55 +0000 (19:21 +0000)]
code cleanup: bmesh subdivide code was growing arrays one by one, when the final size is known - do this in one go.
also replace for loops with iterator macros.

8 years agoAdding brazilian portuguese language, as requested by portuguese team.
Bastien Montagne [Wed, 5 Sep 2012 18:35:22 +0000 (18:35 +0000)]
Adding brazilian portuguese language, as requested by portuguese team.

8 years agoQuick fix for compiler error. Somehow the isfinite symbol got lost for SVM too now...
Lukas Toenne [Wed, 5 Sep 2012 18:12:17 +0000 (18:12 +0000)]
Quick fix for compiler error. Somehow the isfinite symbol got lost for SVM too now, no idea how this happened or where it actually came from. This will likely also cause trouble with CUDA/OpenCL compilers, will have to be fixed properly later.

8 years agoFix for attribute lookup in OSL. This uses a map in the OSL globals instead of the...
Lukas Toenne [Wed, 5 Sep 2012 17:08:56 +0000 (17:08 +0000)]
Fix for attribute lookup in OSL. This uses a map in the OSL globals instead of the device texture.

8 years agoSequencer: show color sample line in image display mode only
Sergey Sharybin [Wed, 5 Sep 2012 14:11:22 +0000 (14:11 +0000)]
Sequencer: show color sample line in image display mode only

8 years agoFix compositor crash. g_highlightedNodes can be NULL.
Antony Riakiotakis [Wed, 5 Sep 2012 13:50:24 +0000 (13:50 +0000)]
Fix compositor crash. g_highlightedNodes can be NULL.

8 years agoCycles fix: particle standard attribute had no name conversion yet.
Lukas Toenne [Wed, 5 Sep 2012 12:06:44 +0000 (12:06 +0000)]
Cycles fix: particle standard attribute had no name conversion yet.

8 years agofix/workaround [#31555] Username with special chars in Windows 7
Campbell Barton [Wed, 5 Sep 2012 09:33:15 +0000 (09:33 +0000)]
fix/workaround [#31555] Username with special chars in Windows 7

Theres a bug where python/windows ignores PYTHONIOENCODING, workaround this by manually overriding the stdout/stderr.

8 years ago * gcc 4.7 is more strict. This patch will remove 'non virtual
Jeroen Bakker [Wed, 5 Sep 2012 08:50:25 +0000 (08:50 +0000)]
 * gcc 4.7 is more strict. This patch will remove 'non virtual
destructor warnings' in the core of the compositor.

8 years agoFix for OSL memory leak. The context creation for OSL is now done in the shader_setup...
Lukas Toenne [Wed, 5 Sep 2012 08:12:22 +0000 (08:12 +0000)]
Fix for OSL memory leak. The context creation for OSL is now done in the shader_setup_* functions, since it should specific to the sample being worked on. The the context release then happens in the kernel_shader functions after shader evaluation is done. Care has to be taken to ensure the shader_release function is also called in cases where the path integration is cancelled early, this was the main cause for unreleased contexts and subsequent new allocations.

8 years agofix [#29431] "Normalize All" from Weight Tools don't work correctly
Campbell Barton [Wed, 5 Sep 2012 04:16:09 +0000 (04:16 +0000)]
fix [#29431] "Normalize All" from Weight Tools don't work correctly

8 years agocode cleanup: move get_selected_defgroups into object_deform.c and make it behave...
Campbell Barton [Wed, 5 Sep 2012 03:45:32 +0000 (03:45 +0000)]
code cleanup: move get_selected_defgroups into object_deform.c and make it behave like similar functions, also when drawing vertex weight colors, only call this function when multi-paint is enabled.

8 years agocode cleanup: move functions for getting defgroup arrays from objects out of editors...
Campbell Barton [Wed, 5 Sep 2012 02:51:55 +0000 (02:51 +0000)]
code cleanup: move functions for getting defgroup arrays from objects out of editors into blenkernel, since they are generally useful.

8 years agofix for various redundant checks and possibly fix some crashes in rare situations.
Campbell Barton [Wed, 5 Sep 2012 01:42:52 +0000 (01:42 +0000)]
fix for various redundant checks and possibly fix some crashes in rare situations.

8 years ago* Forgot to commit CMake change for the Brick texture.
Thomas Dinges [Wed, 5 Sep 2012 00:59:04 +0000 (00:59 +0000)]
* Forgot to commit CMake change for the Brick texture.

8 years agoadd missing files from cmakes lists
Campbell Barton [Wed, 5 Sep 2012 00:52:35 +0000 (00:52 +0000)]
add missing files from cmakes lists

8 years agochange templates to call modal_handler_add() is called last since any errors between...
Campbell Barton [Wed, 5 Sep 2012 00:11:39 +0000 (00:11 +0000)]
change templates to call modal_handler_add() is called last since any errors between calling this function and returning will crash blender. see [#30687]

8 years agoOSL:
Thomas Dinges [Tue, 4 Sep 2012 23:34:08 +0000 (23:34 +0000)]
OSL:
* Noise Texture is rendering now.

8 years agoCycles / OSL:
Thomas Dinges [Tue, 4 Sep 2012 22:33:11 +0000 (22:33 +0000)]
Cycles / OSL:
* Ported the Brick Texture to OSL. Renders fine :)

8 years agocode cleanup: python - pass multiple args to string startswith() / endswith() functio...
Campbell Barton [Tue, 4 Sep 2012 20:26:42 +0000 (20:26 +0000)]
code cleanup: python - pass multiple args to string startswith() / endswith() functions rather than calling multiple times.

8 years agofix [#32490] Compsitor crashes on missing OpenEXR multilayer files
Campbell Barton [Tue, 4 Sep 2012 19:42:09 +0000 (19:42 +0000)]
fix [#32490] Compsitor crashes on missing OpenEXR multilayer files

8 years agostule cleanup
Campbell Barton [Tue, 4 Sep 2012 18:47:08 +0000 (18:47 +0000)]
stule cleanup

8 years agofix for some errors reported by http://clang.blenderheads.org/trunk/ in r50384.
Campbell Barton [Tue, 4 Sep 2012 18:27:47 +0000 (18:27 +0000)]
fix for some errors reported by clang.blenderheads.org/trunk/ in r50384.
- when renderlayers could not be found in save_render_result_tile() blender would crash.
- RE_engine_end_result() / rna end_result() didn't set result argument as required.
... also some style cleanup.

8 years agoRevert "Use one context per OSL thread. Not sure if this actually works, but the...
Lukas Toenne [Tue, 4 Sep 2012 17:28:36 +0000 (17:28 +0000)]
Revert "Use one context per OSL thread. Not sure if this actually works, but the simple renderer example in OSL does it this way."

This does not actually work: The context must not be shared between threads, but using the same context between different samples actually seems to prevent OSL from switching between shaders. The proper solution would be to ensure memory pooling works correctly.

This reverts commit 69f87e69258d6266dcb20f09f7e3d4021e663432.

8 years agoDo not show %t to user on right click menu buttons which use "Name%t|...%x0|..."...
Sv. Lockal [Tue, 4 Sep 2012 17:09:40 +0000 (17:09 +0000)]
Do not show %t to user on right click menu buttons which use "Name%t|...%x0|..." syntax

8 years agoSequencer: avoid allocating image buffer on every modifier
Sergey Sharybin [Tue, 4 Sep 2012 16:55:12 +0000 (16:55 +0000)]
Sequencer: avoid allocating image buffer on every modifier

This means that modifier would operate on buffer which was passed to it,
without creating copy of image buffer and operating on it.

All current modifiers fit into this model and if it would need to have
original buffer on modifier calculation, that particular modifier can
create copy.

Gives some percentage of boost.