Simulation Nodes: Implement subframe mixing #107599
|
@ -374,13 +374,7 @@ static bool sharing_info_equal(const ImplicitSharingInfo *a, const ImplicitShari
|
|||
if (!a || !b) {
|
||||
return false;
|
||||
}
|
||||
if (a != b) {
|
||||
return false;
|
||||
}
|
||||
if (a->version() != b->version()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return a == b;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
HooglyBoogly marked this conversation as resolved
|
||||
|
|
Loading…
Reference in New Issue
This line probably does not make sense. Comparing versions across different sharing info is kinda meaningless, and if it is the same sharing info, the version will be the same. Two check if two attributes are the same, just check if the data pointer is the same.
Using the version makes sense when you want to compare the old state of an attribute with the new state without having keep the old state around if no one uses it anymore. But here you always keep the old and new state around anyway.