Fix #30030: Tapered and beveled text won't update in realtime
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 30 Jan 2012 19:55:30 +0000 (19:55 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 30 Jan 2012 19:55:30 +0000 (19:55 +0000)
Was missed dependency in depsgraph.

source/blender/blenkernel/intern/depsgraph.c

index 762aaf3efc16f6a0bc1c1c21afd1ac8d74bd9812..e67056cdd9e1ada39983826eb4057adfc88ee268 100644 (file)
@@ -539,6 +539,7 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Scene *scene, O
                }
                        break;
                case OB_CURVE:
+               case OB_FONT:
                {
                        Curve *cu= ob->data;
                        
@@ -550,15 +551,11 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Scene *scene, O
                                node2 = dag_get_node(dag, cu->taperobj);
                                dag_add_relation(dag,node2,node,DAG_RL_DATA_DATA|DAG_RL_OB_DATA, "Curve Taper");
                        }
-               }
-                       break;
-               case OB_FONT: 
-               {
-                       Curve *cu= ob->data;
-                       
-                       if(cu->textoncurve) {
-                               node2 = dag_get_node(dag, cu->textoncurve);
-                               dag_add_relation(dag,node2,node,DAG_RL_DATA_DATA|DAG_RL_OB_DATA, "Texture On Curve");
+                       if(ob->type == OB_FONT) {
+                               if(cu->textoncurve) {
+                                       node2 = dag_get_node(dag, cu->textoncurve);
+                                       dag_add_relation(dag,node2,node,DAG_RL_DATA_DATA|DAG_RL_OB_DATA, "Texture On Curve");
+                               }
                        }
                }
                        break;