Prevent the surface upgrade tool from running during export
Also add an explicit way to trigger the tool manually at user's will.
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
#ifndef SURFACE_UPGRADE_TOOL_H
|
||||
#define SURFACE_UPGRADE_TOOL_H
|
||||
|
||||
#include "scene/main/node.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
|
||||
class EditorFileSystemDirectory;
|
||||
|
||||
@ -57,6 +57,7 @@ public:
|
||||
bool is_show_requested() const { return show_requested; };
|
||||
void show_popup() { _show_popup(); }
|
||||
|
||||
void prepare_upgrade();
|
||||
void begin_upgrade();
|
||||
void finish_upgrade();
|
||||
|
||||
@ -64,4 +65,14 @@ public:
|
||||
~SurfaceUpgradeTool();
|
||||
};
|
||||
|
||||
class SurfaceUpgradeDialog : public ConfirmationDialog {
|
||||
GDCLASS(SurfaceUpgradeDialog, ConfirmationDialog);
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
public:
|
||||
SurfaceUpgradeDialog();
|
||||
};
|
||||
|
||||
#endif // SURFACE_UPGRADE_TOOL_H
|
||||
|
||||
Reference in New Issue
Block a user