Fix bug causing wrong-fire of `ViewportCommand::Visible` (#5244)
Fix: variable name issue I'm not sure, if there's any particular reason to do `self.active` . I thought `self.visible` was the original intention.
This commit is contained in:
parent
7bd6f83f18
commit
23728e145e
|
|
@ -728,7 +728,7 @@ impl ViewportBuilder {
|
|||
}
|
||||
|
||||
if let Some(new_visible) = new_visible {
|
||||
if Some(new_visible) != self.active {
|
||||
if Some(new_visible) != self.visible {
|
||||
self.visible = Some(new_visible);
|
||||
commands.push(ViewportCommand::Visible(new_visible));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue