blender.git
22 months agomerged the master branch soc-2017-vertex_paint
Darshan Kadu [Sun, 10 Sep 2017 12:41:40 +0000 (18:11 +0530)]
merged the master branch

23 months agovertex mask selection works with tool fill now
Darshan Kadu [Mon, 14 Aug 2017 17:48:06 +0000 (23:18 +0530)]
vertex mask selection works with tool fill now

23 months agonew color layer copies the color from current layer
Darshan Kadu [Sun, 13 Aug 2017 05:49:30 +0000 (11:19 +0530)]
new color layer copies the color from current layer

23 months ago curve falloff works properly with alpha now
Darshan Kadu [Wed, 9 Aug 2017 14:52:22 +0000 (20:22 +0530)]
 curve falloff works properly with alpha now

23 months agocurve fall of works properly now
Darshan Kadu [Tue, 8 Aug 2017 16:26:56 +0000 (21:56 +0530)]
curve fall of works properly now

23 months agofixed texture painting brush issue
Darshan Kadu [Sun, 6 Aug 2017 13:47:05 +0000 (19:17 +0530)]
fixed texture painting brush issue

23 months agovertex selection now works fine with occluded mode
Darshan Kadu [Thu, 3 Aug 2017 11:51:20 +0000 (17:21 +0530)]
vertex selection now works fine with occluded mode

23 months agonew color layor set to default rather tha copying previos one
Darshan Kadu [Wed, 2 Aug 2017 10:25:32 +0000 (15:55 +0530)]
new color layor set to default rather tha copying previos one

23 months agoincrease the color layer to 64
Darshan Kadu [Wed, 2 Aug 2017 07:10:00 +0000 (12:40 +0530)]
increase the color layer to 64

23 months agosubsurface modier changed to consider alpha display in vpaint
Darshan Kadu [Wed, 26 Jul 2017 16:21:45 +0000 (21:51 +0530)]
subsurface modier changed to consider alpha display in vpaint

23 months agoadded the color lock in vertex paint
Darshan Kadu [Sat, 22 Jul 2017 10:11:36 +0000 (15:41 +0530)]
added the color lock in vertex paint

23 months ago now alpha blends same as the rgb colors
Darshan Kadu [Thu, 20 Jul 2017 14:16:12 +0000 (19:46 +0530)]
 now alpha blends same as the rgb colors

23 months agomodified the ply importer to take alpha in vpaint
Darshan Kadu [Tue, 18 Jul 2017 18:11:56 +0000 (23:41 +0530)]
modified the ply importer to take alpha in vpaint

23 months agoremoved the traces of printf() which was slowing the painting
Darshan Kadu [Tue, 18 Jul 2017 07:51:22 +0000 (13:21 +0530)]
removed the traces of printf() which was slowing the painting

2 years agonow alpha effect can be seen in 3d view in vpaint
Darshan Kadu [Fri, 14 Jul 2017 08:39:45 +0000 (14:09 +0530)]
now alpha effect can be seen in 3d view in vpaint

2 years agoadded alpha support to the collada exporter for vpaint
Darshan Kadu [Thu, 13 Jul 2017 05:01:50 +0000 (10:31 +0530)]
added alpha support to the collada exporter for vpaint

2 years ago added the addons to script folder, alpha supprt for fbx and oly
Darshan Kadu [Wed, 12 Jul 2017 07:04:17 +0000 (12:34 +0530)]
 added the addons to script folder, alpha supprt for fbx and oly

2 years agoadded the alpha along with rgb in .ply exporter in vpaint
Darshan Kadu [Sun, 9 Jul 2017 08:23:15 +0000 (13:53 +0530)]
added the alpha along with rgb in .ply exporter in vpaint

2 years ago added the alpha channel in vpaint a slider and change in ply exporter
Darshan Kadu [Fri, 7 Jul 2017 19:09:24 +0000 (00:39 +0530)]
 added the alpha channel in vpaint a slider and change in ply exporter

