Revision: 25367
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25367
Author:   blendix
Date:     2009-12-14 15:27:38 +0100 (Mon, 14 Dec 2009)

Log Message:
-----------
Fix #20368: editing keymap item operator name would reset properties
even if the name was not changed.

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c       2009-12-14 
14:21:06 UTC (rev 25366)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c       2009-12-14 
14:27:38 UTC (rev 25367)
@@ -586,9 +586,12 @@
        char idname[OP_MAX_TYPENAME];
 
        WM_operator_bl_idname(idname, value);
-       BLI_strncpy(kmi->idname, idname, sizeof(kmi->idname));
 
-       WM_keymap_properties_reset(kmi);
+       if(strcmp(idname, kmi->idname) != 0) {
+               BLI_strncpy(kmi->idname, idname, sizeof(kmi->idname));
+
+               WM_keymap_properties_reset(kmi);
+       }
 }
 
 #else


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

Reply via email to