Blender Git Commit Log

Git Commits -> Revision 6871402

Revision 6871402 by Dalai Felinto (master)
December 11, 2018, 23:57 (GMT)
Fix Cycles baking active/cage

Basically what we address here is to make sure the active object and the cage
are not interferring with the baking result (e.g., when baking Combined).

To do so, we take advantage of the fact that we create our own depsgraph
for baking. So now we can change the cowed objects, instead of the
original ones.

Note: There is still a way to get a crash. If you try to bake from
selected to active when is_cage, but with no cage object, we get an
assert:

```
BLI_assert failed: //source/blender/blenkernel/intern/DerivedMesh.c
mesh_calc_modifiers(), at
(((Mesh *)ob->data)->id.tag & LIB_TAG_COPIED_ON_WRITE_EVAL_RESULT) == 0
```

We can bypass this by passing ob_low instead of ob_low_eval to
bake_mesh_new_from_object on object_bake_api.c:847 . But then the edge
split modifier change will take no effect.

Commit Details:

Full Hash: 6871402614f48ef9c454d057c544ed43abeb87ae
Parent Commit: 174acd9
Lines Changed: +33, -52

2 Modified Paths:

/source/blender/editors/object/object_bake_api.c (+32, -51) (Diff)
/source/blender/render/extern/include/RE_bake.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021