6 years agoCleanup: use bool
Campbell Barton [Tue, 7 Oct 2014 18:40:11 +0000 (20:40 +0200)]
Cleanup: use bool

6 years agoSculpt: dyntopo, avoid redundant gset remove calls
Campbell Barton [Tue, 7 Oct 2014 17:32:48 +0000 (19:32 +0200)]
Sculpt: dyntopo, avoid redundant gset remove calls

6 years agoPaint: add debug print to time strokes
Campbell Barton [Tue, 7 Oct 2014 18:19:06 +0000 (20:19 +0200)]
Paint: add debug print to time strokes

6 years agoPartial fix of T42052: Clip editor does not support Continue zoom style
Sergey Sharybin [Tue, 7 Oct 2014 15:24:14 +0000 (17:24 +0200)]
Partial fix of T42052: Clip editor does not support Continue zoom style

6 years agoIcons: were relicensed to GPL2+ metadata was CC-NC
Campbell Barton [Tue, 7 Oct 2014 14:59:27 +0000 (16:59 +0200)]
Icons: were relicensed to GPL2+ metadata was CC-NC

6 years agoCall python3 explicitly from tgz util
Campbell Barton [Tue, 7 Oct 2014 14:48:31 +0000 (16:48 +0200)]
Call python3 explicitly from tgz util

6 years agoFix T42106: Box image mapping shows black triangles if they point to a corner and...
Sergey Sharybin [Tue, 7 Oct 2014 13:48:39 +0000 (15:48 +0200)]
Fix T42106: Box image mapping shows black triangles if they point to a corner and blend is 0

