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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-06-06 13:27:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-07 10:13:51 +0300
commit19782e4f680e7db86a72cbfa78d23afd7e7c93ce (patch)
tree3253203ac60dd07bb6c8ca5b7f1a87086407611b
parentd8bff8e8f621b0c2c9de64e14847a19d376e60d3 (diff)
Fix missing autosmooth update when animated
Consists of few simple steps. Don't tag object data's bounding box as dirty before re-evaluaiton Most of the time this actually tags evaluated mesh which will be tossed away few lines below anyway. And this causes issues if the evaluated mesh is actually owned by the mesh datablock. The bounding box now has clear separation between original object data and object data after modifiers, so this should not be causing any issues. Free evaluated mesh when owner mesh changes Ensures that evaluated mesh shares the same settings as its owner when updates related on animation system happens. Depsgraph: Update mesh when its geometry settings changes Allows to have options like autosmooth animated. Reviewers: brecht, mont29 Differential Revision: https://developer.blender.org/D5030
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_rna.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
index 5c7fa98ccf1..dc408351a1a 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
@@ -277,7 +277,7 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr,
return node_identifier;
}
}
- else if (RNA_struct_is_a(ptr->type, &RNA_Modifier) ||
+ else if (RNA_struct_is_a(ptr->type, &RNA_Mesh) || RNA_struct_is_a(ptr->type, &RNA_Modifier) ||
RNA_struct_is_a(ptr->type, &RNA_GpencilModifier) ||
RNA_struct_is_a(ptr->type, &RNA_Spline)) {
/* When modifier is used as FROM operation this is likely referencing to