2 years agofinalised 1 = white and 0 = black for weight to vertex converter
Darshan Kadu [Sat, 1 Jul 2017 06:59:50 +0000 (12:29 +0530)]
finalised 1 = white and 0 = black for weight to vertex converter

2 years ago added the weight to paint converter as option in paint in verte xpainting and weight...
Darshan Kadu [Fri, 30 Jun 2017 10:55:08 +0000 (16:25 +0530)]
 added the weight to paint converter as option in paint in verte xpainting and weight in weight painting

2 years agoremoved the redundant code
Darshan Kadu [Thu, 29 Jun 2017 09:04:12 +0000 (14:34 +0530)]
removed the redundant code

2 years ago added weight to vertex paint converter
Darshan Kadu [Thu, 29 Jun 2017 08:33:51 +0000 (14:03 +0530)]
 added weight to vertex paint converter

2 years agofixed a bug for vertex mask selection
Darshan Kadu [Tue, 27 Jun 2017 04:46:33 +0000 (10:16 +0530)]
fixed a bug for vertex mask selection

2 years ago added non-occluded mode for the weight painting
Darshan Kadu [Fri, 23 Jun 2017 19:03:33 +0000 (00:33 +0530)]
 added non-occluded mode for the weight painting

2 years agoadded the non-occluded mode
Darshan Kadu [Thu, 22 Jun 2017 10:25:08 +0000 (15:55 +0530)]
added the non-occluded mode

2 years agoadded vertex mask feature
Darshan Kadu [Tue, 13 Jun 2017 08:34:55 +0000 (14:04 +0530)]
added vertex mask feature

2 years agoadded accumulate option
Darshan Kadu [Sun, 11 Jun 2017 13:02:04 +0000 (18:32 +0530)]
added accumulate option

2 years agocorrected typo mistake in difference blend mode
Darshan Kadu [Sat, 10 Jun 2017 08:43:31 +0000 (14:13 +0530)]
corrected typo mistake in difference blend mode

2 years agoadded softlight,exclusion,luminocity,saturtion,hue blend modes
Darshan Kadu [Sun, 4 Jun 2017 17:27:59 +0000 (22:57 +0530)]
added softlight,exclusion,luminocity,saturtion,hue blend modes

2 years agoadded Color Dodge, Difference, Screen, Hardlight, Overlay blend modes
Darshan Kadu [Sat, 3 Jun 2017 04:51:09 +0000 (10:21 +0530)]
added Color Dodge, Difference, Screen, Hardlight, Overlay blend modes

2 years agoapplied patch D2150.id8618.diff and fixed versioning_270.c
Darshan Kadu [Thu, 1 Jun 2017 08:34:06 +0000 (14:04 +0530)]
applied patch D2150.id8618.diff and fixed versioning_270.c

2 years agoAlembic import: fixed bug interpolating between frames.
Sybren A. Stüvel [Tue, 30 May 2017 11:41:30 +0000 (13:41 +0200)]
Alembic import: fixed bug interpolating between frames.

2 years agoAlembic: simplified sub-frame sampling
Sybren A. Stüvel [Tue, 30 May 2017 11:39:36 +0000 (13:39 +0200)]
Alembic: simplified sub-frame sampling

It's now less confusing (for example, using nr_of_samples directly,
instead of using 1 / 1 / nr_of_samples). Might also have fixed a bug.

Also added unittests.

2 years agoAlembic export: normalise the homogeneous component after scaling
Sybren A. Stüvel [Fri, 26 May 2017 12:02:50 +0000 (14:02 +0200)]
Alembic export: normalise the homogeneous component after scaling

The scale matrix must have its homogeneous 'w' (at mat[3][3]) set to the
scale in order to also scale the translations along with it. However, this
also scales the transform matrix's 'w' component, which is not supposed
to happen.

2 years agoAlembic export: make the start/end frame default values less reasonable
Sybren A. Stüvel [Fri, 26 May 2017 11:48:19 +0000 (13:48 +0200)]
Alembic export: make the start/end frame default values less reasonable