After discussion with cambo here we decided it's better to choose arbitrary side of the box
(in this case it's X-axis) and use image from it. That's better than doing a blackness.

P.S. This is literally a corner case anyway.

6 years agoAllow render engine to declare whether it's capable of the texture rendering or not
Sergey Sharybin [Tue, 7 Oct 2014 12:21:10 +0000 (14:21 +0200)]
Allow render engine to declare whether it's capable of the texture rendering or not

If render engine has bl_use_texture_preview set to truth blender wouldn't fallback to
the blender internal rendering for previews.

6 years agoCleanup: redundant casts
Campbell Barton [Tue, 7 Oct 2014 12:20:33 +0000 (14:20 +0200)]
Cleanup: redundant casts

6 years agoCleanup: use bool
Campbell Barton [Tue, 7 Oct 2014 11:58:35 +0000 (13:58 +0200)]
Cleanup: use bool

6 years agoFix T41957: Shadow color texture mapping was using wrong factor
Sergey Sharybin [Tue, 7 Oct 2014 10:30:23 +0000 (12:30 +0200)]
Fix T41957: Shadow color texture mapping was using wrong factor

6 years agoCleanup to previous commit, we can reuse set_rgb instead of new function
Antony Riakiotakis [Tue, 7 Oct 2014 09:12:00 +0000 (11:12 +0200)]
Cleanup to previous commit, we can reuse set_rgb instead of new function

6 years agoFix T42074, textured lamps influncing other layers
Antony Riakiotakis [Tue, 7 Oct 2014 09:06:38 +0000 (11:06 +0200)]
Fix T42074, textured lamps influncing other layers

The solution is to do the multiplication with the energy in the shader
after texture application.

We might be able to avoid setting dyncol completely, but this needs
better investigation. Some shader paths also look a bit redundant.

Also, texture mapping is not supported very well for light lamps, might
also need investigation.

6 years agoFix T4199: Knife holes in concave ngons failed
Campbell Barton [Tue, 7 Oct 2014 08:07:06 +0000 (10:07 +0200)]
Fix T4199: Knife holes in concave ngons failed

BM_face_point_inside_test assumed the face center was inside the face.

6 years agoCleanup: warnings
Campbell Barton [Mon, 6 Oct 2014 21:18:47 +0000 (23:18 +0200)]
Cleanup: warnings

6 years agoCleanup: style
Campbell Barton [Mon, 6 Oct 2014 19:49:38 +0000 (21:49 +0200)]
Cleanup: style

6 years agoRNA: id enum was incomplete
Campbell Barton [Mon, 6 Oct 2014 19:39:03 +0000 (21:39 +0200)]
RNA: id enum was incomplete

6 years agoFix T42088: Creating new keybinds can cause duplicates when saving key config profile
Bastien Montagne [Mon, 6 Oct 2014 20:08:37 +0000 (22:08 +0200)]
Fix T42088: Creating new keybinds can cause duplicates when saving key config profile

When patching a keymap with a 'UserPref' diff one, do not add keymap items from diff
if they already exists in patched keymap.

6 years agoOne more bplayer infamous stub fix!
Bastien Montagne [Mon, 6 Oct 2014 18:28:21 +0000 (20:28 +0200)]
One more bplayer infamous stub fix!

6 years agoTexture painting:
Antony Riakiotakis [Mon, 6 Oct 2014 13:12:06 +0000 (15:12 +0200)]
Texture painting:

Do not generate materials/images/UVs if they are missing.

Now we spawn a panel ("Missing Data") with operators to generate the missing data and
pop a warning if user tries to paint without them.

The reason we have reverted this is that it is too easy to end up with more textures
than we wanted. It was impossible to enter texture paint without having textures added,
and code makes too many assumptions about what user may want.

Discussed during Sunday's meeting.

This might be a candidate for 2.72a but I'm not sure how other artists will take this
(and how refined and crash-free it is), better make a few iterations first.

And for interested parties...test please, don't wait until after a release to poke with such issues.

Also, add slot operator now adds a new unconnected image node in cycles. Only
used in the "Missing Data" panel. This should be a separate commit but I am squashing it into the same commit because
it relies too much on changes done here and can be reverted easily if complainstorm occurs again.

6 years agoCleanup: avoid alloc for each knife-project vector
Campbell Barton [Mon, 6 Oct 2014 16:23:21 +0000 (18:23 +0200)]
Cleanup: avoid alloc for each knife-project vector

6 years agoCompositor; Explicitly specify inline function
Sergey Sharybin [Mon, 6 Oct 2014 16:15:35 +0000 (22:15 +0600)]
Compositor; Explicitly specify inline function

6 years agoFix Cycles crashing with previous own commit.
Bastien Montagne [Mon, 6 Oct 2014 16:00:56 +0000 (18:00 +0200)]
Fix Cycles crashing with previous own commit.

Behavior with NULL context was wrong.

6 years agoFix T40350: Some texture prop did not have visual feedback they were driven.
Bastien Montagne [Mon, 6 Oct 2014 15:03:19 +0000 (17:03 +0200)]
Fix T40350: Some texture prop did not have visual feedback they were driven.

This is only a (hacky) partial fix, actually, since `RNA_property_animated()` will still
not work in those cases... Better that than nothing, though.

Thanks to Campbell for review.

6 years agoFix T4201: AVI Broken when width not multiple of 4
Campbell Barton [Mon, 6 Oct 2014 14:35:11 +0000 (16:35 +0200)]
Fix T4201: AVI Broken when width not multiple of 4

6 years agoFix in-between mouse events getting assign to keys
Campbell Barton [Mon, 6 Oct 2014 13:52:49 +0000 (15:52 +0200)]
Fix in-between mouse events getting assign to keys

6 years agoCompositor: implement OpenCL backend for gaussian blur
Sergey Sharybin [Mon, 6 Oct 2014 12:59:26 +0000 (14:59 +0200)]
Compositor: implement OpenCL backend for gaussian blur

Pretty much straightforward change which gives around 30%
speedup on my laptop and around 2x speedup on desktop in
the BI (which uses gts580). Tested with huge blurs (like
10% of blur) which was rather common during Caminandes.

For now OpenCL is only limited for blur size more than
100 pixels.

This is a bit experimental still, feedback is welcome.

Reviewers: jbakker, lukastoenne

Subscribers: ton

Differential Revision:

6 years agoCorrection for wrong ifdef in creator
Sergey Sharybin [Mon, 6 Oct 2014 12:54:35 +0000 (14:54 +0200)]
Correction for wrong ifdef in creator

6 years agoFix T42075: DnD Material not updating render view
Campbell Barton [Mon, 6 Oct 2014 12:04:55 +0000 (14:04 +0200)]
Fix T42075: DnD Material not updating render view

6 years agoCleanup: remove old preview code
Campbell Barton [Mon, 6 Oct 2014 10:36:50 +0000 (12:36 +0200)]
Cleanup: remove old preview code

6 years agoCycles: Fix for camera-in-volume detection
Sergey Sharybin [Mon, 6 Oct 2014 10:31:31 +0000 (12:31 +0200)]
Cycles: Fix for camera-in-volume detection

Ray actually should have infinite length, so we can detect camera in a volume
which is bigger that the far clipping of the camera.

This might also give some speedup (wouldn't expect much tho) because we don't
need to re-calculate ray direction and length after every bounce now.

6 years agoCycles: Optimize of volume stack update when sampling SSS
Sergey Sharybin [Mon, 6 Oct 2014 10:23:16 +0000 (12:23 +0200)]
Cycles: Optimize of volume stack update when sampling SSS

basically we skip all non-volume objects now in the volume stack function.
Depending on the show it might give some percent of speedup.

Most of the speedup would be gained in the scenes when having SSS object
intersecting the volume and taking a reasonable amount of frame space.

6 years agoCycles: Fix for viewport rendering with debug enabled
Sergey Sharybin [Mon, 6 Oct 2014 09:52:22 +0000 (11:52 +0200)]
Cycles: Fix for viewport rendering with debug enabled

6 years agoCycles: Workaround dead-slow expf() on 64bit linux
Sergey Sharybin [Mon, 6 Oct 2014 07:43:23 +0000 (13:43 +0600)]
Cycles: Workaround dead-slow expf() on 64bit linux

Single precision exponent on 64bit linux tends to be order of magnitude slower
than double precision version even with single<->double precision conversion.

Some feedback in the mailing lists also suggests that logf() is also slow, but
this i didn't confirm here in the studio yet.

Depending on the shader setup it gives ~3% with the secret agent shot and up to
around 15% with the bmw scene here.

6 years agoCycles: Move system headers include to the top of the files
Sergey Sharybin [Mon, 6 Oct 2014 07:39:19 +0000 (13:39 +0600)]
Cycles: Move system headers include to the top of the files

This is a good practice to do anyway, plus it'll help with the upcoming change.

6 years agoCleanup: remove paranoid NULL checks
Campbell Barton [Mon, 6 Oct 2014 10:23:47 +0000 (12:23 +0200)]
Cleanup: remove paranoid NULL checks

6 years agoDyntopo: minor speedup collapsing edges
Campbell Barton [Mon, 6 Oct 2014 10:16:06 +0000 (12:16 +0200)]
Dyntopo: minor speedup collapsing edges

6 years agoFix T42093: segfault when trying to free unallocated depths zbuffer (border-zoom...
Bastien Montagne [Mon, 6 Oct 2014 08:19:47 +0000 (10:19 +0200)]
Fix T42093: segfault when trying to free unallocated depths zbuffer (border-zoom in 3DView).

Thanks to jensverwiebe (jens verwiebe) for investigations too!

6 years agoQuiet warning on 32bit system
Campbell Barton [Mon, 6 Oct 2014 07:50:20 +0000 (09:50 +0200)]
Quiet warning on 32bit system

6 years agoFix T41983: Array Modifier "Merge" bug?
Bastien Montagne [Sun, 5 Oct 2014 21:10:44 +0000 (23:10 +0200)]
Fix T41983: Array Modifier "Merge" bug?

We messed up previous fix, in 'simplified' translated merge case... :(

6 years agoCycles: Center Tile order had a slight offset to the left.
Greg Zaal [Sun, 5 Oct 2014 16:35:49 +0000 (18:35 +0200)]
Cycles: Center Tile order had a slight offset to the left.

Signed-off-by: Thomas Dinges
6 years agoFix T42081, OpenCL supports float3 since the 1.1 specification, not sure why we neede...
Thomas Dinges [Sun, 5 Oct 2014 16:10:42 +0000 (18:10 +0200)]
Fix T42081, OpenCL supports float3 since the 1.1 specification, not sure why we needed this.

6 years agoCycles: Forgot to set WITH_CYCLES_DEBUG for OSL kernel
Sergey Sharybin [Sun, 5 Oct 2014 15:43:27 +0000 (17:43 +0200)]
Cycles: Forgot to set WITH_CYCLES_DEBUG for OSL kernel

6 years agoCycles: __KERNEL_DEBUG__ wasn't set for compile-time kernels
Sergey Sharybin [Sun, 5 Oct 2014 15:42:04 +0000 (21:42 +0600)]
Cycles: __KERNEL_DEBUG__ wasn't set for compile-time kernels

6 years agoFix tgz script (included all files in submodules)
Campbell Barton [Sun, 5 Oct 2014 15:18:20 +0000 (17:18 +0200)]
Fix tgz script (included all files in submodules)

6 years agoCleanup: sculpt float -> bool
Campbell Barton [Sun, 5 Oct 2014 14:06:19 +0000 (16:06 +0200)]
Cleanup: sculpt float -> bool

6 years agoOSX/Ghost: little code cleanup
Jens Verwiebe [Sun, 5 Oct 2014 10:45:06 +0000 (12:45 +0200)]
OSX/Ghost: little code cleanup

6 years agoCycles: Make OpenCL folks happy to use __KERNEL_DEBUG__
Sergey Sharybin [Sun, 5 Oct 2014 10:00:23 +0000 (16:00 +0600)]
Cycles: Make OpenCL folks happy to use __KERNEL_DEBUG__

Quite straightforward change, the only annoying thing is that we can't use
indentation for include directive just because of the way headers inlineing
works for OpenCL.

Might do smarter job in path_source_replace_includes() but don't want to
spend time on this yet.

6 years agoCycles: Fix for debug kernel not working with CUDA
Sergey Sharybin [Sun, 5 Oct 2014 09:29:26 +0000 (15:29 +0600)]
Cycles: Fix for debug kernel not working with CUDA

6 years agoBLI_buffer: simplify buffer resize
Campbell Barton [Sun, 5 Oct 2014 08:31:47 +0000 (10:31 +0200)]
BLI_buffer: simplify buffer resize

6 years agoCycles / CUDA: Workaround to make sm_52 (Maxwell) cards work.
Thomas Dinges [Sun, 5 Oct 2014 02:13:40 +0000 (04:13 +0200)]
Cycles / CUDA: Workaround to make sm_52 (Maxwell) cards work.

* sm_52 can run a sm_50 kernel, so tell runtime detection to use that until we build a dedicated sm_52 kernel.

6 years agoCycles / CUDA: Change inline rules for BVH intersection functions.
Thomas Dinges [Sun, 5 Oct 2014 01:53:51 +0000 (03:53 +0200)]
Cycles / CUDA: Change inline rules for BVH intersection functions.

* On sm_30 and above there is no change (was not inlined already before), this just fixes a speed regression from yesterday. 6359c36ba407
* On sm_2x (tested with sm_21), I get a nice 8% speedup in the bmw scene with this. As a bonus, cubin compilation time and memory usage is significantly reduced. Regular cubin size went from 2.5MB to 2.0MB, Experimental one from 3.8MB to 2.5MB.

6 years agoPrevious scons fix is just wrong, there is a reason why lines were tried to be indented
Sergey Sharybin [Sat, 4 Oct 2014 14:31:47 +0000 (16:31 +0200)]
Previous scons fix is just wrong, there is a reason why lines were tried to be indented

6 years agoCycles: Fix wrong ifdef check around shadows record all
Sergey Sharybin [Fri, 3 Oct 2014 17:24:24 +0000 (19:24 +0200)]
Cycles: Fix wrong ifdef check around shadows record all

6 years agoFix bad RNA enum from the previous commit
Sergey Sharybin [Sat, 4 Oct 2014 14:20:14 +0000 (20:20 +0600)]
Fix bad RNA enum from the previous commit

6 years agoAnother scons fix, wrong indentation.
Thomas Dinges [Sat, 4 Oct 2014 14:07:39 +0000 (16:07 +0200)]
Another scons fix, wrong indentation.

6 years agoTypo fix for new WITH_BF_CYCLES_DEBUG option.
Thomas Dinges [Sat, 4 Oct 2014 14:01:09 +0000 (16:01 +0200)]
Typo fix for new WITH_BF_CYCLES_DEBUG option.

6 years agoFix off by one error drawing passepartout
Campbell Barton [Sat, 4 Oct 2014 13:40:41 +0000 (15:40 +0200)]
Fix off by one error drawing passepartout

6 years agoCycles: Add support for debug passes
Sergey Sharybin [Sat, 4 Oct 2014 13:00:26 +0000 (19:00 +0600)]
Cycles: Add support for debug passes

Currently only summed number of traversal steps and intersections used by the
camera ray intersection pass is implemented, but in the future we will support
more debug passes which would help checking what things makes the scene slow.
Example of such extra passes could be number of bounces, time spent on the
shader tree evaluation and so.

Implementation from the Cycles side is pretty much straightforward, could only
mention here that it's a build-time option disabled by default.

From the blender side it's implemented as a PASS_DEBUG with several subtypes
possible. This way we don't need to create an extra DNA pass type for each of
the debug passes, saving us a bits.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agoFix T42065: Shading issue using Array modifier
Bastien Montagne [Sat, 4 Oct 2014 10:52:06 +0000 (12:52 +0200)]
Fix T42065: Shading issue using Array modifier

Gah... Dirty normal flag should be set on *real* final dm, after merge is done. :/

6 years ago"Delete texture paint slot" told the user that it would add a texture paint slot.
Thomas Beck [Sat, 4 Oct 2014 10:21:11 +0000 (12:21 +0200)]
"Delete texture paint slot" told the user that it would add a texture paint slot.

6 years agoOSX: simplyfy last commit for fs_menu system_bookmarks
Jens Verwiebe [Sat, 4 Oct 2014 08:47:53 +0000 (10:47 +0200)]
OSX: simplyfy last commit for fs_menu system_bookmarks

6 years agoCycles: Remove a workaround for Titan GPUs, not needed anymore with the latest CUDA...
Thomas Dinges [Fri, 3 Oct 2014 23:28:46 +0000 (01:28 +0200)]
Cycles: Remove a workaround for Titan GPUs, not needed anymore with the latest CUDA compiler.

6 years agoOSX: Change the FS_CATEGORY_SYSTEM_BOOKMARKS aka "Favorites", so that the orderwise...
Jens Verwiebe [Fri, 3 Oct 2014 19:01:48 +0000 (21:01 +0200)]
OSX: Change the FS_CATEGORY_SYSTEM_BOOKMARKS aka "Favorites", so that the orderwise in sync with finder

6 years agoCycles, some tweaks to scene_intersect_shadow_all()
Thomas Dinges [Fri, 3 Oct 2014 18:41:38 +0000 (20:41 +0200)]
Cycles, some tweaks to scene_intersect_shadow_all()

* Function returns a bool, not an uint.
* Remove GPU ifdefs, this is CPU only due to malloc / qsort.

6 years agoFix for tgz script (whitespace broke it)
Campbell Barton [Fri, 3 Oct 2014 17:41:46 +0000 (19:41 +0200)]
Fix for tgz script (whitespace broke it)

6 years missing `--skip-openexr` in arg parser's parameters.
Bastien Montagne [Fri, 3 Oct 2014 16:34:09 +0000 (18:34 +0200)] missing `--skip-openexr` in arg parser's parameters.

Reported through mail by Jefferson Rausseo, thanks!

6 years agoCleanup: Remove some unused / unreferenced functions for perdiodic perlin noise.
Thomas Dinges [Fri, 3 Oct 2014 16:00:45 +0000 (18:00 +0200)]
Cleanup: Remove some unused / unreferenced functions for perdiodic perlin noise.

6 years agoCycles / OSL: Make the signed/unsigned Perlin parameter more self explaining.
Thomas Dinges [Fri, 3 Oct 2014 15:47:37 +0000 (17:47 +0200)]
Cycles / OSL: Make the signed/unsigned Perlin parameter more self explaining.

6 years agoCycles: Fix OpenCL compile after new Volume BVH introduction and add some comments.
Thomas Dinges [Fri, 3 Oct 2014 15:23:45 +0000 (17:23 +0200)]
Cycles: Fix OpenCL compile after new Volume BVH introduction and add some comments.

6 years agoCycles: Missing volume traversal header in cmake for GPU compilation.
Thomas Dinges [Fri, 3 Oct 2014 15:11:00 +0000 (17:11 +0200)]
Cycles: Missing volume traversal header in cmake for GPU compilation.

6 years agoCycles: Remove Westin closure.
Thomas Dinges [Fri, 3 Oct 2014 14:03:49 +0000 (16:03 +0200)]
Cycles: Remove Westin closure.

Was hooked up last year for testing purposes, as we already had some code for it, but the closure itself is not really good nor really useful, so let's remove it.

6 years ago2.73 Release Cycle: Alpha.
Thomas Dinges [Fri, 3 Oct 2014 13:43:30 +0000 (15:43 +0200)]
2.73 Release Cycle: Alpha.

6 years agoCleanup: Spelling.
Thomas Dinges [Fri, 3 Oct 2014 13:28:52 +0000 (15:28 +0200)]
Cleanup: Spelling.

6 years agoFix T41983: Array regression with center-verts
Campbell Barton [Fri, 3 Oct 2014 12:33:50 +0000 (14:33 +0200)]
Fix T41983: Array regression with center-verts

Array with rotation and a central pivot would fail.

Thanks to Bastien Montagne for the initial fix.

6 years agoFix for 2-sided faces in array modifier
Campbell Barton [Fri, 3 Oct 2014 11:59:06 +0000 (13:59 +0200)]
Fix for 2-sided faces in array modifier

6 years agoCycles: Use more accurate implementation of erf() and erfinv()
Sergey Sharybin [Fri, 3 Oct 2014 12:27:08 +0000 (18:27 +0600)]
Cycles: Use more accurate implementation of erf() and erfinv()

This functions are  orders of magnitude more accurate than the old ones,
and they're around the same complexity to compute.

6 years agoSculpting:
Antony Riakiotakis [Fri, 3 Oct 2014 11:14:10 +0000 (13:14 +0200)]

Grab and Snake hook brushes now support strength. To keep compatibility
with older brushes, this commit also sets strength to 1.0 for those

6 years agoCycles: Decouple object flags update to a separate update step
Sergey Sharybin [Fri, 3 Oct 2014 10:11:19 +0000 (12:11 +0200)]
Cycles: Decouple object flags update to a separate update step

This way there's much less cross-references between objects and meshes
device update functions.

The only thing remained s the object bounds calculation which is needed
by bvh update. This could also be decoupled, but it's not that crucial
yet because its's how it used to be for ages now.

6 years agoBetter fix for T42054 - modifiers have a callback to say whether they need normals...
Bastien Montagne [Fri, 3 Oct 2014 10:12:10 +0000 (12:12 +0200)]
Better fix for T42054 - modifiers have a callback to say whether they need normals or no.

Thanks Campbell for the headup!

6 years agoFix T42054: Problem when using Cast modifier with Wireframe modifier.
Bastien Montagne [Fri, 3 Oct 2014 09:58:29 +0000 (11:58 +0200)]
Fix T42054: Problem when using Cast modifier with Wireframe modifier.

Wireframe modifier needs valid normals, let's ensure that!

6 years agoFix T41920: Changing Use Alpha settings doesn't refresh viewport properly
Sergey Sharybin [Fri, 3 Oct 2014 09:27:05 +0000 (11:27 +0200)]
Fix T41920: Changing Use Alpha settings doesn't refresh viewport properly

6 years agoCycles: Implement preliminary test for volume stack update from SSS
Sergey Sharybin [Fri, 3 Oct 2014 08:52:04 +0000 (10:52 +0200)]
Cycles: Implement preliminary test for volume stack update from SSS

This adds an AABB collision check for objects with volumes and if there's a
collision detected then the object will have SD_OBJECT_INTERSECTS_VOLUME flag.

This solves a speed regression introduced by the fix for T39823 by skipping
volume stack update in cases no volumes intersects the current SSS object.

6 years agoCycles: Fix for non-initialized variable
Sergey Sharybin [Fri, 3 Oct 2014 08:44:24 +0000 (10:44 +0200)]
Cycles: Fix for non-initialized variable

6 years agoCycles: Make camera-in-volume an official feature
Sergey Sharybin [Thu, 2 Oct 2014 21:46:31 +0000 (03:46 +0600)]
Cycles: Make camera-in-volume an official feature

This means it's no longer needed to enable experimental feature set in order to
have proper camera in volume support. And this also means if there's something
wrong going on, or if there's speed regression for cases when camera is obviously
not in the volume -- this issues are to be reported and handled in the regular

Happy blending!

6 years agoCycles: Speedup of kernel side camera-in-volume detection
Sergey Sharybin [Thu, 2 Oct 2014 21:42:16 +0000 (03:42 +0600)]
Cycles: Speedup of kernel side camera-in-volume detection

The idea is to only count intersections with objects which has volumetric shader
and ignore all other objects.

This is probably as fast as we can go without involving some forth level magic.

6 years agoCleanup: spelling, ws
Campbell Barton [Fri, 3 Oct 2014 06:09:00 +0000 (08:09 +0200)]
Cleanup: spelling, ws

6 years agoComments: note on bmesh_region_match
Campbell Barton [Fri, 3 Oct 2014 06:10:02 +0000 (08:10 +0200)]
Comments: note on bmesh_region_match

also correct buffer type

6 years agoUpdate link to the Support an Animation Movie link
Sergey Sharybin [Thu, 2 Oct 2014 18:47:24 +0000 (20:47 +0200)]
Update link to the Support an Animation Movie link

This is to be in the final release.

6 years agoCycles: optimization of panoramic camera in volume
Sergey Sharybin [Thu, 2 Oct 2014 18:37:05 +0000 (20:37 +0200)]
Cycles: optimization of panoramic camera in volume

Now we do much better preliminary check for panoramic camera is inside the
volume object boundings.

Also we're now cacheing the has_volume in the mesh, which makes it unneeded
iterations for each object's shaders.

Should be no functional changes, just faster sync and panoramic-in-volume

6 years agoCode cleanup:
Antony Riakiotakis [Thu, 2 Oct 2014 18:18:42 +0000 (20:18 +0200)]
Code cleanup:

calc_manipulator_stats is only used in manipulator (and soon will only
use the context for such queries)

6 years agoFix for wrong bit mask magic happening in gpu_update_lamps_shadows()
Sergey Sharybin [Thu, 2 Oct 2014 16:19:54 +0000 (18:19 +0200)]
Fix for wrong bit mask magic happening in gpu_update_lamps_shadows()

6 years agoFix black matcap when using particle system
Sergey Sharybin [Thu, 2 Oct 2014 16:17:33 +0000 (18:17 +0200)]
Fix black matcap when using particle system

Using matcap with a displist is not really good thing to try
and it's actually a regression since we've enabled matcaps
for all objects instead of just an active one.

6 years agoLibmv: Fix wrong variable use in scons
Sergey Sharybin [Thu, 2 Oct 2014 14:51:58 +0000 (16:51 +0200)]
Libmv: Fix wrong variable use in scons

6 years agoFix error in last commit
Campbell Barton [Thu, 2 Oct 2014 15:10:24 +0000 (17:10 +0200)]
Fix error in last commit

6 years agoFix T42049: Crash exiting /w GL1.1
Campbell Barton [Thu, 2 Oct 2014 14:21:26 +0000 (16:21 +0200)]
Fix T42049: Crash exiting /w GL1.1

6 years agoFix T42030: Grabbing the whole mask interfere with grabbing individual curve
Sergey Sharybin [Thu, 2 Oct 2014 13:28:07 +0000 (19:28 +0600)]
Fix T42030: Grabbing the whole mask interfere with grabbing individual curve

This fix is for the final 2.72 release.

6 years agoFreestyle: For until c++11 is accepted only static members could b initialized in...
Sergey Sharybin [Thu, 2 Oct 2014 13:24:16 +0000 (19:24 +0600)]
Freestyle: For until c++11 is accepted only static members could b initialized in-lined

6 years agoFix T42008: Dragging and packing issue about new blank image
Sergey Sharybin [Thu, 2 Oct 2014 13:04:38 +0000 (19:04 +0600)]
Fix T42008: Dragging and packing issue about new blank image

The issue was caused by the fact that we never used to store the
generated image color in DNA, so image reload will loose this

Now we store the color in DNA, making ti so re-loading the image
will preserve it's generated color.

It is now also possible to change generated image color using the
color swatch in image properties after the image was created.

6 years agoFix T42033 UVs shown while rendering in texture paint mode.
Antony Riakiotakis [Thu, 2 Oct 2014 12:34:53 +0000 (14:34 +0200)]
Fix T42033 UVs shown while rendering in texture paint mode.

This should be included in final release build.