Commit: 371ac2e96893d9fbce33908d7ff8bc15119258c6
Author: Bastien Montagne
Date:   Mon Jun 20 16:11:18 2016 +0200
Branches: id-remap
https://developer.blender.org/rB371ac2e96893d9fbce33908d7ff8bc15119258c6

Fix 'broken lib' status not being updated when library is 'renamed' to existing 
path.

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

M       source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c 
b/source/blender/editors/space_outliner/outliner_draw.c
index 554009d..43e9c26 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -502,6 +502,11 @@ static void namebutton_cb(bContext *C, void *tsep, char 
*oldname)
                                        BKE_reportf(CTX_wm_reports(C), 
RPT_ERROR,
                                                    "Library path '%s' does not 
exist, correct this before saving", expanded);
                                }
+                               else if (lib->id.tag & LIB_TAG_MISSING) {
+                                       BKE_reportf(CTX_wm_reports(C), RPT_INFO,
+                                                   "Library path '%s' is now 
valid, please reload the library", expanded);
+                                       lib->id.tag &= ~LIB_TAG_MISSING;
+                               }
                        }
                }
                else {

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

Reply via email to