The old default values (start/end frame = 1) could have been an actually
desired setting (for example when exporting a non-animated model). To
make this worse, this was only interpreted as "start/end of the scene" by
the export operator when running interactively, but not when run from
Python.

By choosing INT_MIN as default it's highly unlikely that the interval
[start, end) was intended as actual export range.

2 years agoAlembic export: avoid create-and-reset of shared pointer
Sybren A. Stüvel [Fri, 26 May 2017 10:56:27 +0000 (12:56 +0200)]
Alembic export: avoid create-and-reset of shared pointer

Constructing the shared pointer where the object is actually allocated
makes the code a bit clearer.

2 years agoAlembic export: prevent rounding error buildup in frame sample time
Sybren A. Stüvel [Fri, 26 May 2017 10:55:07 +0000 (12:55 +0200)]
Alembic export: prevent rounding error buildup in frame sample time

2 years agoMove GHash/GSet/LinkList iterators to BLI files
Sergey Sharybin [Tue, 30 May 2017 10:21:19 +0000 (12:21 +0200)]
Move GHash/GSet/LinkList iterators to BLI files

Those are not depsgraph or C++ specific and can be used by everyone.

2 years agoFix UI message (no points and no phrases in tooltips please!).
Bastien Montagne [Tue, 30 May 2017 09:42:28 +0000 (11:42 +0200)]
Fix UI message (no points and no phrases in tooltips please!).

2 years agoDepsgraph: Use own implementation of stack rather than the one from STL
Sergey Sharybin [Tue, 30 May 2017 09:22:54 +0000 (11:22 +0200)]
Depsgraph: Use own implementation of stack rather than the one from STL

This way we always have predictable behavior, especially from the
performance point of view. Additionally, if some bottleneck is found
in stack implementation it'll be easier for us to address.

2 years agoTweak UI messgae checking macro, identifiers are not always available...
Bastien Montagne [Tue, 30 May 2017 09:40:51 +0000 (11:40 +0200)]
Tweak UI messgae checking macro, identifiers are not always available...

2 years agoSilence warning in RNA when building without fluidsim.
Bastien Montagne [Tue, 30 May 2017 09:35:09 +0000 (11:35 +0200)]
Silence warning in RNA when building without fluidsim.

2 years agoMove hash_combine utility function to a more generic place
Sergey Sharybin [Tue, 30 May 2017 09:09:44 +0000 (11:09 +0200)]
Move hash_combine utility function to a more generic place

This way everyone can benefit from it, not only dependency graph.

2 years agoFix strict compiler warning in C++ RNA
Sergey Sharybin [Tue, 30 May 2017 08:54:28 +0000 (10:54 +0200)]
Fix strict compiler warning in C++ RNA

Hopefully it is supported by all the compilers.

2 years agoImBuf: Fix strict compiler warning in Cineon image IO
Sergey Sharybin [Tue, 30 May 2017 08:54:01 +0000 (10:54 +0200)]
ImBuf: Fix strict compiler warning in Cineon image IO

2 years agoAudaspace: Don't use strict flags
Sergey Sharybin [Tue, 30 May 2017 08:50:12 +0000 (10:50 +0200)]
Audaspace: Don't use strict flags

2 years agoCycles: Cleanup, trailing whitespace
Sergey Sharybin [Tue, 30 May 2017 07:43:43 +0000 (09:43 +0200)]
Cycles: Cleanup, trailing whitespace

2 years agoFix T50775: Missing parenthesis on fluid bake button.
Bastien Montagne [Tue, 30 May 2017 07:46:53 +0000 (09:46 +0200)]
Fix T50775: Missing parenthesis on fluid bake button.

Yep, that got reported... Was slightly more involved than UI message
fixing though: RNA string length getter shall return exact lentgh of
string (same as strlen), not size of allocated buffer to contain it!
Otherwise, NULL final char leaks in and...

2 years agoFix T51652: Cycles - Persistant Images not storing images
Lukas Stockner [Tue, 30 May 2017 04:34:53 +0000 (06:34 +0200)]
Fix T51652: Cycles - Persistant Images not storing images

