Fixing missing preview in texture settings
This commit is contained in:
@@ -109,14 +109,7 @@ namespace ImageProcessingAtom
|
||||
while (!m_process->IsFinished() && !IsJobCancelled())
|
||||
{
|
||||
m_process->UpdateProcess();
|
||||
if (m_isPreview)
|
||||
{
|
||||
m_output->SetProgress(m_process->GetProgress() / static_cast<float>(m_previewProcessStep));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_output->SetProgress(m_process->GetProgress());
|
||||
}
|
||||
m_output->SetProgress(m_process->GetProgress() / static_cast<float>(m_previewProcessStep));
|
||||
}
|
||||
|
||||
IImageObjectPtr outputImage = m_process->GetOutputImage();
|
||||
@@ -125,7 +118,7 @@ namespace ImageProcessingAtom
|
||||
m_output->SetOutputImage(outputImage, ImageConvertOutput::Base);
|
||||
m_output->SetOutputImage(outputImageAlpha, ImageConvertOutput::Alpha);
|
||||
|
||||
if (m_isPreview && !IsJobCancelled())
|
||||
if (!IsJobCancelled())
|
||||
{
|
||||
// For preview, combine image output with alpha if any
|
||||
m_output->SetProgress(1.0f / static_cast<float>(m_previewProcessStep));
|
||||
|
||||
Reference in New Issue
Block a user