diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-25 18:53:11 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-25 18:53:11 +0300 |
commit | f1317140561bc5f3af81296b081c1922d62ce67f (patch) | |
tree | 6aa2ccc06d4712d31a5e68a060bb4d2c47aa4670 /source/blender/editors | |
parent | 76a9d1984fc300899e06a6b5c304fcd9d3282f3d (diff) |
Fix (unreported) broken code in RNA's datatransfer source layer enum function.
Same issue as in own previous commit actually.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_data_transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_data_transfer.c b/source/blender/editors/object/object_data_transfer.c index 8c03d43c313..34f758900e9 100644 --- a/source/blender/editors/object/object_data_transfer.c +++ b/source/blender/editors/object/object_data_transfer.c @@ -135,7 +135,7 @@ static const EnumPropertyItem *dt_layers_select_src_itemf( Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); Object *ob_src_eval = DEG_get_evaluated_object(depsgraph, ob_src); - me_eval = mesh_get_eval_final(depsgraph, scene_eval, ob_src_eval, CD_MASK_BAREMESH | CD_MLOOPUV); + me_eval = mesh_get_eval_final(depsgraph, scene_eval, ob_src_eval, CD_MASK_BAREMESH | CD_MASK_MLOOPUV); num_data = CustomData_number_of_layers(&me_eval->ldata, CD_MLOOPUV); RNA_enum_item_add_separator(&item, &totitem); @@ -157,7 +157,7 @@ static const EnumPropertyItem *dt_layers_select_src_itemf( Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); Object *ob_src_eval = DEG_get_evaluated_object(depsgraph, ob_src); - me_eval = mesh_get_eval_final(depsgraph, scene_eval, ob_src_eval, CD_MASK_BAREMESH | CD_MLOOPCOL); + me_eval = mesh_get_eval_final(depsgraph, scene_eval, ob_src_eval, CD_MASK_BAREMESH | CD_MASK_MLOOPCOL); num_data = CustomData_number_of_layers(&me_eval->ldata, CD_MLOOPCOL); RNA_enum_item_add_separator(&item, &totitem); |