[Bf-blender-cvs] [fbd9c09ef0c] master: Depsgraph: Add relations for spline animation

Sergey Sharybin noreply at git.blender.org
Thu Jun 6 14:22:53 CEST 2019


Commit: fbd9c09ef0cb91a1c19a1a43cbc69856efc6d989
Author: Sergey Sharybin
Date:   Thu Jun 6 14:21:39 2019 +0200
Branches: master
https://developer.blender.org/rBfbd9c09ef0cb91a1c19a1a43cbc69856efc6d989

Depsgraph: Add relations for spline animation

Currently only obvious setting which can be animated is Smooth.

The rest requires more proper support from animation update on
the Curve datablock.

But at least with this change it's not a "dependency graph fault"

===================================================================

M	source/blender/depsgraph/intern/builder/deg_builder_rna.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
index b7efdc0fa3f..5c7fa98ccf1 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
@@ -278,7 +278,8 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr,
     }
   }
   else if (RNA_struct_is_a(ptr->type, &RNA_Modifier) ||
-           RNA_struct_is_a(ptr->type, &RNA_GpencilModifier)) {
+           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
      * the property (for example, modifier's influence).
      * But when it's used as TO operation, this is geometry component. */



More information about the Bf-blender-cvs mailing list