blender.git
3 years agoBLI_ghash: Fix initial over-allocation of mempool chunks.
Bastien Montagne [Wed, 1 Jun 2016 10:58:59 +0000 (12:58 +0200)]
BLI_ghash: Fix initial over-allocation of mempool chunks.

Code intended to create only one pool by default here, but code in `mempool_maxchunks()` would make it two.

3 years agoFix wrong vertex colors in edit mode
Sergey Sharybin [Wed, 1 Jun 2016 09:52:31 +0000 (11:52 +0200)]
Fix wrong vertex colors in edit mode

3 years agoBI: fix counting of tangents, that was reset during recursion of init_render_nodetree
Alexander Romanov [Wed, 1 Jun 2016 09:28:48 +0000 (12:28 +0300)]
BI: fix counting of tangents, that was reset during recursion of init_render_nodetree

3 years agoGLSL: Attempt to fix errors in setting UV attributes
Sergey Sharybin [Wed, 1 Jun 2016 08:26:18 +0000 (10:26 +0200)]
GLSL: Attempt to fix errors in setting UV attributes

3 years agoDepsgraph: Fix missing updates when modifying armature
Sergey Sharybin [Wed, 1 Jun 2016 08:10:39 +0000 (10:10 +0200)]
Depsgraph: Fix missing updates when modifying armature

3 years agoFix/Workaround T48560: Color picker V fail w/ user defined RNA
Campbell Barton [Wed, 1 Jun 2016 06:07:11 +0000 (16:07 +1000)]
Fix/Workaround T48560: Color picker V fail w/ user defined RNA

Set the maximum soft-max to 1.0 when its left at FLT_MAX.
Since this causes problems using the slider.

3 years agoIncrease range of Font object textboxs
Dalai Felinto [Tue, 31 May 2016 22:06:13 +0000 (19:06 -0300)]
Increase range of Font object textboxs

The current values were arbitrary. I'm keeping them as ui_range, but
internally there is no reason we can't use larger values.

3 years agoBLI_mempool: Use an 'odd' FREEWORD for big/little endian
Campbell Barton [Tue, 31 May 2016 16:52:05 +0000 (02:52 +1000)]
BLI_mempool: Use an 'odd' FREEWORD for big/little endian

This also changes freeword to an intptr_t to ensure
not only the first 4 bits of a pointer are tested on 64bit systems.

3 years agoFix T46207: Slow OpenCL GPU bake and blown out baking Cycles render
Sergey Sharybin [Tue, 31 May 2016 15:47:54 +0000 (17:47 +0200)]
Fix T46207: Slow OpenCL GPU bake and blown out baking Cycles render

3 years agoSmall API typo found while reading the API
Dalai Felinto [Tue, 31 May 2016 15:39:58 +0000 (12:39 -0300)]
Small API typo found while reading the API

3 years agoCleanup: unused defines
Campbell Barton [Tue, 31 May 2016 14:26:14 +0000 (00:26 +1000)]
Cleanup: unused defines

3 years agoCleanup: parenthesize defines
Campbell Barton [Tue, 31 May 2016 14:19:01 +0000 (00:19 +1000)]
Cleanup: parenthesize defines

3 years agoFix T48554: Absolute grid snap fails w/ cursor pivot
Campbell Barton [Tue, 31 May 2016 13:56:59 +0000 (23:56 +1000)]
Fix T48554: Absolute grid snap fails w/ cursor pivot

Use center of selection when using absolute grid snapping and cursor pivot.

3 years agoCycles: Fixes for recent refactor
Sergey Sharybin [Tue, 31 May 2016 13:32:31 +0000 (15:32 +0200)]
Cycles: Fixes for recent refactor

- add_vertex() can be called from split_vertex() which does not guarantee
  to have properly pre-allocate arrays.

- Need to check whether Cycles is compiled with OSL in XML reader.

3 years agoBuildbot: Attempt to fix buildbot after recent change
Sergey Sharybin [Tue, 31 May 2016 13:27:07 +0000 (15:27 +0200)]
Buildbot: Attempt to fix buildbot after recent change

3 years agoBuildbot: Use proper list management function
Sergey Sharybin [Tue, 31 May 2016 13:20:14 +0000 (15:20 +0200)]
Buildbot: Use proper list management function

Spotted by Campbell, thanks!

