Workaround for weightpoint not working

Kudos to Germano Cavalcante for spotting the issue, the real fix is to pass SL to the function though
This commit is contained in:
Dalai Felinto 2017-04-07 18:00:39 +02:00
parent 31c272e840
commit db444fc783
1 changed files with 2 additions and 1 deletions

View File

@ -2677,7 +2677,8 @@ static void editbmesh_build_data(Scene *scene, Object *obedit, BMEditMesh *em, C
static CustomDataMask object_get_datamask(const Scene *scene, Object *ob, bool *r_need_mapping)
{
Object *actob = scene->basact ? scene->basact->object : NULL;
SceneLayer *sl = scene->render_layers.first; /* XXX TODO pass SceneLayer to this function */
Object *actob = sl->basact ? sl->basact->object : NULL;
CustomDataMask mask = ob->customdata_mask;
if (r_need_mapping) {