Revision: 24366
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24366
Author:   blendix
Date:     2009-11-05 20:32:10 +0100 (Thu, 05 Nov 2009)

Log Message:
-----------
Fix for bug #19692: setting text on curve, bevel or taper object did
not update dependency graph causing missing updates.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_curve.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_curve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_curve.c    2009-11-05 
19:31:38 UTC (rev 24365)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c    2009-11-05 
19:32:10 UTC (rev 24366)
@@ -221,6 +221,12 @@
        WM_event_add_notifier(C, NC_GEOM|ND_DATA, id);
 }
 
+static void rna_Curve_update_deps(bContext *C, PointerRNA *ptr)
+{
+       DAG_scene_sort(CTX_data_scene(C));
+       rna_Curve_update_data(C, ptr);
+}
+
 static void rna_Nurb_update_handle_data(bContext *C, PointerRNA *ptr)
 {
        Nurb *nu= (Nurb*)ptr->data;
@@ -552,7 +558,7 @@
        RNA_def_property_pointer_sdna(prop, NULL, "textoncurve");
        RNA_def_property_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Text on Curve", "Curve deforming text 
object.");
-       RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+       RNA_def_property_update(prop, 0, "rna_Curve_update_deps");
        
        prop= RNA_def_property(srna, "font", PROP_POINTER, PROP_NONE);
        RNA_def_property_pointer_sdna(prop, NULL, "vfont");
@@ -776,13 +782,13 @@
        RNA_def_property_pointer_sdna(prop, NULL, "bevobj");
        RNA_def_property_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Bevel Object", "Curve object name that 
defines the bevel shape.");
-       RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+       RNA_def_property_update(prop, 0, "rna_Curve_update_deps");
        
        prop= RNA_def_property(srna, "taper_object", PROP_POINTER, PROP_NONE);
        RNA_def_property_pointer_sdna(prop, NULL, "taperobj");
        RNA_def_property_flag(prop, PROP_EDITABLE);
        RNA_def_property_ui_text(prop, "Taper Object", "Curve object name that 
defines the taper (width).");
-       RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+       RNA_def_property_update(prop, 0, "rna_Curve_update_deps");
        
        /* Flags */
 


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to