Check if pace.Editor panel is valid

This commit is contained in:
Redox 2023-09-21 21:44:26 +02:00
parent 653f33c579
commit 65291ffde0
No known key found for this signature in database
GPG Key ID: C10A433A95068388

View File

@ -119,7 +119,9 @@ function pace.OnPartSelected(part, is_selecting)
pace.SetViewPart(part)
pace.Editor:InvalidateLayout()
if pace.Editor:IsValid() then
pace.Editor:InvalidateLayout()
end
pace.SafeRemoveSpecialPanel()