3 years agoBuildbot: Pass proper generator for MSVC 2015 builder
Sergey Sharybin [Tue, 31 May 2016 12:42:18 +0000 (14:42 +0200)]
Buildbot: Pass proper generator for MSVC 2015 builder

3 years agoProperly handle vertex color color space for Cycles GLSL
Sergey Sharybin [Tue, 31 May 2016 12:39:49 +0000 (14:39 +0200)]
Properly handle vertex color color space for Cycles GLSL

A bit tricky, need to pass additional information about what the attribute
is and how to deal with it.

BI path stays unchanged, just to make things simplier for now.

Fixes T48555: Cycles GLSL- Incorrect Vertex Color results from Attribute node

3 years agoCMake/ Visual Studio 14 2015, Use one library name for openal for both 2013 and 2015
Martijn Berger [Tue, 31 May 2016 12:16:29 +0000 (14:16 +0200)]
CMake/ Visual Studio 14 2015, Use one library name for openal for both 2013 and 2015

3 years agoCycles GLSL: Make it work with software opengl mode
Sergey Sharybin [Tue, 31 May 2016 10:30:56 +0000 (12:30 +0200)]
Cycles GLSL: Make it work with software opengl mode

3 years agoCycles: Add human readable sizes to debug output
Mai Lavelle [Sun, 29 May 2016 22:02:05 +0000 (18:02 -0400)]
Cycles: Add human readable sizes to debug output

Some of these values can get quite large and are hard to read, adding this
makes it easy to read them at a glance.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D2039

3 years agoFix T48556: Missing transparent shadows on AMD OpenCL
Sergey Sharybin [Tue, 31 May 2016 09:48:07 +0000 (11:48 +0200)]
Fix T48556: Missing transparent shadows on AMD OpenCL

We had transparent shadows disabled for some time because they were causing
drivers to crash. Can't reproduce that issue anymore with current drivers,
so will enable them and see how it goes.

3 years agoFix T48553: Cycles GLSL Box projection produces strong artifacts
Sergey Sharybin [Tue, 31 May 2016 07:49:27 +0000 (09:49 +0200)]
Fix T48553: Cycles GLSL Box projection produces strong artifacts

3 years agoFix T48552: Ctrl-D to add drivers shows disabled menu items
Campbell Barton [Tue, 31 May 2016 06:30:44 +0000 (16:30 +1000)]
Fix T48552: Ctrl-D to add drivers shows disabled menu items

3 years agoTheme: 2.4x disabled menu text wasn't greyed out
Campbell Barton [Tue, 31 May 2016 04:54:21 +0000 (14:54 +1000)]
Theme: 2.4x disabled menu text wasn't greyed out

3 years agoFix T48547: Shrinkwrap fails w/ auxiliary target
Campbell Barton [Tue, 31 May 2016 04:35:35 +0000 (14:35 +1000)]
Fix T48547: Shrinkwrap fails w/ auxiliary target

Error in 0b5a0d84

3 years agoFix broken Cycles curve motion radius after recent refactor, and fix warnings.
Brecht Van Lommel [Mon, 30 May 2016 20:44:17 +0000 (22:44 +0200)]
Fix broken Cycles curve motion radius after recent refactor, and fix warnings.

3 years agoAdd 'multi small' testcase to performance Ghash tests.
Bastien Montagne [Thu, 26 May 2016 19:44:57 +0000 (21:44 +0200)]
Add 'multi small' testcase to performance Ghash tests.

This new test simply inserts and lookup a lot of time on very small ghashes
(most are < 17 items).

3 years agoShrinkwrap: OMP->BLI_task.
Bastien Montagne [Mon, 30 May 2016 15:30:06 +0000 (17:30 +0200)]
Shrinkwrap: OMP->BLI_task.

Gives little to no speedup (a few percents at best).

3 years agoDepsgraph: Small optimization to update flushing
Sergey Sharybin [Mon, 30 May 2016 14:53:04 +0000 (16:53 +0200)]
Depsgraph: Small optimization to update flushing

Gives about 5% speedup in scene with lots of nodes (army_of_clones.blend)

3 years agoFix T48527: Maya keymap fails w/ knife snap
Campbell Barton [Mon, 30 May 2016 12:39:40 +0000 (22:39 +1000)]
Fix T48527: Maya keymap fails w/ knife snap

