Rename: *_batch_cache_dirty > *_batch_cache_dirty_tag
authorDalai Felinto <dfelinto@gmail.com>
Thu, 23 Aug 2018 13:14:29 +0000 (10:14 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 23 Aug 2018 13:20:16 +0000 (10:20 -0300)
42 files changed:
source/blender/blenkernel/BKE_curve.h
source/blender/blenkernel/BKE_gpencil.h
source/blender/blenkernel/BKE_lattice.h
source/blender/blenkernel/BKE_mball.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/deform.c
source/blender/blenkernel/intern/gpencil.c
source/blender/blenkernel/intern/lattice.c
source/blender/blenkernel/intern/mball.c
source/blender/blenkernel/intern/mesh_runtime.c
source/blender/blenkernel/intern/object_deform.c
source/blender/blenkernel/intern/object_update.c
source/blender/blenkernel/intern/paint.c
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_system.c
source/blender/draw/engines/gpencil/gpencil_cache_utils.c
source/blender/draw/intern/draw_cache_impl.h
source/blender/draw/intern/draw_cache_impl_curve.c
source/blender/draw/intern/draw_cache_impl_lattice.c
source/blender/draw/intern/draw_cache_impl_mesh.c
source/blender/draw/intern/draw_cache_impl_metaball.c
source/blender/draw/intern/draw_cache_impl_particles.c
source/blender/draw/intern/draw_manager.c
source/blender/draw/modes/paint_weight_mode.c
source/blender/editors/curve/editfont.c
source/blender/editors/gpencil/gpencil_old.c
source/blender/editors/mesh/editface.c
source/blender/editors/mesh/editmesh_polybuild.c
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_transform.c
source/blender/editors/physics/particle_edit.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/makesrna/intern/rna_curve_api.c
source/blender/makesrna/intern/rna_lattice_api.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_mesh_api.c
source/blender/makesrna/intern/rna_meta_api.c
source/blender/makesrna/intern/rna_sculpt_paint.c

index a3440097688a59e4196835eef8062aaa57372d0f..ff2b1a78a6f9712fab73b93571f68d5e762711c0 100644 (file)
@@ -231,7 +231,7 @@ enum {
        BKE_CURVE_BATCH_DIRTY_ALL = 0,
        BKE_CURVE_BATCH_DIRTY_SELECT,
 };
-void BKE_curve_batch_cache_dirty(struct Curve *cu, int mode);
+void BKE_curve_batch_cache_dirty_tag(struct Curve *cu, int mode);
 void BKE_curve_batch_cache_free(struct Curve *cu);
 
 /* curve_decimate.c */
index b7bef9bbf4e332b798f36987d7e0f13279ad0cb3..19535f23cf2f4c6e9ad93400e428a203c915879d 100644 (file)
@@ -68,7 +68,7 @@ bool BKE_gpencil_free_frame_runtime_data(struct bGPDframe *derived_gpf);
 void BKE_gpencil_free_derived_frames(struct bGPdata *gpd);
 void BKE_gpencil_free(struct bGPdata *gpd, bool free_all);
 
-void BKE_gpencil_batch_cache_dirty(struct bGPdata *gpd);
+void BKE_gpencil_batch_cache_dirty_tag(struct bGPdata *gpd);
 void BKE_gpencil_batch_cache_free(struct bGPdata *gpd);
 
 void BKE_gpencil_stroke_sync_selection(struct bGPDstroke *gps);
index 67e6a32edfd55bba8e37a52ec1e106bbe10ec5a3..e98839e3dbc1ea33899ffdac71a7df720e2a5df5 100644 (file)
@@ -111,7 +111,7 @@ enum {
        BKE_LATTICE_BATCH_DIRTY_ALL = 0,
        BKE_LATTICE_BATCH_DIRTY_SELECT,
 };
-void BKE_lattice_batch_cache_dirty(struct Lattice *lt, int mode);
+void BKE_lattice_batch_cache_dirty_tag(struct Lattice *lt, int mode);
 void BKE_lattice_batch_cache_free(struct Lattice *lt);
 
 #endif  /* __BKE_LATTICE_H__ */
index 74ef9d9dbc0c638504a4c78b33d383cfc1ece983..e6874cd064b4e84178828b645dd932f11dae4904 100644 (file)
@@ -81,7 +81,7 @@ struct Depsgraph;
 enum {
        BKE_MBALL_BATCH_DIRTY_ALL = 0,
 };
-void BKE_mball_batch_cache_dirty(struct MetaBall *mb, int mode);
+void BKE_mball_batch_cache_dirty_tag(struct MetaBall *mb, int mode);
 void BKE_mball_batch_cache_free(struct MetaBall *mb);
 
 #endif
index 8a1a27b499985489f73fde2377bf736768fd3d98..0d7c4c6f597b38fd2ada829505ca035dfbd236f0 100644 (file)
@@ -513,7 +513,7 @@ enum {
        BKE_MESH_BATCH_DIRTY_SHADING,
        BKE_MESH_BATCH_DIRTY_SCULPT_COORDS,
 };
-void BKE_mesh_batch_cache_dirty(struct Mesh *me, int mode);
+void BKE_mesh_batch_cache_dirty_tag(struct Mesh *me, int mode);
 void BKE_mesh_batch_cache_free(struct Mesh *me);
 
 
index 90df5a5441a945fcb3bc0abb16863e331b66fc72..81182a89f3eb533745f9248d3e665ad12431bb90 100644 (file)
@@ -308,7 +308,7 @@ struct MovieClip *BKE_object_movieclip_get(struct Scene *scene, struct Object *o
 
 void BKE_object_runtime_reset(struct Object *object);
 
-void BKE_object_batch_cache_dirty(struct Object *ob);
+void BKE_object_batch_cache_dirty_tag(struct Object *ob);
 
 /* this function returns a superset of the scenes selection based on relationships */
 
index 3486027e62807c61bfd255b774cd265b446b43f2..3279839f8b55e42d71bc47551247c679a5ad1c2f 100644 (file)
@@ -474,5 +474,5 @@ void BKE_particle_system_eval_init(struct Depsgraph *depsgraph,
 enum {
        BKE_PARTICLE_BATCH_DIRTY_ALL = 0,
 };
-void BKE_particle_batch_cache_dirty(struct ParticleSystem *psys, int mode);
+void BKE_particle_batch_cache_dirty_tag(struct ParticleSystem *psys, int mode);
 void BKE_particle_batch_cache_free(struct ParticleSystem *psys);
index 0d6aa0e2630173726cc088f32ec03c557307427f..a9e86087f4289f6d4884ae4b5660e700b617acfa 100644 (file)
@@ -5368,13 +5368,13 @@ void BKE_curve_eval_geometry(Depsgraph *depsgraph,
 }
 
 /* Draw Engine */
-void (*BKE_curve_batch_cache_dirty_cb)(Curve *cu, int mode) = NULL;
+void (*BKE_curve_batch_cache_dirty_tag_cb)(Curve *cu, int mode) = NULL;
 void (*BKE_curve_batch_cache_free_cb)(Curve *cu) = NULL;
 
-void BKE_curve_batch_cache_dirty(Curve *cu, int mode)
+void BKE_curve_batch_cache_dirty_tag(Curve *cu, int mode)
 {
        if (cu->batch_cache) {
-               BKE_curve_batch_cache_dirty_cb(cu, mode);
+               BKE_curve_batch_cache_dirty_tag_cb(cu, mode);
        }
 }
 void BKE_curve_batch_cache_free(Curve *cu)
index ddf9840a32e6e1fe6ce4df53828a3e6506789e13..78a287919d00a60a8ce630e170828a41a3fc51fd 100644 (file)
@@ -75,7 +75,7 @@ bDeformGroup *BKE_defgroup_new(Object *ob, const char *name)
        defgroup_unique_name(defgroup, ob);
 
        if (ob->type != OB_GPENCIL) {
-               BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+               BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
        }
 
        return defgroup;
index fdb1123e1c7b063b392626194136b201353e66a2..57494397f4037580a21cd8582359584456bfc27d 100644 (file)
 /* ************************************************** */
 /* Draw Engine */
 
-void(*BKE_gpencil_batch_cache_dirty_cb)(bGPdata *gpd) = NULL;
+void(*BKE_gpencil_batch_cache_dirty_tag_cb)(bGPdata *gpd) = NULL;
 void(*BKE_gpencil_batch_cache_free_cb)(bGPdata *gpd) = NULL;
 
-void BKE_gpencil_batch_cache_dirty(bGPdata *gpd)
+void BKE_gpencil_batch_cache_dirty_tag(bGPdata *gpd)
 {
        if (gpd) {
                DEG_id_tag_update(&gpd->id, OB_RECALC_DATA);
-               BKE_gpencil_batch_cache_dirty_cb(gpd);
+               BKE_gpencil_batch_cache_dirty_tag_cb(gpd);
        }
 }
 
index ca555a46da5561dcdf4f0aa9948042758b6cc7c9..05502ad9e9ef6ed709026a11da329d726e0919ba 100644 (file)
@@ -1254,13 +1254,13 @@ void BKE_lattice_eval_geometry(struct Depsgraph *UNUSED(depsgraph),
 }
 
 /* Draw Engine */
-void (*BKE_lattice_batch_cache_dirty_cb)(Lattice *lt, int mode) = NULL;
+void (*BKE_lattice_batch_cache_dirty_tag_cb)(Lattice *lt, int mode) = NULL;
 void (*BKE_lattice_batch_cache_free_cb)(Lattice *lt) = NULL;
 
-void BKE_lattice_batch_cache_dirty(Lattice *lt, int mode)
+void BKE_lattice_batch_cache_dirty_tag(Lattice *lt, int mode)
 {
        if (lt->batch_cache) {
-               BKE_lattice_batch_cache_dirty_cb(lt, mode);
+               BKE_lattice_batch_cache_dirty_tag_cb(lt, mode);
        }
 }
 void BKE_lattice_batch_cache_free(Lattice *lt)
index 43b7eba2810ad1abdfcd3ff451162ed7b25fb527..bc2d7ed79d5718322620dbc39421ff580ea92746 100644 (file)
@@ -565,13 +565,13 @@ void BKE_mball_select_swap(struct MetaBall *mb)
 
 /* Draw Engine */
 
-void (*BKE_mball_batch_cache_dirty_cb)(MetaBall *mb, int mode) = NULL;
+void (*BKE_mball_batch_cache_dirty_tag_cb)(MetaBall *mb, int mode) = NULL;
 void (*BKE_mball_batch_cache_free_cb)(MetaBall *mb) = NULL;
 
-void BKE_mball_batch_cache_dirty(MetaBall *mb, int mode)
+void BKE_mball_batch_cache_dirty_tag(MetaBall *mb, int mode)
 {
        if (mb->batch_cache) {
-               BKE_mball_batch_cache_dirty_cb(mb, mode);
+               BKE_mball_batch_cache_dirty_tag_cb(mb, mode);
        }
 }
 void BKE_mball_batch_cache_free(MetaBall *mb)
index a3fc422ade7e0d41f06e9ea5643c169169b03788..60699589a7734a9d60f86730ead905ae4bbc7f2f 100644 (file)
@@ -205,13 +205,13 @@ void BKE_mesh_runtime_clear_geometry(Mesh *mesh)
  * \{ */
 
 /* Draw Engine */
-void (*BKE_mesh_batch_cache_dirty_cb)(Mesh *me, int mode) = NULL;
+void (*BKE_mesh_batch_cache_dirty_tag_cb)(Mesh *me, int mode) = NULL;
 void (*BKE_mesh_batch_cache_free_cb)(Mesh *me) = NULL;
 
-void BKE_mesh_batch_cache_dirty(Mesh *me, int mode)
+void BKE_mesh_batch_cache_dirty_tag(Mesh *me, int mode)
 {
        if (me->runtime.batch_cache) {
-               BKE_mesh_batch_cache_dirty_cb(me, mode);
+               BKE_mesh_batch_cache_dirty_tag_cb(me, mode);
        }
 }
 void BKE_mesh_batch_cache_free(Mesh *me)
index a6b0e57e55c1a31cf519c5f4deee71c20771c579..b8273703a94bcb5a33520d29b661f45963505442 100644 (file)
@@ -412,7 +412,7 @@ void BKE_object_defgroup_remove(Object *ob, bDeformGroup *defgroup)
                else
                        object_defgroup_remove_object_mode(ob, defgroup);
 
-               BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+               BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
        }
 }
 
index 52e3d4a080344244b2fb9d9b85e09064f4b086fe..54d21c261fcb13d433dfd0fb865d74ce56b2503f 100644 (file)
@@ -302,25 +302,25 @@ void BKE_object_eval_uber_transform(Depsgraph *depsgraph, Object *object)
        BKE_object_eval_proxy_copy(depsgraph, object);
 }
 
-void BKE_object_batch_cache_dirty(Object *ob)
+void BKE_object_batch_cache_dirty_tag(Object *ob)
 {
        switch (ob->type) {
                case OB_MESH:
-                       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+                       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
                        break;
                case OB_LATTICE:
-                       BKE_lattice_batch_cache_dirty(ob->data, BKE_LATTICE_BATCH_DIRTY_ALL);
+                       BKE_lattice_batch_cache_dirty_tag(ob->data, BKE_LATTICE_BATCH_DIRTY_ALL);
                        break;
                case OB_CURVE:
                case OB_FONT:
                case OB_SURF:
-                       BKE_curve_batch_cache_dirty(ob->data, BKE_CURVE_BATCH_DIRTY_ALL);
+                       BKE_curve_batch_cache_dirty_tag(ob->data, BKE_CURVE_BATCH_DIRTY_ALL);
                        break;
                case OB_MBALL:
-                       BKE_mball_batch_cache_dirty(ob->data, BKE_MBALL_BATCH_DIRTY_ALL);
+                       BKE_mball_batch_cache_dirty_tag(ob->data, BKE_MBALL_BATCH_DIRTY_ALL);
                        break;
                case OB_GPENCIL:
-                       BKE_gpencil_batch_cache_dirty(ob->data);
+                       BKE_gpencil_batch_cache_dirty_tag(ob->data);
                        break;
        }
 }
@@ -332,7 +332,7 @@ void BKE_object_eval_uber_data(Depsgraph *depsgraph,
        DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob);
        BLI_assert(ob->type != OB_ARMATURE);
        BKE_object_handle_data_update(depsgraph, scene, ob);
-       BKE_object_batch_cache_dirty(ob);
+       BKE_object_batch_cache_dirty_tag(ob);
 }
 
 void BKE_object_eval_cloth(Depsgraph *depsgraph,
@@ -363,7 +363,7 @@ void BKE_object_eval_update_shading(Depsgraph *depsgraph, Object *object)
 {
        DEG_debug_print_eval(depsgraph, __func__, object->id.name, object);
        if (object->type == OB_MESH) {
-               BKE_mesh_batch_cache_dirty(object->data, BKE_MESH_BATCH_DIRTY_SHADING);
+               BKE_mesh_batch_cache_dirty_tag(object->data, BKE_MESH_BATCH_DIRTY_SHADING);
        }
 }
 
@@ -372,15 +372,15 @@ void BKE_object_data_select_update(Depsgraph *depsgraph, ID *object_data)
        DEG_debug_print_eval(depsgraph, __func__, object_data->name, object_data);
        switch (GS(object_data->name)) {
                case ID_ME:
-                       BKE_mesh_batch_cache_dirty((Mesh *)object_data,
+                       BKE_mesh_batch_cache_dirty_tag((Mesh *)object_data,
                                                   BKE_CURVE_BATCH_DIRTY_SELECT);
                        break;
                case ID_CU:
-                       BKE_curve_batch_cache_dirty((Curve *)object_data,
+                       BKE_curve_batch_cache_dirty_tag((Curve *)object_data,
                                                    BKE_CURVE_BATCH_DIRTY_SELECT);
                        break;
                case ID_LT:
-                       BKE_lattice_batch_cache_dirty((struct Lattice *)object_data,
+                       BKE_lattice_batch_cache_dirty_tag((struct Lattice *)object_data,
                                                      BKE_CURVE_BATCH_DIRTY_SELECT);
                        break;
                default:
@@ -423,7 +423,7 @@ void BKE_object_eval_flush_base_flags(Depsgraph *depsgraph,
                     psys != NULL;
                     psys = psys->next)
                {
-                       BKE_particle_batch_cache_dirty(psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
+                       BKE_particle_batch_cache_dirty_tag(psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
                }
        }
 }
index cb26f7e9f3ed0d092a3968cfec7d31df131b6915..6ccf4c1b7611ac8603f3c32a73219fb5e6e0980c 100644 (file)
@@ -993,7 +993,7 @@ void BKE_sculpt_update_mesh_elements(
        }
 
        /* 2.8x - avoid full mesh update! */
-       BKE_mesh_batch_cache_dirty(me, BKE_MESH_BATCH_DIRTY_SCULPT_COORDS);
+       BKE_mesh_batch_cache_dirty_tag(me, BKE_MESH_BATCH_DIRTY_SCULPT_COORDS);
 }
 
 int BKE_sculpt_mask_layers_ensure(Object *ob, MultiresModifierData *mmd)
index 82514f0c92de55c33683d3d605683a05fe148b26..4d4843928e2b5d09b5276a7ac261cedb8649c58b 100644 (file)
@@ -4349,13 +4349,13 @@ void psys_apply_hair_lattice(Depsgraph *depsgraph, Scene *scene, Object *ob, Par
 
 
 /* Draw Engine */
-void (*BKE_particle_batch_cache_dirty_cb)(ParticleSystem *psys, int mode) = NULL;
+void (*BKE_particle_batch_cache_dirty_tag_cb)(ParticleSystem *psys, int mode) = NULL;
 void (*BKE_particle_batch_cache_free_cb)(ParticleSystem *psys) = NULL;
 
-void BKE_particle_batch_cache_dirty(ParticleSystem *psys, int mode)
+void BKE_particle_batch_cache_dirty_tag(ParticleSystem *psys, int mode)
 {
        if (psys->batch_cache) {
-               BKE_particle_batch_cache_dirty_cb(psys, mode);
+               BKE_particle_batch_cache_dirty_tag_cb(psys, mode);
        }
 }
 void BKE_particle_batch_cache_free(ParticleSystem *psys)
index d195ce6fa0c00cc28e502a600fd0132a9bf84014..de4d25a95d956237576c504a4e08d54abc654a88 100644 (file)
@@ -4399,7 +4399,7 @@ void particle_system_update(struct Depsgraph *depsgraph, Scene *scene, Object *o
        /* save matrix for duplicators, at rendertime the actual dupliobject's matrix is used so don't update! */
        invert_m4_m4(psys->imat, ob->obmat);
 
-       BKE_particle_batch_cache_dirty(psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
+       BKE_particle_batch_cache_dirty_tag(psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
 }
 
 /* ID looper */
index 835cc2cfe578d62aec779d9c90c84a338de4be77..fdf4f121d53e318e6b6799bc87512a09529666fa 100644 (file)
@@ -298,7 +298,7 @@ GpencilBatchCache *gpencil_batch_cache_get(Object *ob, int cfra)
 }
 
 /* set cache as dirty */
-void DRW_gpencil_batch_cache_dirty(bGPdata *gpd)
+void DRW_gpencil_batch_cache_dirty_tag(bGPdata *gpd)
 {
        if (gpd->runtime.batch_cache_data == NULL) {
                return;
index d4dbe5db80da4f1f06df128df64836a456d03aad..bae7e65f5e87ded1a6b7a26643f3a49fab919a4d 100644 (file)
@@ -44,22 +44,22 @@ struct MetaBall;
 struct bGPdata;
 
 /* Expose via BKE callbacks */
-void DRW_mball_batch_cache_dirty(struct MetaBall *mb, int mode);
+void DRW_mball_batch_cache_dirty_tag(struct MetaBall *mb, int mode);
 void DRW_mball_batch_cache_free(struct MetaBall *mb);
 
-void DRW_curve_batch_cache_dirty(struct Curve *cu, int mode);
+void DRW_curve_batch_cache_dirty_tag(struct Curve *cu, int mode);
 void DRW_curve_batch_cache_free(struct Curve *cu);
 
-void DRW_mesh_batch_cache_dirty(struct Mesh *me, int mode);
+void DRW_mesh_batch_cache_dirty_tag(struct Mesh *me, int mode);
 void DRW_mesh_batch_cache_free(struct Mesh *me);
 
-void DRW_lattice_batch_cache_dirty(struct Lattice *lt, int mode);
+void DRW_lattice_batch_cache_dirty_tag(struct Lattice *lt, int mode);
 void DRW_lattice_batch_cache_free(struct Lattice *lt);
 
-void DRW_particle_batch_cache_dirty(struct ParticleSystem *psys, int mode);
+void DRW_particle_batch_cache_dirty_tag(struct ParticleSystem *psys, int mode);
 void DRW_particle_batch_cache_free(struct ParticleSystem *psys);
 
-void DRW_gpencil_batch_cache_dirty(struct bGPdata *gpd);
+void DRW_gpencil_batch_cache_dirty_tag(struct bGPdata *gpd);
 void DRW_gpencil_batch_cache_free(struct bGPdata *gpd);
 
 /* Curve */
index cfaa3c6914ff38b0616d8de087b8729d3a8c5611..f468288fefe39551b1e7f9b10905685567678304 100644 (file)
@@ -422,7 +422,7 @@ static CurveBatchCache *curve_batch_cache_get(Curve *cu)
        return cu->batch_cache;
 }
 
-void DRW_curve_batch_cache_dirty(Curve *cu, int mode)
+void DRW_curve_batch_cache_dirty_tag(Curve *cu, int mode)
 {
        CurveBatchCache *cache = cu->batch_cache;
        if (cache == NULL) {
index d6acc4112d6ec2afe8dcb9a7f2a5cb47faab3462..4ffbe7b7546d2948953fd9ae3e93eeafd84dedd3 100644 (file)
@@ -361,7 +361,7 @@ static LatticeBatchCache *lattice_batch_cache_get(Lattice *lt)
        return lt->batch_cache;
 }
 
-void DRW_lattice_batch_cache_dirty(Lattice *lt, int mode)
+void DRW_lattice_batch_cache_dirty_tag(Lattice *lt, int mode)
 {
        LatticeBatchCache *cache = lt->batch_cache;
        if (cache == NULL) {
index 1cf270048e1abbcbfadd5bcd61e5fc9828278616..8c3ecfadad962b87ad4b80574192b79fad2542c8 100644 (file)
@@ -1734,7 +1734,7 @@ static MeshBatchCache *mesh_batch_cache_get(Mesh *me)
        return me->runtime.batch_cache;
 }
 
-void DRW_mesh_batch_cache_dirty(Mesh *me, int mode)
+void DRW_mesh_batch_cache_dirty_tag(Mesh *me, int mode)
 {
        MeshBatchCache *cache = me->runtime.batch_cache;
        if (cache == NULL) {
index 2172997a714ed45048d0c4ad8d31bec70e33ad67..6dab46ccaa037655e2879521391da4dc26b15dd5 100644 (file)
@@ -91,7 +91,7 @@ static MetaBallBatchCache *metaball_batch_cache_get(MetaBall *mb)
        return mb->batch_cache;
 }
 
-void DRW_mball_batch_cache_dirty(MetaBall *mb, int mode)
+void DRW_mball_batch_cache_dirty_tag(MetaBall *mb, int mode)
 {
        MetaBallBatchCache *cache = mb->batch_cache;
        if (cache == NULL) {
index b56396261d3fc75d256cf5abebf2199df0248f9b..b0da9d7082d8ed80628ba96781553b9a9b948dd2 100644 (file)
@@ -141,7 +141,7 @@ static ParticleBatchCache *particle_batch_cache_get(ParticleSystem *psys)
        return psys->batch_cache;
 }
 
-void DRW_particle_batch_cache_dirty(ParticleSystem *psys, int mode)
+void DRW_particle_batch_cache_dirty_tag(ParticleSystem *psys, int mode)
 {
        ParticleBatchCache *cache = psys->batch_cache;
        if (cache == NULL) {
index 17e01016911271675a32b5ef065f6ca630be43ff..f5f98aef3e7d97ab5bf14911b217426bea5da717 100644 (file)
@@ -2472,40 +2472,40 @@ void DRW_engines_register(void)
        /* setup callbacks */
        {
                /* BKE: mball.c */
-               extern void *BKE_mball_batch_cache_dirty_cb;
+               extern void *BKE_mball_batch_cache_dirty_tag_cb;
                extern void *BKE_mball_batch_cache_free_cb;
                /* BKE: curve.c */
-               extern void *BKE_curve_batch_cache_dirty_cb;
+               extern void *BKE_curve_batch_cache_dirty_tag_cb;
                extern void *BKE_curve_batch_cache_free_cb;
                /* BKE: mesh.c */
-               extern void *BKE_mesh_batch_cache_dirty_cb;
+               extern void *BKE_mesh_batch_cache_dirty_tag_cb;
                extern void *BKE_mesh_batch_cache_free_cb;
                /* BKE: lattice.c */
-               extern void *BKE_lattice_batch_cache_dirty_cb;
+               extern void *BKE_lattice_batch_cache_dirty_tag_cb;
                extern void *BKE_lattice_batch_cache_free_cb;
                /* BKE: particle.c */
-               extern void *BKE_particle_batch_cache_dirty_cb;
+               extern void *BKE_particle_batch_cache_dirty_tag_cb;
                extern void *BKE_particle_batch_cache_free_cb;
                /* BKE: gpencil.c */
-               extern void *BKE_gpencil_batch_cache_dirty_cb;
+               extern void *BKE_gpencil_batch_cache_dirty_tag_cb;
                extern void *BKE_gpencil_batch_cache_free_cb;
 
-               BKE_mball_batch_cache_dirty_cb = DRW_mball_batch_cache_dirty;
+               BKE_mball_batch_cache_dirty_tag_cb = DRW_mball_batch_cache_dirty_tag;
                BKE_mball_batch_cache_free_cb = DRW_mball_batch_cache_free;
 
-               BKE_curve_batch_cache_dirty_cb = DRW_curve_batch_cache_dirty;
+               BKE_curve_batch_cache_dirty_tag_cb = DRW_curve_batch_cache_dirty_tag;
                BKE_curve_batch_cache_free_cb = DRW_curve_batch_cache_free;
 
-               BKE_mesh_batch_cache_dirty_cb = DRW_mesh_batch_cache_dirty;
+               BKE_mesh_batch_cache_dirty_tag_cb = DRW_mesh_batch_cache_dirty_tag;
                BKE_mesh_batch_cache_free_cb = DRW_mesh_batch_cache_free;
 
-               BKE_lattice_batch_cache_dirty_cb = DRW_lattice_batch_cache_dirty;
+               BKE_lattice_batch_cache_dirty_tag_cb = DRW_lattice_batch_cache_dirty_tag;
                BKE_lattice_batch_cache_free_cb = DRW_lattice_batch_cache_free;
 
-               BKE_particle_batch_cache_dirty_cb = DRW_particle_batch_cache_dirty;
+               BKE_particle_batch_cache_dirty_tag_cb = DRW_particle_batch_cache_dirty_tag;
                BKE_particle_batch_cache_free_cb = DRW_particle_batch_cache_free;
 
-               BKE_gpencil_batch_cache_dirty_cb = DRW_gpencil_batch_cache_dirty;
+               BKE_gpencil_batch_cache_dirty_tag_cb = DRW_gpencil_batch_cache_dirty_tag;
                BKE_gpencil_batch_cache_free_cb = DRW_gpencil_batch_cache_free;
        }
 }
index 3bbe89114912902b1c491d246098816d939f6d48..5284f5552a935bd74c43c42c6dd5f3783b720373 100644 (file)
@@ -95,7 +95,7 @@ static void PAINT_WEIGHT_engine_init(void *UNUSED(vedata))
        if (e_data.actdef != draw_ctx->obact->actdef) {
                e_data.actdef = draw_ctx->obact->actdef;
 
-               BKE_mesh_batch_cache_dirty(draw_ctx->obact->data, BKE_MESH_BATCH_DIRTY_ALL);
+               BKE_mesh_batch_cache_dirty_tag(draw_ctx->obact->data, BKE_MESH_BATCH_DIRTY_ALL);
        }
 
        if (!e_data.weight_face_shader) {
index 75efdec3dd21e252058791611d808fe933939e5a..163248a84fa49032947f587be310d4fdc62f5c31 100644 (file)
@@ -273,7 +273,7 @@ static void text_update_edited(bContext *C, Object *obedit, int mode)
                }
        }
 
-       BKE_curve_batch_cache_dirty(cu, BKE_CURVE_BATCH_DIRTY_SELECT);
+       BKE_curve_batch_cache_dirty_tag(cu, BKE_CURVE_BATCH_DIRTY_SELECT);
 
        WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
 }
index 76d519fe371a4e20e7f0a918a81b8730656f4e3f..a384d6d7ae8921f0b7b766ef62e3e8f26d8dc6ba 100644 (file)
@@ -162,7 +162,7 @@ static int gpencil_convert_old_files_exec(bContext *C, wmOperator *UNUSED(op))
                ED_gpencil_setup_modes(C, gpd, 0);
 
                /* set cache as dirty */
-               BKE_gpencil_batch_cache_dirty(ob->data);
+               BKE_gpencil_batch_cache_dirty_tag(ob->data);
 
                scene->gpd = NULL;
        }
index 6c126551228534275f9e5ea9a02d972f87d8769e..df623a7633c81163ec2f6a78b39663ad14f4422e 100644 (file)
@@ -102,7 +102,7 @@ void paintface_flush_flags(Object *ob, short flag)
                }
        }
 
-       BKE_mesh_batch_cache_dirty(me, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(me, BKE_MESH_BATCH_DIRTY_ALL);
 }
 
 void paintface_hide(Object *ob, const bool unselected)
@@ -507,7 +507,7 @@ void paintvert_flush_flags(Object *ob)
                }
        }
 
-       BKE_mesh_batch_cache_dirty(me, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(me, BKE_MESH_BATCH_DIRTY_ALL);
 }
 /*  note: if the caller passes false to flush_flags, then they will need to run paintvert_flush_flags(ob) themselves */
 void paintvert_deselect_all_visible(Object *ob, int action, bool flush_flags)
index 86c9fc0243b3e000e0dacf09b6e9eb580a48a8a5..9b7d460973a356b177354ea1191bd1d8abea4935 100644 (file)
@@ -510,7 +510,7 @@ static int edbm_polybuild_hover_invoke(
                }
                BM_elem_select_set(bm, ele_hover, true);
                BM_select_history_store(em->bm, ele_hover);
-               BKE_mesh_batch_cache_dirty(obedit->data, BKE_MESH_BATCH_DIRTY_SELECT);
+               BKE_mesh_batch_cache_dirty_tag(obedit->data, BKE_MESH_BATCH_DIRTY_SELECT);
 
                ED_region_tag_redraw(vc.ar);
 
index 1ca67f4132f4ee7f639c3f859ad89f45788ef7d9..5d0d715ea157a1c1ea1e2ecfae22cbfd580b6664 100644 (file)
@@ -1509,7 +1509,7 @@ static int shade_smooth_exec(bContext *C, wmOperator *op)
                if (ob->type == OB_MESH) {
                        BKE_mesh_smooth_flag_set(ob, !clear);
 
-                       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+                       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
                        DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
                        WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
 
index fb54c9ec2c2100e47c64875eef1a8757050ea33e..432a27da1e73f6b589a9709b1de26b9ea866e739 100644 (file)
@@ -1216,7 +1216,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
 
        for (tob = bmain->object.first; tob; tob = tob->id.next) {
                if (tob->data && (((ID *)tob->data)->tag & LIB_TAG_DOIT)) {
-                       BKE_object_batch_cache_dirty(tob);
+                       BKE_object_batch_cache_dirty_tag(tob);
                        DEG_id_tag_update(&tob->id, OB_RECALC_OB | OB_RECALC_DATA);
                }
        }
index 26fbdaf4566b0a198b9abf3914522815c5de27a3..f73cdc30292c0f8ecf364949008f5468507cc4ab 100644 (file)
@@ -4301,7 +4301,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
 
                if (edit->psys) {
                        WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob);
-                       BKE_particle_batch_cache_dirty(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
+                       BKE_particle_batch_cache_dirty_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
                        DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE);
                }
                else {
@@ -4570,7 +4570,7 @@ static int shape_cut_exec(bContext *C, wmOperator *UNUSED(op))
 
                if (edit->psys) {
                        WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob);
-                       BKE_particle_batch_cache_dirty(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
+                       BKE_particle_batch_cache_dirty_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
                        DEG_id_tag_update(&ob->id, DEG_TAG_SELECT_UPDATE);
                }
                else {
index dd03c07a43f9187c207867220e4739dd3d430710..edbe3caf333a827ce5c29090fc34d4942d0f748c 100644 (file)
@@ -2232,7 +2232,7 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
        /* also needed for "View Selected" on last stroke */
        paint_last_stroke_update(scene, vc->ar, mval);
 
-       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
 
        DEG_id_tag_update(ob->data, 0);
        WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
@@ -2405,7 +2405,7 @@ static int vpaint_mode_toggle_exec(bContext *C, wmOperator *op)
                ED_object_vpaintmode_enter_ex(bmain, depsgraph, wm, scene, ob);
        }
 
-       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
 
        /* update modifier stack for mapping requirements */
        DEG_id_tag_update(&me->id, 0);
@@ -3145,7 +3145,7 @@ static void vpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P
 
        swap_m4m4(vc->rv3d->persmat, mat);
 
-       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL);
 
        if (vp->paint.brush->vertexpaint_tool == PAINT_BLEND_SMEAR) {
                memcpy(vpd->smear.color_prev, vpd->smear.color_curr, sizeof(uint) * ((Mesh *)ob->data)->totloop);
index 3efd18266ddd049a4ed74bb7c8dfd4d3981d99f4..45037cfddfa5ad7cddbcd10d45610dcb8e7f83bc 100644 (file)
@@ -4906,7 +4906,7 @@ static void sculpt_flush_update(bContext *C)
        }
 
        /* 2.8x - avoid full mesh update! */
-       BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_SCULPT_COORDS);
+       BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_SCULPT_COORDS);
 }
 
 /* Returns whether the mouse/stylus is over the mesh (1)
index dc1cbed824e7ae1f574b423083d49fbd85d5a4bc..4e870d64f1ce1c60f46ae28295bcec0240fc541f 100644 (file)
@@ -52,7 +52,7 @@ static void rna_Curve_transform(Curve *cu, float *mat, bool shape_keys)
 
 static void rna_Curve_update_gpu_tag(Curve *cu)
 {
-       BKE_curve_batch_cache_dirty(cu, BKE_CURVE_BATCH_DIRTY_ALL);
+       BKE_curve_batch_cache_dirty_tag(cu, BKE_CURVE_BATCH_DIRTY_ALL);
 }
 
 static float rna_Nurb_calc_length(Nurb *nu, int resolution_u)
index 231c5ce0c36e101d1a97ad7fd5e815c6d4c6973f..405b7922a0aae4f2a3a66d1563b81f539d858a46 100644 (file)
@@ -50,7 +50,7 @@ static void rna_Lattice_transform(Lattice *lt, float *mat, bool shape_keys)
 
 static void rna_Lattice_update_gpu_tag(Lattice *lt)
 {
-       BKE_lattice_batch_cache_dirty(lt, BKE_LATTICE_BATCH_DIRTY_ALL);
+       BKE_lattice_batch_cache_dirty_tag(lt, BKE_LATTICE_BATCH_DIRTY_ALL);
 }
 
 #else
index 50f2d49c1b5e3762a87c93d5df8e15dd3420b603..a1551ea2317586ed2ba51af35708cef6f75a884f 100644 (file)
@@ -239,7 +239,7 @@ static void rna_Mesh_update_data_edit_color(Main *bmain, Scene *scene, PointerRN
 
 static void rna_Mesh_update_data_edit_weight(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
-       BKE_mesh_batch_cache_dirty(rna_mesh(ptr), BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(rna_mesh(ptr), BKE_MESH_BATCH_DIRTY_ALL);
 
        rna_Mesh_update_data(bmain, scene, ptr);
 }
@@ -247,7 +247,7 @@ static void rna_Mesh_update_data_edit_weight(Main *bmain, Scene *scene, PointerR
 
 static void rna_Mesh_update_data_edit_active_color(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
-       BKE_mesh_batch_cache_dirty(rna_mesh(ptr), BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(rna_mesh(ptr), BKE_MESH_BATCH_DIRTY_ALL);
 
        rna_Mesh_update_data(bmain, scene, ptr);
 }
@@ -277,7 +277,7 @@ static void rna_Mesh_update_vertmask(Main *bmain, Scene *scene, PointerRNA *ptr)
                me->editflag &= ~ME_EDIT_PAINT_FACE_SEL;
        }
 
-       BKE_mesh_batch_cache_dirty(me, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(me, BKE_MESH_BATCH_DIRTY_ALL);
 
        rna_Mesh_update_draw(bmain, scene, ptr);
 }
@@ -289,7 +289,7 @@ static void rna_Mesh_update_facemask(Main *bmain, Scene *scene, PointerRNA *ptr)
                me->editflag &= ~ME_EDIT_PAINT_VERT_SEL;
        }
 
-       BKE_mesh_batch_cache_dirty(me, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(me, BKE_MESH_BATCH_DIRTY_ALL);
 
        rna_Mesh_update_draw(bmain, scene, ptr);
 }
index 0087a154f8847cc8ff75f17cbb5e7cbc12b86f41..7328686af7fbcd74d9eeeac45e8d099c5697503f 100644 (file)
@@ -217,7 +217,7 @@ static void rna_Mesh_split_faces(Mesh *mesh, bool free_loop_normals)
 
 static void rna_Mesh_update_gpu_tag(Mesh *mesh)
 {
-       BKE_mesh_batch_cache_dirty(mesh, BKE_MESH_BATCH_DIRTY_ALL);
+       BKE_mesh_batch_cache_dirty_tag(mesh, BKE_MESH_BATCH_DIRTY_ALL);
 }
 
 
index 53bb3ef23349072d3144a9dac99a1c3d0dbb9581..e747a849c1243b837fc50f381d412b75634085e8 100644 (file)
@@ -52,7 +52,7 @@ static void rna_Meta_transform(struct MetaBall *mb, float *mat)
 
 static void rna_Mball_update_gpu_tag(MetaBall *mb)
 {
-       BKE_mball_batch_cache_dirty(mb, BKE_MBALL_BATCH_DIRTY_ALL);
+       BKE_mball_batch_cache_dirty_tag(mb, BKE_MBALL_BATCH_DIRTY_ALL);
 }
 #else
 
index faa879b54b19ce0d441339fd098ecf590a550082..8f09f1dac670ab9909860b4a48b1ebece5a733ba 100644 (file)
@@ -186,7 +186,7 @@ static void rna_ParticleEdit_redo(bContext *C, PointerRNA *UNUSED(ptr))
 
        if (ob) DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
 
-       BKE_particle_batch_cache_dirty(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
+       BKE_particle_batch_cache_dirty_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL);
        psys_free_path_cache(edit->psys, edit);
        DEG_id_tag_update(&CTX_data_scene(C)->id, DEG_TAG_COPY_ON_WRITE);
 }