Fix "Insert new..." menu option not doing anything if objects list was closed

This commit is contained in:
Florian Rival
2023-02-15 11:58:28 +01:00
parent 9120a52a08
commit 1aa2afaf85

View File

@@ -500,6 +500,7 @@ export default class SceneEditor extends React.Component<Props, State> {
});
if (this._objectsList) this._objectsList.openNewObjectDialog();
else this.openObjectsList();
};
_onAddInstanceUnderCursor = () => {