Cleanup: Remove unused function
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 17 Mar 2020 16:40:24 +0000 (17:40 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 17 Mar 2020 16:40:54 +0000 (17:40 +0100)
Was introduced earlier today and did not turn out to be very useful
and clear.

source/blender/blenkernel/BKE_mesh_runtime.h
source/blender/blenkernel/intern/DerivedMesh.c

index bdf7692b89b722e60c9f96a2f62902837859eb9b..fdddafcc71f4891c82f9404ace539ac4d61010ca 100644 (file)
@@ -87,12 +87,6 @@ struct Mesh *mesh_create_eval_final_view(struct Depsgraph *depsgraph,
                                          struct Object *ob,
                                          const struct CustomData_MeshMasks *dataMask);
 
-struct Mesh *mesh_create_eval_final_view_index(struct Depsgraph *depsgraph,
-                                               struct Scene *scene,
-                                               struct Object *ob,
-                                               const struct CustomData_MeshMasks *dataMask,
-                                               int index);
-
 struct Mesh *mesh_create_eval_no_deform(struct Depsgraph *depsgraph,
                                         struct Scene *scene,
                                         struct Object *ob,
index 2113b184f01c4714ca1331797347fde7aaeb1a1a..f51c792f474f6580a33df2aba9e3e0c0e8b60cf1 100644 (file)
@@ -2014,27 +2014,6 @@ Mesh *mesh_create_eval_final_view(Depsgraph *depsgraph,
   return final;
 }
 
-Mesh *mesh_create_eval_final_view_index(Depsgraph *depsgraph,
-                                        Scene *scene,
-                                        Object *ob,
-                                        const CustomData_MeshMasks *dataMask,
-                                        int index)
-{
-  Mesh *final;
-
-  /* XXX hack
-   * psys modifier updates particle state when called during dupli-list generation,
-   * which can lead to wrong transforms. This disables particle system modifier execution.
-   */
-  ob->transflag |= OB_NO_PSYS_UPDATE;
-
-  mesh_calc_modifiers(depsgraph, scene, ob, 1, false, dataMask, index, false, false, NULL, &final);
-
-  ob->transflag &= ~OB_NO_PSYS_UPDATE;
-
-  return final;
-}
-
 Mesh *mesh_create_eval_no_deform(Depsgraph *depsgraph,
                                  Scene *scene,
                                  Object *ob,