diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-07 18:33:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-07 18:34:22 +0400 |
commit | 6135797ec811e097a1c9f7c3814d720e677a25ba (patch) | |
tree | 9509fd85b6f7176d5ee61126449be53cfe8a5d2c /source/blender | |
parent | 8614ed64eddbf62d8e1a1346525398ec305896bd (diff) |
Fix for button comparisons ignoring rna-index
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 6121a139761..f66699e75e8 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -513,7 +513,7 @@ static bool ui_but_equals_old(const uiBut *but, const uiBut *oldbut) * to catch all cases, but it is simple to add more checks later */ if (but->retval != oldbut->retval) return false; if (but->rnapoin.data != oldbut->rnapoin.data) return false; - if (but->rnaprop != oldbut->rnaprop && but->rnaindex != oldbut->rnaindex) return false; + if (but->rnaprop != oldbut->rnaprop || but->rnaindex != oldbut->rnaindex) return false; if (but->func != oldbut->func) return false; if (but->funcN != oldbut->funcN) return false; if (oldbut->func_arg1 != oldbut && but->func_arg1 != oldbut->func_arg1) return false; |