Blender Git Commits

Blender Git commits from all branches.

Page: 1551 / 2888

April 16, 2018, 09:21 (GMT)
Write StampData metadata to video files

This is currently only supported by FFmpeg (so not frameserver, AVI RAW,
or AVI JPEG), and only seems to work when using Matroska or Ogg Theora
containers.

Only metadata that doesn't change from frame to frame is written to
video files. This distinction is visible in the UI by looking at the
stamp checkbox tooltips (they either mention "image" or "image/video").

Part of: https://developer.blender.org/D2273

Reviewed by: @campbellbarton
April 16, 2018, 09:21 (GMT)
IMB_metadata improvements

- Metadata handling is now separate from `ImBuf *`, allowing it to be
used with a generic `IDProperty *`.
- Merged `IMB_metadata_add_field()` and `IMB_metadata_change_field()`
into a more robust `IMB_metadata_set_field()`. This new function
doesn't return any status (it now always succeeds, and the previously
existing return value was never checked anyway).
- Removed `IMB_metadata_del_field()` as it was never actually used
anywhere.
- Use `IMB_metadata_ensure()` instead of having
`IMB_metadata_set_field()` create the containing `IDProperty` for
you.
- Deduplicated function declarations, moved `intern/IMB_metadata.h` out
of `intern/`. Note that this does mean that we have some extra
`#include "IMB_metadata.h"` lines now, as the metadata functions are
no longer declared in `IMB_imbuf.h`.
- Deduplicated function declarations, all metadata-related declarations
are now in imbuf/IMB_metadata.h.

Part of: https://developer.blender.org/D2273

Reviewed by: @campbellbarton
April 16, 2018, 09:20 (GMT)
BLI_string: macros that de-duplicate sizeof arg
April 16, 2018, 09:20 (GMT)
Undo: split text undo steps out of the data-block

This moves undo storage into a separate struct which is passed
in from the undo system.
April 16, 2018, 09:20 (GMT)
Undo System: return undo step from undo push init

Also improve logging
April 16, 2018, 09:20 (GMT)
Logging: use -1 log level to log all levels
April 16, 2018, 09:20 (GMT)
ED_undo: use logging
April 16, 2018, 09:20 (GMT)
Fix crash w/ empty text undo operations
April 16, 2018, 09:20 (GMT)
Fix modifier freeing code re. ID refcounting.

Free code should not handle ID refcounting at all. This has to be done
at higher level, since in some case we want to free (temp) data that
actually did not refcount at all its IDs.

This change seems to be working OK, but as usual in that area, only
lots of testing in real-case situation will say whether there are some
hidden bugs or not.
April 16, 2018, 09:20 (GMT)
Depsgraph: Make sure textures used by modifiers are in the graph
April 16, 2018, 09:20 (GMT)
Proper fix for T54337

Accidentally checked the wrong variable in fa01a1738bd1e3a6750ff.
April 16, 2018, 09:20 (GMT)
Tweak ID->tag reset on file load (no visible change expected!).

Issue was, *some* IDs (like infamous nodetrees from materials etc.)
would not go through the 'main' read_libblock() func, so their tags were
never reset.

So now, we ensure direct_link_id() always clear the tags, and move
setting them in read_libblock() after the call to direct_link_id().

Needed for depsgraph, but general healthier fix actually.
April 16, 2018, 09:20 (GMT)
Depsgraph: Ensure root pchan is always found
April 16, 2018, 09:20 (GMT)
Depsgraph: Assert that pchan index is always valid
April 16, 2018, 09:20 (GMT)
Depsgraph: Add missing expansion od custom bone shapes

This was fixed in 2.8 branch but not in master.
April 16, 2018, 09:20 (GMT)
Depsgraph: Only bind ID-data and indices to depsgraph callbacks

This is a part of copy-on-write sanitization, to avoid all the checks
which were attempting to keep sub-data pointers intact.

Point is: ID pointers never change for CoW datablocks, but nested
data pointers might change when updating existing copy.

Solution: Only bind ID data pointers and index of sub-data.
This will make CoW datablock 7update function was easier in 2.8.

In master we were only using pose channel pointers in callbacks,
this is exactly what this commit addresses. A linear lookup array
is created on pose evaluation init and is thrown away afterwards.

One thing we might consider doing is to keep indexed array of
poses, similar to chanhash.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Subscribers: dfelinto

Differential Revision: https://developer.blender.org/D3124
April 16, 2018, 09:20 (GMT)
Fix T54337: Cycles crash with simple subd object in debug build
April 16, 2018, 09:20 (GMT)
Fix T54400: Some GCN 1 cards available to select for use with Cycles

Hainan was missing from the list of GCN 1 cards.
April 16, 2018, 09:20 (GMT)
BMesh: remove redundant loop in select-next-active

Thanks to @nBurn for spotting
April 16, 2018, 09:20 (GMT)
Undo: make id-map use binary search to keep sorted
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021