forked from mirror/ObjToSchematic
Fixed enabling non-existent action groups
This commit is contained in:
parent
8fb58815b9
commit
d67e4451e1
@ -790,10 +790,12 @@ export class UI {
|
||||
* Enable a specific action.
|
||||
*/
|
||||
public enable(action: EAction) {
|
||||
this._forEachComponent(action, (component) => {
|
||||
component.setEnabled(true);
|
||||
});
|
||||
this._getGroup(action).execButton?.setEnabled(true);
|
||||
if (action < EAction.MAX) {
|
||||
this._forEachComponent(action, (component) => {
|
||||
component.setEnabled(true);
|
||||
});
|
||||
this._getGroup(action).execButton?.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user