7 years agocode cleanup: warnings
Campbell Barton [Mon, 4 Feb 2013 16:20:39 +0000 (16:20 +0000)]
code cleanup: warnings

7 years agoCompositor "Relative" option for Translate node, same as for other nodes this
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:42 +0000 (16:12 +0000)]
Compositor "Relative" option for Translate node, same as for other nodes this
makes it possible to specify an offset relative to the render resolution (so 0.5
is half the image rather than giving the number of pixels). It's a bit late but
it's a trivial change and needed for 4k mango render.

7 years agoFix cycles intersection issue with overlapping faces on windows 32 bit and CPU
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:37 +0000 (16:12 +0000)]
Fix cycles intersection issue with overlapping faces on windows 32 bit and CPU
without SSE3 support, due to 80 bit precision float register being used for one
bounding box but not the one next to it.

7 years agoFix window fullscreen crash when building for Mac OS X 10.5.
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:27 +0000 (16:12 +0000)]
Fix window fullscreen crash when building for Mac OS X 10.5.

7 years agofix for rangefunc being unused for int & int array.
Campbell Barton [Mon, 4 Feb 2013 15:48:29 +0000 (15:48 +0000)]
fix for rangefunc being unused for int & int array.

also cast strlen to an int to avoid overflow.

7 years agofix for memory leak selecting dope sheet summary with mask/grease-pencil data.
Campbell Barton [Mon, 4 Feb 2013 13:50:09 +0000 (13:50 +0000)]
fix for memory leak selecting dope sheet summary with mask/grease-pencil data.