3 years agoDepsgraph: Fix compilation with new depsgraph disabled
Sergey Sharybin [Mon, 30 May 2016 12:44:56 +0000 (14:44 +0200)]
Depsgraph: Fix compilation with new depsgraph disabled

3 years agoCMake: Workaround to get Libmv compiled with latest Gcc
Sergey Sharybin [Mon, 30 May 2016 12:37:07 +0000 (14:37 +0200)]
CMake: Workaround to get Libmv compiled with latest Gcc

3 years agoFix: Add a hard upper limit for fontsize of Text Strip's text
Joshua Leung [Mon, 30 May 2016 11:45:19 +0000 (23:45 +1200)]
Fix: Add a hard upper limit for fontsize of Text Strip's text

Although there is a "UI limit", it's necessary to have the hard limit on the
property too. I noticed this bug first hand just now, when, after accidentally
setting the size to 8188 (due to a combination of typos and sluggish UI refresh)
my machine locked up completely when trying to jump to that frame. It got so bad
that I had to do a hard reset to fix it - so, it's possible that even 1000 or 2000
as used now are actually way too large still.

3 years agoGLSL: Fix voronoi texture giving different results form rendered
Sergey Sharybin [Mon, 30 May 2016 11:07:11 +0000 (13:07 +0200)]
GLSL: Fix voronoi texture giving different results form rendered

3 years agoDepsgraph: Fix wrong layers flush form children to parent
Sergey Sharybin [Mon, 30 May 2016 10:32:38 +0000 (12:32 +0200)]
Depsgraph: Fix wrong layers flush form children to parent

It was possible to have issues in cases when several child dependencies
goes to IDs with different layers. In this case order of flushing was not
really well defined, which could lead to cases when indirect dependency
via invisible object wouldn't work.

Need some sort of barrier to prevent scheduling of parent nodes for until
all children are done, but that's becoming quite nasty thing to implement.

Added a temp field to component for now. maybe it's not so crazy actually
and we might use it for evaluation as well, so we wouldn't flush updates
to components which does not affect visible stuff.

3 years agoSupport all Cycles image texture projections in the GLSL viewport
Ralf Hölzemer [Mon, 30 May 2016 08:23:43 +0000 (10:23 +0200)]
Support all Cycles image texture projections in the GLSL viewport

This patch enables Tube, Sphere and Box projections in GLSL for the image texture node.

Reviewers: sergey

Projects: #nodes, #opengl_gfx

Differential Revision: https://developer.blender.org/D2036

3 years agoGLSL: Fix magic colors being off
Sergey Sharybin [Mon, 30 May 2016 08:21:55 +0000 (10:21 +0200)]
GLSL: Fix magic colors being off

3 years agoGLSL: Brick texture uses bit operations, which seems to be a failure on some Intel...
Sergey Sharybin [Mon, 30 May 2016 08:17:55 +0000 (10:17 +0200)]
GLSL: Brick texture uses bit operations, which seems to be a failure on some Intel cards

3 years agoChange the hash-table to be 3x total items to hash
Campbell Barton [Mon, 30 May 2016 08:00:03 +0000 (18:00 +1000)]
Change the hash-table to be 3x total items to hash

3 years agoRemove accidental static var
Campbell Barton [Mon, 30 May 2016 07:27:06 +0000 (17:27 +1000)]
Remove accidental static var

3 years agoEditmesh undo memory optimization
Campbell Barton [Mon, 30 May 2016 05:31:31 +0000 (15:31 +1000)]
Editmesh undo memory optimization

Previously a whole mesh was stored between undo steps,
This commit uses BLI_array_store to de-duplicate memory use between undo steps.

Memory saving depends entirely on kinds of edits performed,
in own tests 5x-15x less memory use is common.

Compacting the memory does give some overhead however its done in a background thread
so its not blocking in most cases.

New behavior and threading can be ifdef'd out to check for regressions.

See D2026 for details.

3 years agoBLI_array_store tests
Campbell Barton [Mon, 30 May 2016 05:27:10 +0000 (15:27 +1000)]
BLI_array_store tests

Ensure the data is valid once expanded,
and that de-duplication is working as expected.

