Commit: 630f343b30d8b7deb59a7e0ecd0b8f957a536319
Author: Campbell Barton
Date:   Thu Aug 14 16:18:26 2014 +1000
Branches: master
https://developer.blender.org/rB630f343b30d8b7deb59a7e0ecd0b8f957a536319

UI: Don't print user passwords in info-space

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

M       source/blender/editors/interface/interface_handlers.c

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

diff --git a/source/blender/editors/interface/interface_handlers.c 
b/source/blender/editors/interface/interface_handlers.c
index 7a76f66..b95545a 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -604,7 +604,13 @@ static void ui_apply_autokey(bContext *C, uiBut *but)
 
        /* make a little report about what we've done! */
        if (but->rnaprop) {
-               char *buf = WM_prop_pystring_assign(C, &but->rnapoin, 
but->rnaprop, but->rnaindex);
+               char *buf;
+
+               if (RNA_property_subtype(but->rnaprop) == PROP_PASSWORD) {
+                       return;
+               }
+
+               buf = WM_prop_pystring_assign(C, &but->rnapoin, but->rnaprop, 
but->rnaindex);
                if (buf) {
                        BKE_report(CTX_wm_reports(C), RPT_PROPERTY, buf);
                        MEM_freeN(buf);

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

Reply via email to