Fix Palette gizmo crash (#2413)
This commit is contained in:
parent
d65f8694d0
commit
55fa854812
1 changed files with 5 additions and 0 deletions
|
@ -361,6 +361,11 @@ void modifyColor(const T &modifier) {
|
|||
TPaletteHandle *paletteHandle =
|
||||
TApp::instance()->getPaletteController()->getCurrentLevelPalette();
|
||||
TPaletteP palette = paletteHandle->getPalette();
|
||||
if (!palette) {
|
||||
QMessageBox::warning(0, QObject::tr("Error"),
|
||||
QObject::tr("No Palette loaded."));
|
||||
return;
|
||||
}
|
||||
if (palette->isLocked()) {
|
||||
QMessageBox::warning(0, QObject::tr("Warning"),
|
||||
QObject::tr("Palette is locked."));
|
||||
|
|
Loading…
Reference in a new issue