3 years agoAdd BLI_array_store copy-on-write API
Campbell Barton [Mon, 30 May 2016 05:25:36 +0000 (15:25 +1000)]
Add BLI_array_store copy-on-write API

This supported in-memory de-duplication,
useful to avoid in-efficient memory use when storing multiple, similar arrays.

3 years agoCode refactor: store ShaderNode enums as enum rather than ustring.
Brecht Van Lommel [Sun, 29 May 2016 14:13:14 +0000 (16:13 +0200)]
Code refactor: store ShaderNode enums as enum rather than ustring.

3 years agoCode refactor: centralize OSL node creation in shader manager.
Brecht Van Lommel [Sun, 29 May 2016 13:10:34 +0000 (15:10 +0200)]
Code refactor: centralize OSL node creation in shader manager.

3 years agoCode refactor: pass ShaderInput to constant_fold, so it supports arbitrary types.
Brecht Van Lommel [Sun, 29 May 2016 11:26:41 +0000 (13:26 +0200)]
Code refactor: pass ShaderInput to constant_fold, so it supports arbitrary types.

3 years agoCode refactor: add separate RGB to BW node and rename some sockets.
Brecht Van Lommel [Sun, 29 May 2016 10:24:47 +0000 (12:24 +0200)]
Code refactor: add separate RGB to BW node and rename some sockets.

3 years agoCode refactor: minor node and node type utility functions and changes.
Brecht Van Lommel [Sun, 29 May 2016 09:20:10 +0000 (11:20 +0200)]
Code refactor: minor node and node type utility functions and changes.

3 years agoFix debug mode assert in subd code after recent refactoring.
Brecht Van Lommel [Sun, 29 May 2016 09:16:27 +0000 (11:16 +0200)]
Fix debug mode assert in subd code after recent refactoring.

3 years agoBKE's DerivedMesh: get rid of last OMP usage.
Bastien Montagne [Sun, 29 May 2016 18:14:42 +0000 (20:14 +0200)]
BKE's DerivedMesh: get rid of last OMP usage.

Not replacing with some BLI_task_stuff here, tests show this is pointless
(in absolute best case - i.e. single huge mesh in scene - parallelizing here switches
from 0.8ms to 0.5ms for that piece of code - with something like 750ms per frame update...).

3 years agoFix T48507: Symmetrize doesn't work properly on Bendy Bones
Joshua Leung [Sun, 29 May 2016 07:37:40 +0000 (19:37 +1200)]
Fix T48507: Symmetrize doesn't work properly on Bendy Bones

3 years agoFix: Flip logic order for autokeying checking to cope with files where the flags...
Joshua Leung [Sun, 29 May 2016 07:07:50 +0000 (19:07 +1200)]
Fix: Flip logic order for autokeying checking to cope with files where the flags have been set incorrectly

Sometimes the autokeying flags don't get set correctly (i.e. the "mode" flags
used for 'Add + Replace' vs 'Replace Only' aren't set), meaning that the old logic
would always fall through to the "replace only" case. When this happens, the resulting
behaviour can be quite strange and hard to debug. This fix prevents problems like
this from continuing to be an issue...

3 years agoadded missing include
Gaia Clary [Sat, 28 May 2016 23:38:14 +0000 (01:38 +0200)]
added missing include

3 years agofixed some incompatible definitions (to make this work also on linux)
Gaia Clary [Sat, 28 May 2016 23:30:20 +0000 (01:30 +0200)]
fixed some incompatible definitions (to make this work also on linux)

