diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-07-15 18:25:07 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-07-15 18:26:27 +0300 |
commit | ae4098e234a0fd80c3a67d35bffa04708875f2e2 (patch) | |
tree | 18e50397760df613af9e5fb5064bfd577eb3020c /source/blender/editors/object | |
parent | 36e836d0e9df5dda49d748264056a9fa68ec8a02 (diff) |
GPencil: Fix unreported error baking mesh animation
When the mesh is linked, the materials can not be available or be the same assigned to mesh. Now, if the mesh is linked, a simple two materials conversion is used.
To get the full list of materials, the mesh must not be linked.
Also checked some indexes to be sure never get a wrong value and that materials are not created again and again.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 48b50be411e..ff49e0a9c5a 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -2451,7 +2451,8 @@ static int object_convert_exec(bContext *C, wmOperator *op) matrix, 0, use_seams, - use_faces); + use_faces, + false); gpencilConverted = true; /* Remove unused materials. */ |