7 years agofix [#34107] Grease pencil crash after box select
Campbell Barton [Mon, 4 Feb 2013 13:17:34 +0000 (13:17 +0000)]
fix [#34107] Grease pencil crash after box select

7 years agofix [#34104] vertex color: color select bug
Campbell Barton [Mon, 4 Feb 2013 12:32:24 +0000 (12:32 +0000)]
fix [#34104] vertex color: color select bug

changing the hue in a color picker on a panel when black/white was selected would fail because the hue from the previous state wasnt stored.

7 years agoFix #34079: RGB and HSV values inconsistency
Sergey Sharybin [Mon, 4 Feb 2013 12:14:59 +0000 (12:14 +0000)]
Fix #34079: RGB and HSV values inconsistency

Use COLOR_GAMMA subtype for new image color since this color is
actually being color managed. Also made it so byte and float
buffers would have the same exact display color after creation
with the same color value.

Also made it so color strip's color have COLOR_GAMMA subtype,
otherwise swatch color wouldn't match render result which is
not nice at all.

7 years agofix [#34098] Crash after using Decimate or Remesh modifiers
Campbell Barton [Mon, 4 Feb 2013 11:28:31 +0000 (11:28 +0000)]
fix [#34098] Crash after using Decimate or Remesh modifiers

converting a derived mesh to a mesh didnt clear its selection history, which could be invalid after applying a modifier.

7 years agoCycles / OSL:
Thomas Dinges [Mon, 4 Feb 2013 11:23:40 +0000 (11:23 +0000)]
Cycles / OSL:
* Fix for r53689, there are two noise types, signed and unsigned.
Caused Musgrave Texture to render differently compared to SVM backend.

7 years agoCycles preview scene: made render layer name match name used for BI preview
Sergey Sharybin [Mon, 4 Feb 2013 11:06:47 +0000 (11:06 +0000)]
Cycles preview scene: made render layer name match name used for BI preview

This is needed because render result is being reused between different render
previews and keeping names out of sync means once preview result was created
for blender internal, it wouldn't be updated after switching to cycles.

Same goes to switching from cycles to other renderers like lux and yaf.

Simply updated cycles_preview.blend for now, could be solved from code side
as well, but IMO better to collect such a limitations of preview blend files
and solve them all together during "custom preview.blend for external engines"

Reported by Jens in IRC.

7 years agoadd BM_edge_is_contiguous(), check for python api.
Campbell Barton [Mon, 4 Feb 2013 10:14:31 +0000 (10:14 +0000)]
add BM_edge_is_contiguous(), check for python api.

7 years agofix [#33831] "Alt" key is "Alt Window Deactivated"
Campbell Barton [Mon, 4 Feb 2013 07:51:01 +0000 (07:51 +0000)]
fix [#33831] "Alt" key is "Alt Window Deactivated"
update to the ubuntu workaround from Shinsuke Irie.

7 years agostyle cleanup: spaces -> tabs
Campbell Barton [Mon, 4 Feb 2013 00:18:09 +0000 (00:18 +0000)]
style cleanup: spaces -> tabs

7 years agostyle cleanup
Campbell Barton [Mon, 4 Feb 2013 00:05:15 +0000 (00:05 +0000)]
style cleanup

7 years agodrawvolume was timing drawing unnecessarily,
Campbell Barton [Mon, 4 Feb 2013 00:02:26 +0000 (00:02 +0000)]
drawvolume was timing drawing unnecessarily,
replace local defined timing functions with calls to TIMEIT_* macros from PIL_time.h and disable by default.

7 years agoOne fix for bug [#33785] compositor is (unnecessarily?) slow
Monique Dewanchand [Sun, 3 Feb 2013 17:22:26 +0000 (17:22 +0000)]
One fix for bug [#33785] compositor is (unnecessarily?) slow
Added additional buffers - new subtree - for groupnodes.
One needs to be aware of how groupnodes should be created.
Having translate & scale nodes, with the translate inside the groupnode and the scale node outside, causes artefacts.
Both should be inside or outside the groupnode. Same holds for other distort nodes.

7 years agoFix for [#34089] Crash opening file containing translation node saved before rev54235
Jeroen Bakker [Sun, 3 Feb 2013 15:38:06 +0000 (15:38 +0000)]
Fix for [#34089] Crash opening file containing translation node saved before rev54235

7 years agoFix for [#34022] Lines on renders using Blur node in flat mode
Jeroen Bakker [Sun, 3 Feb 2013 15:06:16 +0000 (15:06 +0000)]
Fix for [#34022] Lines on renders using Blur node in flat mode

7 years agoremove paranoid null check from BLI_ghash_lookup(), was the only ghash function with...
Campbell Barton [Sun, 3 Feb 2013 15:03:55 +0000 (15:03 +0000)]
remove paranoid null check from BLI_ghash_lookup(), was the only ghash function with a null check, callers better check the ghash exists first.

7 years agoFix #34087: cycles shadow pass not properly normalized for non-progressive integrator
Brecht Van Lommel [Sun, 3 Feb 2013 13:10:56 +0000 (13:10 +0000)]
Fix #34087: cycles shadow pass not properly normalized for non-progressive integrator
with > 1 samples for a lamp.

7 years agofix [#34093] Metastrips don't behave correctly with alt+leftarrow
Campbell Barton [Sun, 3 Feb 2013 12:19:14 +0000 (12:19 +0000)]
fix [#34093] Metastrips don't behave correctly with alt+leftarrow

7 years agostyle cleanup & some spelling
Campbell Barton [Sun, 3 Feb 2013 10:28:28 +0000 (10:28 +0000)]
style cleanup & some spelling

7 years agoBug fix #34090
Ton Roosendaal [Sun, 3 Feb 2013 10:26:51 +0000 (10:26 +0000)]
Bug fix #34090

Animation of render output size is not supported, not for render borders either.
This commit makes the border rna properties disable animation support.

7 years agofix BM_loop_calc_face_tangent for concave face corners, caused a bug in wire-frame...
Campbell Barton [Sun, 3 Feb 2013 09:44:37 +0000 (09:44 +0000)]
fix BM_loop_calc_face_tangent for concave face corners, caused a bug in wire-frame operator.

7 years agofix for error in own recent change, sculpt triangulate was done on a bmesh with unini...
Campbell Barton [Sun, 3 Feb 2013 08:13:15 +0000 (08:13 +0000)]
fix for error in own recent change, sculpt triangulate was done on a bmesh with uninitialized faces normals,
add warning that BM_mesh_bm_from_me() dosn't calculate face normals.

7 years agowhen triangulating ngons, use beauty option to rotate edges. gives much nicer results...
Campbell Barton [Sun, 3 Feb 2013 08:07:14 +0000 (08:07 +0000)]
when triangulating ngons, use beauty option to rotate edges. gives much nicer results and means you can preserve original edges without triangulating ngons one at a time

7 years agoimprove edge slide with ngon's, distance calculation was average edge length.
Campbell Barton [Sun, 3 Feb 2013 07:26:58 +0000 (07:26 +0000)]
improve edge slide with ngon's, distance calculation was average edge length.
now use the slide vector to find opposite ngon edge which sets the slide destination.

7 years agoadd dist_to_line_v3() for completeness, (had dist_to_line_v2 already)
Campbell Barton [Sun, 3 Feb 2013 07:24:31 +0000 (07:24 +0000)]
add dist_to_line_v3() for completeness, (had dist_to_line_v2 already)

7 years agofix [#34073] Combined EdgeLoop slides weirdly on even try
Campbell Barton [Sun, 3 Feb 2013 06:09:29 +0000 (06:09 +0000)]
fix [#34073] Combined EdgeLoop slides weirdly on even try

concave check on co-linear edges could fail, avoid by using the loop-direction + face normal.

7 years agoimprove BMesh api use from r54265, no need to do edge lookups from the faces verts...
Campbell Barton [Sun, 3 Feb 2013 02:54:24 +0000 (02:54 +0000)]
improve BMesh api use from r54265, no need to do edge lookups from the faces verts since the face stores these already.

also remove ScrArea.cursor, historic runtime variable.

7 years agoRemove loose edges created during undo in dynamic-topology sculpt mode
Nicholas Bishop [Sat, 2 Feb 2013 16:54:18 +0000 (16:54 +0000)]
Remove loose edges created during undo in dynamic-topology sculpt mode

Fixes [#34043] "Dyntopo: noise appear during sculpting (parasite edges)"

7 years agofix for glitch drawing file selector dividers (would draw apart or on top of each...
Campbell Barton [Sat, 2 Feb 2013 14:11:58 +0000 (14:11 +0000)]
fix for glitch drawing file selector dividers (would draw apart or on top of each other depending on the view)

7 years agocode style checker now tests for: 'SomeText{' (no space before {).
Campbell Barton [Sat, 2 Feb 2013 13:55:47 +0000 (13:55 +0000)]
code style checker now tests for: 'SomeText{' (no space before {).
also removed duplicate break;, probably error from merge.

7 years agotriangulate was checking existance of edges unnecessarily, splitting face already...
Campbell Barton [Sat, 2 Feb 2013 06:06:34 +0000 (06:06 +0000)]
triangulate was checking existance of edges unnecessarily, splitting face already does this.

7 years agoBugfix: "Extend" transform tool would leave dangling "temp meta strips" if none
Joshua Leung [Sat, 2 Feb 2013 05:38:57 +0000 (05:38 +0000)]
Bugfix: "Extend" transform tool would leave dangling "temp meta strips" if none
of those strips occurred on the same side of CFRA indicator as the mouse

7 years agostyle cleanup
Campbell Barton [Sat, 2 Feb 2013 04:58:03 +0000 (04:58 +0000)]
style cleanup

7 years agostyle cleanup: comment format
Campbell Barton [Sat, 2 Feb 2013 04:48:21 +0000 (04:48 +0000)]
style cleanup: comment format

7 years agoadd missing break in direct_link_constraints, CONSTRAINT_SPACEONCE flag was getting...
Campbell Barton [Sat, 2 Feb 2013 04:13:38 +0000 (04:13 +0000)]
add missing break in direct_link_constraints, CONSTRAINT_SPACEONCE flag was getting set to CONSTRAINT_TYPE_KINEMATIC.

7 years agoCycles Hair: Fixed hair shape and inclusion of multiple attributes for triangle primi...
Stuart Broadfoot [Sat, 2 Feb 2013 01:49:57 +0000 (01:49 +0000)]
Cycles Hair: Fixed hair shape and inclusion of multiple attributes for triangle primitives

When using triangle primitives this fix enables 'closed tip'.

UVs and vertex colours are added when using triangle primitives for hair.

Two new preset modes have also been included to allow easy access to curves and triangle planes.

7 years agostyle cleanup: also correct doc example for 'foreach_get/set'
Campbell Barton [Sat, 2 Feb 2013 00:34:34 +0000 (00:34 +0000)]
style cleanup: also correct doc example for 'foreach_get/set'

7 years agoFix an issue with the new cycles lamp MIS option not working correct with
Brecht Van Lommel [Fri, 1 Feb 2013 18:54:24 +0000 (18:54 +0000)]
Fix an issue with the new cycles lamp MIS option not working correct with
multiple lamps.

7 years agoFix python foreach_get/foreach_set not working with dynamic sized arrays.
Brecht Van Lommel [Fri, 1 Feb 2013 18:00:41 +0000 (18:00 +0000)]
Fix python foreach_get/foreach_set not working with dynamic sized arrays.

7 years agoFix cycles computing UV map tangents when they weren't needed.
Brecht Van Lommel [Fri, 1 Feb 2013 18:00:30 +0000 (18:00 +0000)]
Fix cycles computing UV map tangents when they weren't needed.

7 years agoCompile fix
Sergej Reich [Fri, 1 Feb 2013 16:03:42 +0000 (16:03 +0000)]
Compile fix

Patch [#34075] by Davis Sorenson (dsavi), thanks.

7 years agoFix some warnings in the collade code, but did not fix two because they seem
Brecht Van Lommel [Fri, 1 Feb 2013 15:17:51 +0000 (15:17 +0000)]
Fix some warnings in the collade code, but did not fix two because they seem
to indicate bugs, left a comment about those.

7 years agoFix #34070: set origin operator did not work for lattice objects.
Brecht Van Lommel [Fri, 1 Feb 2013 15:17:39 +0000 (15:17 +0000)]
Fix #34070: set origin operator did not work for lattice objects.

7 years agomake WITH_HEADLESS build again.
Campbell Barton [Fri, 1 Feb 2013 08:24:18 +0000 (08:24 +0000)]
make WITH_HEADLESS build again.

7 years agoMove opencl and reigidbody from source/blender/ to intern/
Sergey Sharybin [Fri, 1 Feb 2013 06:24:49 +0000 (06:24 +0000)]
Move opencl and reigidbody from source/blender/ to intern/

This modules does not depend on any blender-specific data
structures or algorithms and due to our policy better be
placed to intern/

Shall be no functional changes, tested CMake and SCons on
Linux, hopefully other platforms will work as well.

P.S. SVN history shall be preserved for the files.

7 years agofix for [#33803], error was caused by sloppy coding in r53487, converting trackpad...
Campbell Barton [Fri, 1 Feb 2013 01:11:27 +0000 (01:11 +0000)]
fix for [#33803], error was caused by sloppy coding in r53487, converting trackpad to wheel events.

if you moved your mouse fast over a button the event would get converted to a wheel, even if the input event wasnt a MOUSEPAN event.

When Alt was held this was noticable because Alt+Wheel changes button values.

added an assert to avoid this happening again.

7 years agocode cleanup: make wmEvent's 'const' in interface code (reduces manual checking that...
Campbell Barton [Fri, 1 Feb 2013 01:01:20 +0000 (01:01 +0000)]
code cleanup: make wmEvent's 'const' in interface code (reduces manual checking that they are not modified).

7 years agoexpose WITH_BOOST as a cmake option, this just disables boost deps since it was becom...
Campbell Barton [Thu, 31 Jan 2013 23:25:06 +0000 (23:25 +0000)]
expose WITH_BOOST as a cmake option, this just disables boost deps since it was becoming annoying to remember all of them.

7 years agofix error with flipped vertex slide failing, also fix bug where you could be flipped...
Campbell Barton [Thu, 31 Jan 2013 22:18:37 +0000 (22:18 +0000)]
fix error with flipped vertex slide failing, also fix bug where you could be flipped and in proportional vertex slide mode.

7 years agoui_but_anim_expression_create was never returning true, even when it succeeded.
Campbell Barton [Thu, 31 Jan 2013 21:56:14 +0000 (21:56 +0000)]
ui_but_anim_expression_create was never returning true, even when it succeeded.

7 years agostyle cleanup
Campbell Barton [Thu, 31 Jan 2013 21:15:38 +0000 (21:15 +0000)]
style cleanup

7 years agodisable xinerama and xinput if libraries are missing.
Campbell Barton [Thu, 31 Jan 2013 20:41:47 +0000 (20:41 +0000)]
disable xinerama and xinput if libraries are missing.

7 years agoOSL 1.3x / Windows 64:
Thomas Dinges [Thu, 31 Jan 2013 17:38:09 +0000 (17:38 +0000)]
OSL 1.3x / Windows 64:
* Added missing define into SConscript file. This also makes r54232 obsolete, so removing this again.

7 years agoFix #34034: keyframe display of color/curve buttons was broken after revision
Brecht Van Lommel [Thu, 31 Jan 2013 16:19:44 +0000 (16:19 +0000)]
Fix #34034: keyframe display of color/curve buttons was broken after revision
53132 which changed the RNA index to -1 for these. Also made it so that these
buttons no longer display "Insert Single Keyframe" and only "Insert Keyframe"
as you can't edit individual components here so it's only confusing.

7 years agoCycles: disable unnecessary preview render job for per node previews, they don't
Brecht Van Lommel [Thu, 31 Jan 2013 15:31:47 +0000 (15:31 +0000)]
Cycles: disable unnecessary preview render job for per node previews, they don't
work so was just wasting CPU time.

7 years ago Apply patch [#33999] Wrapping mode for the "translate" compositing node
Monique Dewanchand [Thu, 31 Jan 2013 15:08:37 +0000 (15:08 +0000)]
 Apply patch [#33999] Wrapping mode for the "translate" compositing node

this patch enables the translate node to wrap around the image borders. This is especially needed if the translate node is not used to position elements on a layer but when it is used instead for seamless backgrounds like mountains or clouds that should be repeated over time (by animating the x/y values).

No trunk without docs! So here is my documentation:

The code is properly documented and should be easy to read and understand. When there are any problems or issues, please comment, I'll tackle them right away!

Greetings, Thomas Beck

 * optimized determination dependant areas
 * fixed some issues with scale node

There are still some issues when scaling very small values (x=0.0001)

 - At Mind -

7 years agoFix UI translation partly missing in scons builds (reported by Leon Cheung and Gabrie...
Bastien Montagne [Thu, 31 Jan 2013 14:25:07 +0000 (14:25 +0000)]
Fix UI translation partly missing in scons builds (reported by Leon Cheung and Gabriel Gazzán on ML, and lockal on IRC, thanks).

The problem is that, when HAVE__BOOL is not defined (as it is the case in scons currently), BLI_utildefines.h defines bool as a standard type. Was using signed char, which makes eg "bool foo = 1024" be false (overflow)! Especially nasty when using bitflags (think we have been lucky to not have worse bugs because of that)!

So changed fallback bool type to unsigned int.

7 years agoFix #33874: active UV map chooser in uv editor should not have X button as you
Brecht Van Lommel [Thu, 31 Jan 2013 13:44:13 +0000 (13:44 +0000)]
Fix #33874: active UV map chooser in uv editor should not have X button as you
can't not have an active UV map.

7 years agoAttempt to fix cycles OSL link error on windows 64 bit.
Brecht Van Lommel [Thu, 31 Jan 2013 13:44:03 +0000 (13:44 +0000)]
Attempt to fix cycles OSL link error on windows 64 bit.

7 years agoFix bevel bug #33906, unwanted distortion with skewed meshes.
Howard Trickey [Thu, 31 Jan 2013 12:54:06 +0000 (12:54 +0000)]
Fix bevel bug #33906, unwanted distortion with skewed meshes.

The code for making a rounded profile edge at a vertex needed
a special case for when that profile is on the third face
(the one not touched by the beveled edge) when only one edge
is beveled and the three faces are not orthogonal.

7 years agoFix scons building under unix. Now we should really have only *one* '/usr/lib' lib...
Bastien Montagne [Thu, 31 Jan 2013 12:24:12 +0000 (12:24 +0000)]
Fix scons building under unix. Now we should really have only *one* '/usr/lib' lib search path, in last position! Previously we could have a bunch of those, even in first position, which would e.g. prevent linking against a custom boost in /opt/lib/boost if you had a system boost installed...

7 years agoreplace BLI_make_file_string with BLI_join_dirfile since its much more simple and...
Campbell Barton [Thu, 31 Jan 2013 11:17:08 +0000 (11:17 +0000)]
replace BLI_make_file_string with BLI_join_dirfile since its much more simple and does whats needed.

7 years agowrite all crashlogs into the temp directory (not next to blend files).
Campbell Barton [Thu, 31 Jan 2013 11:10:43 +0000 (11:10 +0000)]
write all crashlogs into the temp directory (not next to blend files).

7 years agoAdd Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should...
Campbell Barton [Thu, 31 Jan 2013 11:05:09 +0000 (11:05 +0000)]
Add Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should (previously would include all monitors).

Now the active monitor size is used on startup.
Currently the cursor position is checked for intersection with the monitor bounds to find the active screen.

7 years agoadd ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions
Campbell Barton [Thu, 31 Jan 2013 10:42:26 +0000 (10:42 +0000)]
add ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions

This returns the desktop size, not just the size of the active monitor, useful since this constrains the mouse and we dont have to detect the active monitor (which isn't so straightforward with xlib).

carbon/cocoa are TODO, they still use getMainDisplayDimensions().

7 years agostart window non-maximized since this is more the `default` state for windows. (linux...
Campbell Barton [Thu, 31 Jan 2013 09:53:34 +0000 (09:53 +0000)]
start window non-maximized since this is more the `default` state for windows. (linux/win only)

7 years agoFix msvc compile
Miika Hamalainen [Thu, 31 Jan 2013 08:55:00 +0000 (08:55 +0000)]
Fix msvc compile

7 years agopatch [#33985] Added FModifierEnvelope control_point add remove to API
Campbell Barton [Thu, 31 Jan 2013 08:19:11 +0000 (08:19 +0000)]
patch [#33985] Added FModifierEnvelope control_point add remove to API
from Peter Staples (batfinger)

7 years agofix [#34050] Regression from 2.49, "Release confirms" interferes with loop cutting
Campbell Barton [Thu, 31 Jan 2013 06:38:35 +0000 (06:38 +0000)]
fix [#34050] Regression from 2.49, "Release confirms" interferes with loop cutting

7 years agoinitializing maximized/fullscreen windows in x11 would start normal, then maximize...
Campbell Barton [Thu, 31 Jan 2013 05:55:57 +0000 (05:55 +0000)]
initializing maximized/fullscreen windows in x11 would start normal, then maximize - causing noticeable flicker.

7 years agofix/workaround [#34026] Blender starts with too large window
Campbell Barton [Thu, 31 Jan 2013 05:37:52 +0000 (05:37 +0000)]
fix/workaround [#34026] Blender starts with too large window

Minimal change to stop blender window opening across all monitors.

Workaround the problem by starting maximized, and using sane defaults for non maximized window.

I checked on a few different solutions to this, Using Xinerama works OK, but with different size monitors
and not knowing which one the window-manager will pick in advance - this can be wrong too.

Now instead of opening with the screen size, just start maximized and use a default size for the non-maximized window (clamped by the screen size).

This isn't perfect since you could have 2x monitors at 1024x768, open blender, un-maximize - and blender window would cross over into the second monitor.

7 years agoGPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points
Dan Eicher [Wed, 30 Jan 2013 23:54:49 +0000 (23:54 +0000)]
GPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points

7 years agoCycles:
Thomas Dinges [Wed, 30 Jan 2013 22:21:55 +0000 (22:21 +0000)]
* One more fix for Boost Linker errors with new OSL master branch.

7 years agoFix cycles windows link errors when building with OSL master branch.
Brecht Van Lommel [Wed, 30 Jan 2013 21:58:47 +0000 (21:58 +0000)]
Fix cycles windows link errors when building with OSL master branch.

7 years agostyle cleanup
Campbell Barton [Wed, 30 Jan 2013 21:17:38 +0000 (21:17 +0000)]
style cleanup

7 years agoadd BLI_mempool_as_arrayN utility function for getting the mempool as a new array...
Campbell Barton [Wed, 30 Jan 2013 21:17:09 +0000 (21:17 +0000)]
add BLI_mempool_as_arrayN utility function for getting the mempool as a new array (utility function currently unused).

7 years agoFix #33984: cycles shadow pass problem with CUDA.
Brecht Van Lommel [Wed, 30 Jan 2013 17:04:51 +0000 (17:04 +0000)]
Fix #33984: cycles shadow pass problem with CUDA.

7 years agoCycles: make multiple importance sampling for lamps an option per lamp now,
Brecht Van Lommel [Wed, 30 Jan 2013 15:57:15 +0000 (15:57 +0000)]
Cycles: make multiple importance sampling for lamps an option per lamp now,
disabled by default for backwards compatibility.

7 years agoPatch by erwin94 [#34015] dilate/erode multithreading
Monique Dewanchand [Wed, 30 Jan 2013 15:43:13 +0000 (15:43 +0000)]
Patch by erwin94 [#34015] dilate/erode multithreading

another patch for the dilate/erode step method, still without any functional changes.
This time it keeps the general algorithm but uses the tile system to make it
multithreaded. I could not measure a speedup on my 2-core laptop, but hope that
it will be faster for more cores. The immediate speedup that is very visible though is
that tiles come in as soon as they are calculated and a dilate/erode node does not
block the whole image to be calculated.

till then, David.

7 years agostartup.blend edits
Campbell Barton [Wed, 30 Jan 2013 15:34:02 +0000 (15:34 +0000)]
startup.blend edits
- make timeline less tall.
- make outliner more tall.
- set node and image channel displayes to RGBA.

7 years agodisable ubuntu unity workaround, causes issues with modifier keys held doun with...
Campbell Barton [Wed, 30 Jan 2013 13:44:24 +0000 (13:44 +0000)]
disable ubuntu unity workaround, causes issues with modifier keys held doun with multiple windows.

no time to fix now so disabling.

7 years agoCycles material preview: fix for generated/packed/movie files
Sergey Sharybin [Wed, 30 Jan 2013 13:42:12 +0000 (13:42 +0000)]
Cycles material preview: fix for generated/packed/movie files

Issue was caused by cycles trying to find builtin images in a main
database and in case of preview render images are not in database,
they're just referenced by shader node tree.

Now builtin images in cycles have got void* pointer to store data
needed to load builtin images.

In case ob blender session, this pointer will store pointer from
PointerRNA for image datablock and used later to construct Image
class based on this pointer.

This also saves database lookup for final render which is nice :)

Reviewed by Brecht.

7 years agoAdd active region for operator execution.
Campbell Barton [Wed, 30 Jan 2013 12:22:02 +0000 (12:22 +0000)]
Add active region for operator execution.

This means you can for example, uv unwrap in quad-view and change settings in the toolbar without defaulting back to the first quad-view region available.

This may be displayed to the user later, for now this is set on executing registrable operators.

7 years agofix [#33740] Incorecct UV mapping from camera view
Campbell Barton [Wed, 30 Jan 2013 11:06:02 +0000 (11:06 +0000)]
fix [#33740] Incorecct UV mapping from camera view

Bug was in fact that the options for this operator couldn't be accessed (unless you knew to press f6), now the redo panel sets the window area before polling.

Now other operators that use the window region will show settings too.

7 years agocmake config files BOOL type was ignored by cmake.
Campbell Barton [Wed, 30 Jan 2013 07:33:26 +0000 (07:33 +0000)]
cmake config files BOOL type was ignored by cmake.

7 years agoBGE: Some various changes to make moving the character physics type easier:
Mitchell Stokes [Wed, 30 Jan 2013 05:55:17 +0000 (05:55 +0000)]
BGE: Some various changes to make moving the character physics type easier:
  * Undoing the previous applyMovement() changes for characters. This was causing bugs for the Motion Actuator.
  * Creating a Character Motion type for the Motion Actuator with specific controls for characters. This includes moving, rotating and jumping.
  * Adding a KX_CharacterWrapper.walkDirection to set the character's direction and speed.

Note, this also resolves the following bugs:
[#33585] "Setting dLoc of motion actuator [0,0,0] via python won't stop object" reported by Manuel Bellersen (urfoex)
[#33503] "Character physics type won´t accept more than one motion anymore" reported by Mr Larodos

7 years agopatch [#33886] Combine Dissolve Menu with Delete Menu
Campbell Barton [Wed, 30 Jan 2013 05:19:27 +0000 (05:19 +0000)]
patch [#33886] Combine Dissolve Menu with Delete Menu

7 years agopatch [#34039] Fix Alt key glitch on Unity desktop
Campbell Barton [Wed, 30 Jan 2013 04:12:32 +0000 (04:12 +0000)]
patch [#34039] Fix Alt key glitch on Unity desktop
by Shinsuke Irie (irie) with own minor changes.

7 years agobridge tool could make bow-tie quads when given 2 isolated edges.
Campbell Barton [Wed, 30 Jan 2013 03:12:19 +0000 (03:12 +0000)]
bridge tool could make bow-tie quads when given 2 isolated edges.

7 years agofix [#33987] X-ray mode on bones nullifies weight paint mode
Campbell Barton [Wed, 30 Jan 2013 02:27:13 +0000 (02:27 +0000)]
fix [#33987] X-ray mode on bones nullifies weight paint mode

This effected vertex paint mode too.

7 years agoenable continuous grab for sliders, initially this was disabled because we didnt...
Campbell Barton [Tue, 29 Jan 2013 23:33:58 +0000 (23:33 +0000)]
enable continuous grab for sliders, initially this was disabled because we didnt support un-grabbing at the new slider location.

7 years agoupdate themes.
Campbell Barton [Tue, 29 Jan 2013 21:58:07 +0000 (21:58 +0000)]
update themes.

7 years agoFix #34016: add backwards compatibility for deprecated region.callback_add
Brecht Van Lommel [Tue, 29 Jan 2013 21:34:58 +0000 (21:34 +0000)]
Fix #34016: add backwards compatibility for deprecated region.callback_add
python function, this keep addons working. It's better to use the new function
but might as well avoid breaking compatibility here.

7 years agocorrection to r54188, also don't attempt to triangulate triangles.
Campbell Barton [Tue, 29 Jan 2013 20:49:40 +0000 (20:49 +0000)]
correction to r54188, also don't attempt to triangulate triangles.

7 years agoFix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender
Miika Hamalainen [Tue, 29 Jan 2013 19:27:05 +0000 (19:27 +0000)]
Fix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender

Also as minor change skip base_res update on domain step if adaptive domain isn't enabled.