3 years agoAdded support for non numeric bone layer labels (could happen when importing from...
Gaia Clary [Sat, 28 May 2016 22:35:50 +0000 (00:35 +0200)]
Added support for non numeric bone layer labels (could happen when importing from other tools)

Differential Revision: https://developer.blender.org/D2037

3 years agocollada exporter: fixed wrong check for bone roll value
Gaia Clary [Sat, 28 May 2016 18:52:10 +0000 (20:52 +0200)]
collada exporter: fixed wrong check for bone roll value

3 years agoFix T48529: NLA : viewport not updated after Track muted/unmuted.
Bastien Montagne [Sat, 28 May 2016 17:50:05 +0000 (19:50 +0200)]
Fix T48529: NLA : viewport not updated after Track muted/unmuted.

Not sure why, but ANIM_animdata_update() totally ignored NLAStrip type of bAnimListElem.

For now only added support for ANIM_UPDATE_DEPS type of update, don't know whether
others are needed in this case or not... time will say.

3 years agoCollada: Adding support for bone roll and bone layers
Gaia Clary [Sat, 28 May 2016 16:41:54 +0000 (18:41 +0200)]
Collada: Adding support for bone roll and bone layers

Differential Revision: https://developer.blender.org/D2034

3 years agoCode refactor: nodify object and mesh, but not used for XML yet.
Brecht Van Lommel [Sat, 7 May 2016 19:44:17 +0000 (21:44 +0200)]
Code refactor: nodify object and mesh, but not used for XML yet.

Differential Revision: https://developer.blender.org/D2016

3 years agoCode refactor: modify mesh storage to use arrays rather than vectors, separate some...
Brecht Van Lommel [Sat, 7 May 2016 22:09:08 +0000 (00:09 +0200)]
Code refactor: modify mesh storage to use arrays rather than vectors, separate some arrays.

Differential Revision: https://developer.blender.org/D2016

3 years agoCode refactor: make ShaderNode match Node a bit more, reusing types and enums.
Brecht Van Lommel [Sat, 7 May 2016 23:32:09 +0000 (01:32 +0200)]
Code refactor: make ShaderNode match Node a bit more, reusing types and enums.

Differential Revision: https://developer.blender.org/D2016

3 years agoPyRNA: Fix repr used /w arrays
Campbell Barton [Sat, 28 May 2016 12:23:39 +0000 (22:23 +1000)]
PyRNA: Fix repr used /w arrays

RNA arrays now display their index, with support for multi-dimensional arrays.

3 years agoCode refactor: nodify Cycles camera and fix some mistakes in XML node read.
Brecht Van Lommel [Sat, 7 May 2016 22:28:21 +0000 (00:28 +0200)]
Code refactor: nodify Cycles camera and fix some mistakes in XML node read.

Differential Revision: https://developer.blender.org/D2016

3 years agoFix T48534: color picker hex #RRGGBB input allows typing one character too many.
Brecht Van Lommel [Sat, 28 May 2016 10:36:52 +0000 (12:36 +0200)]
Fix T48534: color picker hex #RRGGBB input allows typing one character too many.

Fix suggested by Daniel Rivera.

3 years agoFix T48498: stereo camera interocular distance should not have a hard max limit.
Brecht Van Lommel [Sat, 28 May 2016 10:21:59 +0000 (12:21 +0200)]
Fix T48498: stereo camera interocular distance should not have a hard max limit.

3 years agoFix T48526: Cycles viewport render incorrectly influenced by pixel aspect ratio.
Brecht Van Lommel [Sat, 28 May 2016 09:54:08 +0000 (11:54 +0200)]
Fix T48526: Cycles viewport render incorrectly influenced by pixel aspect ratio.

This reverts 72592cfb, needs more refactoring to do that cleanup.

3 years agoFix T48533: camera node view vector wrong for Cycles GLSL.
Ralf Hölzemer [Sat, 28 May 2016 09:34:08 +0000 (11:34 +0200)]
Fix T48533: camera node view vector wrong for Cycles GLSL.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2033

3 years agoAdd missing include
Campbell Barton [Sat, 28 May 2016 00:25:46 +0000 (10:25 +1000)]
Add missing include

3 years agoCleanup: Further tweaks for consistency and simplifications.
Thomas Dinges [Fri, 27 May 2016 21:35:29 +0000 (23:35 +0200)]
Cleanup: Further tweaks for consistency and simplifications.

Now I can start adding half float without adding even bigger mess to all these functions. ;)

3 years agoCleanup: Simplify and de-duplicate assignements in the ImageManager constructor.
Thomas Dinges [Fri, 27 May 2016 21:12:13 +0000 (23:12 +0200)]
Cleanup: Simplify and de-duplicate assignements in the ImageManager constructor.

3 years agoCleanup: Shorten texture variables, tex and image was kinda redundant.
Thomas Dinges [Fri, 27 May 2016 20:58:33 +0000 (22:58 +0200)]
Cleanup: Shorten texture variables, tex and image was kinda redundant.

Also make prefix consistent, so it starts with either TEX_NUM or TEX_START, followed by texture type and architecture.

