LocDiff Driver Vars: Red-Alert is not needed on the space-selectors
authorJoshua Leung <aligorith@gmail.com>
Thu, 28 Feb 2013 11:00:06 +0000 (11:00 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 28 Feb 2013 11:00:06 +0000 (11:00 +0000)
source/blender/editors/space_graph/graph_buttons.c

index 7da147b1575a7490fd97654c4a77ff2b9bf186cc..f1501857b13b5b9ab3a6ad7584ac23da8f82b88f 100644 (file)
@@ -541,7 +541,8 @@ static void graph_panel_driverVar__locDiff(uiLayout *layout, ID *id, DriverVar *
                RNA_pointer_create(dtar->id, &RNA_Pose, ob1->pose, &tar_ptr);
                uiItemPointerR(col, &dtar_ptr, "bone_target", &tar_ptr, "bones", "", ICON_BONE_DATA);
        }
-               
+       
+       uiLayoutSetRedAlert(col, false); /* we can clear it again now - it's only needed when creating the ID/Bone fields */
        uiItemR(col, &dtar_ptr, "transform_space", 0, NULL, ICON_NONE);
        
        col = uiLayoutColumn(layout, TRUE);
@@ -555,6 +556,7 @@ static void graph_panel_driverVar__locDiff(uiLayout *layout, ID *id, DriverVar *
                uiItemPointerR(col, &dtar2_ptr, "bone_target", &tar_ptr, "bones", "", ICON_BONE_DATA);
        }
                
+       uiLayoutSetRedAlert(col, false); /* we can clear it again now - it's only needed when creating the ID/Bone fields */
        uiItemR(col, &dtar2_ptr, "transform_space", 0, NULL, ICON_NONE);
 }