Denoising was setting session parameters for every frame, which was detected as
a change and therefore caused a resync.

Since the parameter modification change is only needed for viewport rendering
(which doesn't support denoising anyways) and resyncing after a frame change
(which isn't affected by denoising settings), an easy fix is to just ignore
the denoising parameters like it's currently done with the samples.

2 years agoNDOF: clean up after MinGW removal
Mike Erwin [Mon, 29 May 2017 18:04:46 +0000 (14:04 -0400)]
NDOF: clean up after MinGW removal

Follow up to 9f044cb422c1fc9ad79278092445f612342abb59

These comments described the difference between Microsoft & MinGW's struct definition. Now that we dropped MinGW we don't need to go into these details.

2 years agoFix T50906 and T49361, bevel didn't curve in plane sometimes.
Howard Trickey [Mon, 29 May 2017 17:32:57 +0000 (13:32 -0400)]
Fix T50906 and T49361, bevel didn't curve in plane sometimes.

2 years agoBackground Fit could set inf zoom
Campbell Barton [Mon, 29 May 2017 16:39:07 +0000 (02:39 +1000)]
Background Fit could set inf zoom

2 years agoFix T51657: ID user count error when deleting a newly created object with an assigned...
Bastien Montagne [Mon, 29 May 2017 15:44:39 +0000 (17:44 +0200)]
Fix T51657: ID user count error when deleting a newly created object with an assigned dupli_group

Stupid RNA accessor was not handling usercount at all on Object.dupli_group...

2 years agoFix T51390: Blender 2.78c will freeze or force close when adding particles at random.
Bastien Montagne [Mon, 29 May 2017 14:05:35 +0000 (16:05 +0200)]
Fix T51390: Blender 2.78c will freeze or force close when adding particles at random.

DM evaluation code was simply never clearing the `deformedOnly` flag
when evaluating a generative modifier...

Quite astonishing this never got catched before, a lot of particle code
relies on valid value of this flag!!!

2 years agoFix T51625: fix impossibility to delete uninstantiated objects from Outliner.
Bastien Montagne [Mon, 29 May 2017 10:27:59 +0000 (12:27 +0200)]
Fix T51625: fix impossibility to delete uninstantiated objects from Outliner.

The fact that we can end with uninstantiated objects is not expected
currently, but would rather not start chasing all corner cases that may
lead to that situation.

User shall be able to delete uninstantiated objects from Outliner, though!

2 years agoFix T51520: Broken vertex weights after two mesh joining.
Bastien Montagne [Mon, 29 May 2017 10:06:40 +0000 (12:06 +0200)]
Fix T51520: Broken vertex weights after two mesh joining.

Take Two, did not detect that dynapaint was also creating named vgroup cdlayer!

2 years agoFix T51624: Scene Full Copy ignores shader node links.
Bastien Montagne [Mon, 29 May 2017 09:00:01 +0000 (11:00 +0200)]
Fix T51624: Scene Full Copy ignores shader node links.

Properly remap nodes' pointers to copied IDs in copied ntrees.

Note that this only affects root trees, node groups are not concerned
here, since they are assumed to be reusable chunks and hence *not*
duplicated.

2 years agoUI: Make GP "Add Blank Frame" operator name and description fit its behavior.
Thomas Beck [Mon, 29 May 2017 08:51:20 +0000 (10:51 +0200)]
UI: Make GP "Add Blank Frame" operator name and description fit its behavior.

The operator is indeed not adding frames but inserting them at the current frame (shifting all subsequent ones). Changed the operator name and description.

Approved by Antonio.

2 years agoFix T51646: Motion Tracker instantly crashes
Sergey Sharybin [Mon, 29 May 2017 07:40:43 +0000 (09:40 +0200)]
Fix T51646: Motion Tracker instantly crashes

Was a mistake in previous changes.

Weirdly enough, frame reading assumes cache_key is always non-NULL..

2 years agoAdd some missing VSE tooltips
Aaron Carlisle [Mon, 29 May 2017 01:45:30 +0000 (21:45 -0400)]
Add some missing VSE tooltips

Part of T51061

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

2 years agoUI correct use of "..." in the VSE
Aaron Carlisle [Mon, 29 May 2017 00:41:23 +0000 (20:41 -0400)]
UI correct use of "..." in the VSE

2 years agoUsual i18n/message tweaks & fixes.
Bastien Montagne [Sun, 28 May 2017 19:47:16 +0000 (21:47 +0200)]
Usual i18n/message tweaks & fixes.

2 years agoFix T48996, bevel bad for certain in-plane edges.
Howard Trickey [Sun, 28 May 2017 18:02:56 +0000 (14:02 -0400)]
Fix T48996, bevel bad for certain in-plane edges.

2 years agoMake 'set offset from cursor' group operator internal.
Bastien Montagne [Sun, 28 May 2017 15:35:24 +0000 (17:35 +0200)]
Make 'set offset from cursor' group operator internal.

This operator relies on a rather specific context setup, so it shall not
be exposed to user in 'operator search' menu etc.

Based on D2528 by Vuk Gardašević (lijenstina).

2 years agoRemove MinGW support
Aaron Carlisle [Sat, 27 May 2017 19:34:55 +0000 (15:34 -0400)]
Remove MinGW support

The Issue
=======

For a long time now MinGW has been unsupported and unmaintained and at this point,
it looks like something that we should just leave behind and move on.

Why Remove
==========

One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based.
However, now that this is no longer true we have basically stopped updating the need CMake files.
Along with the CMake files, there are several patches to the extern libs needed to make this work.  For example, see:
https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch

If we wanted to keep MinGW then we would need to make more custom patches to the external libs and
this is not something our platform maintainers are willing to do.

For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3

Fixes T51301

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

2 years agoFix T51637: Mesh Tools - Noise Button Crashes.
Bastien Montagne [Sat, 27 May 2017 12:46:14 +0000 (14:46 +0200)]
Fix T51637: Mesh Tools - Noise Button Crashes.

Logic behind which mtext to use from material was broken here... Though
ultimately that whole tool could probably be deprecated or reworked!

2 years agoRelease wasn't building, limit debug scope
Campbell Barton [Sat, 27 May 2017 10:47:41 +0000 (20:47 +1000)]
Release wasn't building, limit debug scope

2 years agoCustomData: assert on bad arguments to free
Campbell Barton [Sat, 27 May 2017 04:03:15 +0000 (14:03 +1000)]
CustomData: assert on bad arguments to free

Assert the index is in-range for the layer type.

2 years agoAdd automated ctest for complex merge in Array modifier.
Bastien Montagne [Fri, 26 May 2017 19:57:45 +0000 (21:57 +0200)]
Add automated ctest for complex merge in Array modifier.

See also T50851.

2 years agoFix T50851: Array modifier generating invalid geometry.
Bastien Montagne [Fri, 26 May 2017 19:48:18 +0000 (21:48 +0200)]
Fix T50851: Array modifier generating invalid geometry.

We had handling of fully duplicated polygons already, but... absolutely
nothing to sanitize partially merged polygons! This were giving us
totally invalid geometry, with duplicated vertices in single poly,
invalid edges, etc.

Now we do check for invalid loops inside polys, and generate new edges
as needed to get only valid polys.

For some reason this was a nightmare to get running fully OK, playing
with old and new indices is really, really mind breaking.

2 years agoFix T50908: Motion Tracker ignored grease pencil mask
Sergey Sharybin [Fri, 26 May 2017 13:21:15 +0000 (15:21 +0200)]
Fix T50908: Motion Tracker ignored grease pencil mask

This feature got lost with new auto-track API,

Added it back by extending frame accessor class. This isn't really
a frame thing, but we don't have other type of accessor here.

Surely, we can use old-style API here and pass mask via region
tracker options for this particular case, but then it becomes much
less obvious how real auto-tracker will access this mask with old
style API.

So seems we do need an accessor for such data, just matter of
finding better place than frame accessor.

2 years agoFix freeing all custom-data layers
Campbell Barton [Fri, 26 May 2017 13:19:33 +0000 (23:19 +1000)]
Fix freeing all custom-data layers

Would crash when the active index was out of range,
since there is no reason to use the active layer when freeing all,
free the first instead.

2 years agoFix integer overflows in meshcache modifier.
lazydodo [Fri, 26 May 2017 12:26:21 +0000 (06:26 -0600)]
Fix integer overflows in meshcache modifier.

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

2 years agoFix T51609: Bake Texture, Margin crashing Blender
Sergey Sharybin [Fri, 26 May 2017 09:27:27 +0000 (11:27 +0200)]
Fix T51609: Bake Texture, Margin crashing Blender

Integer overflow in margin filter code.

2 years agoFix T51350: 2D curve normals flip when deformed
Campbell Barton [Fri, 26 May 2017 09:03:30 +0000 (19:03 +1000)]
Fix T51350: 2D curve normals flip when deformed

Deforming 2D curves & text with modifiers/shape-keys
could flip the normals.

Now check the back-facing flag instead of `z < 0`.

2 years agoFix T51287: Matrix.lerp fails w/ shear
Brecht Van Lommel [Fri, 26 May 2017 07:00:20 +0000 (17:00 +1000)]
Fix T51287: Matrix.lerp fails w/ shear

Use interp_m4_m4m4 (wraps Eigen),
`MATH_STANDALONE` will need to be updated to support this.

2 years agoFix GPencil depth checks
Campbell Barton [Fri, 26 May 2017 06:16:33 +0000 (16:16 +1000)]
Fix GPencil depth checks

Regression in 195d0fba

2 years agoFix T51629: Select w/ object lock fails
Campbell Barton [Fri, 26 May 2017 06:11:32 +0000 (16:11 +1000)]
Fix T51629: Select w/ object lock fails

Regression in 195d0fba

2 years agoCleanup: warning
Campbell Barton [Fri, 26 May 2017 04:24:39 +0000 (14:24 +1000)]
Cleanup: warning

2 years agoCycles: Cleanup: Remove semicolons from line endings in Python code
Lukas Stockner [Fri, 26 May 2017 00:15:09 +0000 (02:15 +0200)]
Cycles: Cleanup: Remove semicolons from line endings in Python code

2 years agoCycles: Update compositor when debug or denoising passes are changed
Lukas Stockner [Fri, 26 May 2017 00:13:21 +0000 (02:13 +0200)]
Cycles: Update compositor when debug or denoising passes are changed

2 years agoCycles: Cleanup: b_srlay is always used now, no more need to silence warning
Lukas Stockner [Thu, 25 May 2017 23:55:32 +0000 (01:55 +0200)]
Cycles: Cleanup: b_srlay is always used now, no more need to silence warning

2 years agoCleanup: Typo in colormanagement (ColormnaageCacheData -> ColormanageCacheData)
Lukas Stockner [Thu, 25 May 2017 23:52:43 +0000 (01:52 +0200)]
Cleanup: Typo in colormanagement (ColormnaageCacheData -> ColormanageCacheData)

2 years ago[MSVC] Fix build error. linker was searching for a mangled version of versionstr
lazydodo [Thu, 25 May 2017 21:23:45 +0000 (15:23 -0600)]
[MSVC] Fix build error. linker was searching for a mangled version of versionstr

2 years agoFix blender player python installation on macOS after recent changes.
Brecht Van Lommel [Thu, 25 May 2017 19:42:52 +0000 (21:42 +0200)]
Fix blender player python installation on macOS after recent changes.

2 years agoFix T50112: Sequencer crash w/ missing proxy data
Campbell Barton [Thu, 25 May 2017 10:23:31 +0000 (20:23 +1000)]
Fix T50112: Sequencer crash w/ missing proxy data

2 years agoDocs: Image.has_data clarification
Campbell Barton [Thu, 25 May 2017 09:54:54 +0000 (19:54 +1000)]
Docs: Image.has_data clarification

Resolves T51615

2 years agoFix T51444: Unit tests don't run on Windows
Campbell Barton [Thu, 25 May 2017 08:56:00 +0000 (18:56 +1000)]
Fix T51444: Unit tests don't run on Windows

2 years agoFix macOS python cmake install to work when switching lib directories.
Brecht Van Lommel [Thu, 25 May 2017 00:34:39 +0000 (02:34 +0200)]
Fix macOS python cmake install to work when switching lib directories.

It's a bit ugly but I couldn't find a better way to keep fast installs and
correct handling of switching between master and blender2.8 with different
lib directories.

2 years agoFix error accessing tessface color in edit-mode
Campbell Barton [Wed, 24 May 2017 16:44:58 +0000 (02:44 +1000)]
Fix error accessing tessface color in edit-mode

Was checking for loop-color in poly-layer.

2 years agoCycles: Use falltrhough attribute to help catching missing break statements
Sergey Sharybin [Wed, 24 May 2017 15:23:54 +0000 (17:23 +0200)]
Cycles: Use falltrhough attribute to help catching missing break statements

2 years agoProper fix for crash loading old files with compositor
Sergey Sharybin [Wed, 24 May 2017 13:39:15 +0000 (15:39 +0200)]
Proper fix for crash loading old files with compositor

Now we keep all links around, even for sockets which were
implicitly renamed. And also ensuring new sockets have proper
storage.

2 years agoRevert "Fix crash opening really old files with compositor"
Sergey Sharybin [Wed, 24 May 2017 13:29:14 +0000 (15:29 +0200)]
Revert "Fix crash opening really old files with compositor"

This commit broke compatibility with newer files: due to rename
of Speed to Vector the links got lost.

This reverts commit 0e46da76b70a42bab2268942cba0e0d3e4ba47e8.

2 years agoFix possible invalid normal use w/ tangent calc
Campbell Barton [Wed, 24 May 2017 11:13:32 +0000 (21:13 +1000)]
Fix possible invalid normal use w/ tangent calc

Was using MFace normals, not MPoly

2 years agoAlembic: Export mesh as mesh, even when it has no vertices.
Sybren A. Stüvel [Wed, 24 May 2017 10:39:37 +0000 (12:39 +0200)]
Alembic: Export mesh as mesh, even when it has no vertices.

This makes it possible to have an animated / procedurally generated mesh
that starts empty and obtains data in later frames.

Fixes the export of an empty mesh with an Ocean Modifier, as described in
issue T51351.

2 years agoAlembic export: consider mesh with animation data as "animated"
Sybren A. Stüvel [Wed, 24 May 2017 10:38:17 +0000 (12:38 +0200)]
Alembic export: consider mesh with animation data as "animated"

This allows you to put any kind of animation data on the mesh, and its
shape will be exported on each timekey. Note that this timekey is unrelated
to the animation data (so we don't export on each keyframe, for example).

A practical example is the addition of an animated custom property to
trigger the export of animated mesh data. The mesh data can then be created
from any source, like Python scripts.

Not only is this useful in itself, it also provides a workaround for one
of the two issues described in T51351.

2 years agoAlembic export: write Blender version to Alembic file
Sybren A. Stüvel [Wed, 24 May 2017 09:45:14 +0000 (11:45 +0200)]
Alembic export: write Blender version to Alembic file

This is written in a custom metadata key, so it isn't shown by utilities
like abcecho or abcls. However, it's still something that's useful to
have available.

2 years agoCMake: document that WITH_FFTW3 is also used for the ocean sim.
Sybren A. Stüvel [Wed, 24 May 2017 09:36:41 +0000 (11:36 +0200)]
CMake: document that WITH_FFTW3 is also used for the ocean sim.

2 years agoFix T51586: Regression: Alembic containing animated curves / hair no longer working
Sybren A. Stüvel [Wed, 24 May 2017 08:24:25 +0000 (10:24 +0200)]
Fix T51586: Regression: Alembic containing animated curves / hair no longer working

Also fixed the same type of error when reading points.