Blender Git Commit Log

Git Commits -> Revision 50ccbe6

Revision 50ccbe6 by Dalai Felinto (master)
July 2, 2019, 22:33 (GMT)
Fix T63302: Crash when baking normals from selected to active with no cage

When we create the cage procedurally, we need to remove any edge split
modifiers. Since the new depsgraph in 2.80 we were removing the
modifiers straight from the evaluated object (it is a copy anyways).

On top of that we need to reset its eval data state (BKE_object_eval_reset)
to make sure the call to BKE_object_to_mesh to generate the cage would take the
new modifier stack state into account.

However doing so was freeing the low poly mesh we use later to convert
the normal space.

The solution (and this patch in fact ;) ) as suggested by Sergey Sharybin is to
use BKE_mesh_new_from_object() directly as well as force the modifiers to be
recalculated when any edge split modifier is removed.

Commit Details:

Full Hash: 50ccbe6bb2339ac132298305f8782bec4a6da079
Parent Commit: 2d35fed
Lines Changed: +24, -12

1 Modified Path:

/source/blender/editors/object/object_bake_api.c (+24, -12) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021