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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-12-05 20:37:29 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-12-05 22:54:02 +0300
commit9fa8c01f6bdce150da750a53f59f947d65707ccc (patch)
treebe140b3bfcd099ac42d2ae0d1f7b32b20d1a5ae6 /source/blender/makesrna/intern/rna_modifier.c
parent484389cdcd6c8cbac9aaaae97bb4c7599a63a793 (diff)
Fix (unreported, related to T58210) LaplacianDeform binding state incorrectly reported by RNA.
LaplacianDeform binding handling is a catastrophee in CoW context, because half of the binding (the laplacian solver cache thingy) is not saved, and can be re-generated on the fly from stored vcos. This means that binding is not only done when hitting 'bind' button, but also at file load, and when some things change. And this utterly breaks with CoW design, not sure how to fix, will add a task about that. But this also means that NULL laplacian solver cache pointer is not a good check to know whether it is binded or not, only stored vcos are relevant for that (and the binding flag, of course).
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 5e69f8a32f3..fb70d3b86a0 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -781,7 +781,7 @@ static void rna_OceanModifier_ocean_chop_set(PointerRNA *ptr, float value)
static bool rna_LaplacianDeformModifier_is_bind_get(PointerRNA *ptr)
{
LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)ptr->data;
- return ((lmd->flag & MOD_LAPLACIANDEFORM_BIND) && (lmd->cache_system != NULL));
+ return ((lmd->flag & MOD_LAPLACIANDEFORM_BIND) && (lmd->vertexco != NULL));
}
/* NOTE: Curve and array modifiers requires curve path to be evaluated,