Blender Git Commit Log

Git Commits -> Revision 5dbda33

Revision 5dbda33 by Sergey Sharybin (master)
May 27, 2019, 09:00 (GMT)
Depsgraph API: Allow preserving custom data layers

This commit extends dependency graph API with an argument which
denotes that all custom data layers are to be preserved. This
forces modifier stack re-evaluation with more inclusive mask.

Far from ideal, since this might fail in certain configurations
with indirectly used objects which might be missing layers needed
for the current object evaluation. But this is how it worked for
a long time, so should be good enough for until more sophisticated
solution is found.

In order to use this new behavior two things are to be passed:

- Pass keep_all_data_layers=True
- Pass a valid dependency graph.

The dependency graph is only needed if keep_all_data_layers=True
and is NOT to be passed if keep_all_data_layers=False.

If keep_all_data_layers=True the dependency graph MUST be passed.

Reviewers: mont29, brecht

Reviewed By: mont29

Maniphest Tasks: T64994, T64794

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

Commit Details:

Full Hash: 5dbda33462349a4ac78f08e8ed4ec7922ca7394f
Parent Commit: 07d3d8c
Lines Changed: +126, -30

9 Modified Paths:

/intern/cycles/blender/blender_util.h (+4, -2) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+14, -3) (Diff)
/source/blender/blenkernel/BKE_object.h (+10, -2) (Diff)
/source/blender/blenkernel/intern/mesh_convert.c (+54, -12) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -2) (Diff)
/source/blender/editors/object/object_bake_api.c (+4, -4) (Diff)
/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+19, -2) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+18, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021