3 years agondof: detect SpaceMouse Enterprise
Mike Erwin [Fri, 27 May 2016 19:34:40 +0000 (15:34 -0400)]
ndof: detect SpaceMouse Enterprise

New device! Lots of buttons!

3 years agoDepsgraph: Accidentally removed one line too much
Sergey Sharybin [Fri, 27 May 2016 16:30:01 +0000 (18:30 +0200)]
Depsgraph: Accidentally removed one line too much

3 years agoDepsgraph: Cleanup and code simplification
Sergey Sharybin [Fri, 27 May 2016 16:01:18 +0000 (18:01 +0200)]
Depsgraph: Cleanup and code simplification

This is mainly a maintenance commit which was aimed to make work with
this module more pleasant and solve such issues as:

- Annoyance with looong files, which had craftload in them
- Usage of STL for the data structures we've got in BLI
- Possible symbol conflicts
- Not real clear layout of what is located where

So in this commit the following changes are done:

- STL is prohibited, it's not really predictable on various compilers,
  with our BLI algorithms we can predict things much better.

  There are still few usages of std::vector, but that we'll be
  solving later once we've got similar thing in BLI.

- Simplify foreach loops, avoid using const_iterator all over the place.

- New directory layout, which is hopefully easier to follow.

- Some files were split, some of them will be split soon.

  The idea of this is to split huge functions into own files with
  good documentation and everything.

- Removed stuff which was planned for use in the future but was never
  finished, tested or anything.

  Let's wipe it out for now, and bring back once we really start using
  it, so it'll be more clear if it solves our needs.

- All the internal routines were moved to DEG namespace to separate
  them better from rest of blender.

  Some places now annoyingly using DEG::foo, but that we can olve by
  moving some utility functions inside of the namespace.

While working on this we've found some hotspot in updates flush, so
now playback of blenrig is few percent faster (something like 96fps
with previous master and around 99-100fps after this change).

Not saying it's something final, there is still room for cleanup and
API simplification, but those might happen as a regular development
now without doing any global changes.

3 years agomore correct Normal Map node behavior for tangent mapping in Cycles Viewport
Alexander Romanov [Fri, 27 May 2016 11:25:39 +0000 (14:25 +0300)]
more correct Normal Map node behavior for tangent mapping in Cycles Viewport

3 years agoAdd upstream information to libraries
Campbell Barton [Fri, 27 May 2016 10:03:27 +0000 (20:03 +1000)]
Add upstream information to libraries

3 years agoCycles: Simplify code around debug stats in BVH traversing
Sergey Sharybin [Fri, 27 May 2016 08:55:48 +0000 (10:55 +0200)]
Cycles: Simplify code around debug stats in BVH traversing

3 years agoAdd some more information about extern libraries
Sergey Sharybin [Fri, 27 May 2016 07:27:44 +0000 (09:27 +0200)]
Add some more information about extern libraries

3 years agoOpenGL: use EXT version of FBOs
Mike Erwin [Fri, 27 May 2016 04:19:32 +0000 (00:19 -0400)]
OpenGL: use EXT version of FBOs

Blender 2.7x supports OpenGL 2.1 which has FBO only as an extension.

It was working fine, but this is more correct.

3 years agofixed collada api call for blenderplayer
Gaia Clary [Thu, 26 May 2016 17:16:18 +0000 (19:16 +0200)]
fixed collada api call for blenderplayer

3 years agomoved is_leaf_bone() to collada utils for reuse in exporter and importer
Gaia Clary [Thu, 26 May 2016 16:22:36 +0000 (18:22 +0200)]
moved is_leaf_bone() to collada utils for reuse in exporter and importer

3 years agofix: Import of meshes with holes is now reported as WARNING (unsupported)
Gaia Clary [Thu, 26 May 2016 15:40:56 +0000 (17:40 +0200)]
fix: Import of meshes with holes is now reported as WARNING (unsupported)
improved: add support for bone tail export/import using Blender Collada profile

Differential Revision: https://developer.blender.org/D2031

3 years agofix: Import of meshes with holes is now reported as WARNING (unsupported)
Gaia Clary [Thu, 12 May 2016 15:55:41 +0000 (17:55 +0200)]
fix: Import of meshes with holes is now reported as WARNING (unsupported)

