Fix #31725: UV map order is ignored when opening in 2.6+ versions
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Jun 2012 09:11:16 +0000 (09:11 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Jun 2012 09:11:16 +0000 (09:11 +0000)
commita99b9a5c3d6eb567092dcfb005a540564b5b8ebd
treec51acbaace57bced1cbd93c57a15b2402e14f213
parented7dbbdfe946fa7bf22d319997ea3634bc48cab3
Fix #31725: UV map order is ignored when opening in 2.6+ versions

Issue was caused by do_versions being used pdata as reference for active/render/
stencil/clone layer indices instead of fdata.

Added some utility functions used only by do_versions to be sure this indices
are set from fdata for pre-bmesh files.
source/blender/blenkernel/BKE_customdata.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenloader/intern/readfile.c