Revision: 37841
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37841
Author:   aligorith
Date:     2011-06-27 04:24:59 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
Bugfix: Selecting nodes now updates animation editors

Noticed while testing the material nodes commit

Modified Paths:
--------------
    branches/soc-2011-pepper/source/blender/editors/space_action/space_action.c
    branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c

Modified: 
branches/soc-2011-pepper/source/blender/editors/space_action/space_action.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_action/space_action.c 
2011-06-27 04:21:53 UTC (rev 37840)
+++ branches/soc-2011-pepper/source/blender/editors/space_action/space_action.c 
2011-06-27 04:24:59 UTC (rev 37841)
@@ -405,6 +405,13 @@
                                        break;
                        }
                        break;
+               case NC_NODE:
+                       if (wmn->action == NA_SELECTED) {
+                               /* selection changed, so force refresh to flush 
(needs flag set to do syncing) */
+                               saction->flag |= SACTION_TEMP_NEEDCHANSYNC;
+                               ED_area_tag_refresh(sa);
+                       }
+                       break;
                case NC_SPACE:
                        switch (wmn->data) {
                                case ND_SPACE_DOPESHEET:

Modified: 
branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c   
2011-06-27 04:21:53 UTC (rev 37840)
+++ branches/soc-2011-pepper/source/blender/editors/space_graph/space_graph.c   
2011-06-27 04:24:59 UTC (rev 37841)
@@ -464,6 +464,13 @@
                                        break;
                        }
                        break;
+               case NC_NODE:
+                       if (wmn->action == NA_SELECTED) {
+                               /* selection changed, so force refresh to flush 
(needs flag set to do syncing) */
+                               sipo->flag |= SIPO_TEMP_NEEDCHANSYNC;
+                               ED_area_tag_refresh(sa);
+                       }
+                               break;
                case NC_SPACE:
                        if(wmn->data == ND_SPACE_GRAPH)
                                ED_area_tag_redraw(sa);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to