3 years agoImage viewer scopes update: OMP->BLI_task.
Bastien Montagne [Thu, 26 May 2016 12:30:14 +0000 (14:30 +0200)]
Image viewer scopes update: OMP->BLI_task.

Gives over 50% faster scope update (from 4.5ms to 2.2ms here with SD shot)!
Probably mostly due to more clever usage of thread-local data (which avoids any lock,
when OMP code had a rather stupid critical section for minmax)...

3 years agoCorrect invalid pointer-pair compare check
Campbell Barton [Thu, 26 May 2016 12:20:12 +0000 (22:20 +1000)]
Correct invalid pointer-pair compare check

3 years agoCleanup: glsl style
Campbell Barton [Thu, 26 May 2016 08:46:12 +0000 (18:46 +1000)]
Cleanup: glsl style

3 years agoBMesh: don't alloc zero sized select elem array
Campbell Barton [Thu, 26 May 2016 05:55:09 +0000 (15:55 +1000)]
BMesh: don't alloc zero sized select elem array

3 years agoFix T48514: Cycles toon glossy BSDF not respecting reflective caustics option.
Brecht Van Lommel [Wed, 25 May 2016 19:10:36 +0000 (21:10 +0200)]
Fix T48514: Cycles toon glossy BSDF not respecting reflective caustics option.

3 years agoCycles CUDA: reduce branched path stack memory by sharing indirect ShaderData.
Brecht Van Lommel [Tue, 24 May 2016 20:28:03 +0000 (22:28 +0200)]
Cycles CUDA: reduce branched path stack memory by sharing indirect ShaderData.

Saves about 15% for the branched path kernel.

3 years agoFix T47257: bevel crash when there are internal faces.
Howard Trickey [Wed, 25 May 2016 12:48:46 +0000 (08:48 -0400)]
Fix T47257: bevel crash when there are internal faces.

Bevel had assumed that when rebuilding a face that touches
a vertex with beveled edges, the edges of the face at that vertex
would be adjacent in internal order. That is not necessarily true
if there are edges with more than two faces attached.
We could just prohibit beveling any edges that touch a vertex
where this happens (we already don't bevel non-manifold edges)
but the use case in the model of T47257 seems reasonable.
Also had to fix the edge-ordering code, and the face reconstruction
code to take care of cases where the face normal may not be as expected.

3 years agodd upstream information to libraries
Campbell Barton [Wed, 25 May 2016 12:26:57 +0000 (22:26 +1000)]
dd upstream information to libraries

3 years agoDepsgraph: Simplify some loops using foreach()
Sergey Sharybin [Wed, 25 May 2016 11:51:35 +0000 (13:51 +0200)]
Depsgraph: Simplify some loops using foreach()

3 years agoAdd warning to Mesh.from_pydata
Campbell Barton [Wed, 25 May 2016 11:34:48 +0000 (21:34 +1000)]
Add warning to Mesh.from_pydata

3 years agoDepsgraph: Solve wrong datamask calculated by depsgraph
Sergey Sharybin [Wed, 25 May 2016 11:00:30 +0000 (13:00 +0200)]
Depsgraph: Solve wrong datamask calculated by depsgraph

This is a weak concept, but nice t support it for now, so we can enable
new depsgraph by default earlier.

3 years agoCycles: Yet another fix for textures limit
Sergey Sharybin [Wed, 25 May 2016 10:48:40 +0000 (12:48 +0200)]
Cycles: Yet another fix for textures limit

3 years agoMove editmesh undo into its own file
Campbell Barton [Wed, 25 May 2016 09:12:43 +0000 (19:12 +1000)]
Move editmesh undo into its own file

3 years agoCycles: Fix wrong cuda textures limits
Sergey Sharybin [Tue, 24 May 2016 15:02:19 +0000 (17:02 +0200)]
Cycles: Fix wrong cuda textures limits

3 years agoCycles: Fix wrong render results when using multiple OpenCL devices
Sergey Sharybin [Tue, 24 May 2016 14:57:13 +0000 (16:57 +0200)]
Cycles: Fix wrong render results when using multiple OpenCL devices

3 years agoFix own mistake in D1120: wrong indexing of UV maps during tangent calculation
Alexander Romanov [Tue, 24 May 2016 14:43:57 +0000 (17:43 +0300)]
Fix own mistake in D1120: wrong indexing of UV maps during tangent calculation