Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-06-27 04:09:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-06-27 04:09:30 +0300
commit62b1d11613ed230710a427ad313205daa1c1167b (patch)
tree21f497bb01be3ed497b1fb227c8bb1abdb1a7c24 /source/blender/makesrna/intern/rna_curve_api.c
parente6be5b8a2cdbfb9e62ef6bed83da841846cdfd1e (diff)
RNA: update_gpu_tag() to force Batch re-generation
Diffstat (limited to 'source/blender/makesrna/intern/rna_curve_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_curve_api.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_curve_api.c b/source/blender/makesrna/intern/rna_curve_api.c
index 5a123603ed5..4da262daf8d 100644
--- a/source/blender/makesrna/intern/rna_curve_api.c
+++ b/source/blender/makesrna/intern/rna_curve_api.c
@@ -49,6 +49,12 @@ static void rna_Curve_transform(Curve *cu, float *mat, int shape_keys)
DEG_id_tag_update(&cu->id, 0);
}
+
+static void rna_Curve_update_gpu_tag(Curve *cu)
+{
+ BKE_curve_batch_cache_dirty(cu, BKE_CURVE_BATCH_DIRTY_ALL);
+}
+
#else
void RNA_api_curve(StructRNA *srna)
@@ -67,6 +73,8 @@ void RNA_api_curve(StructRNA *srna)
"has had invalid indices corrected (to default 0)");
parm = RNA_def_boolean(func, "result", 0, "Result", "");
RNA_def_function_return(func, parm);
+
+ RNA_def_function(srna, "update_gpu_tag", "rna_Curve_update_gpu_tag");
}
#endif