Fix for button comparisons ignoring rna-index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user