diff --git a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.cpp b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.cpp index 5c693f5ccd..6dfa2e391e 100644 --- a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.cpp +++ b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.cpp @@ -187,7 +187,7 @@ namespace AZ materialAssignmentId); previewRenderer->AddCaptureRequest( - { m_materialPreviewResolution, + { MaterialPreviewResolution, AZStd::make_shared( previewRenderer->GetScene(), previewRenderer->GetView(), previewRenderer->GetEntityContextId(), AZ::RPI::AssetUtils::GetAssetIdForProductPath(DefaultModelPath), materialAssetId, @@ -301,7 +301,7 @@ namespace AZ } } - if (materialPreviewCount > m_materialPreviewLimit) + if (materialPreviewCount > MaterialPreviewLimit) { m_materialPreviews.clear(); } diff --git a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.h b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.h index e5778b1b9c..38e12a7c4e 100644 --- a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.h +++ b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Material/EditorMaterialSystemComponent.h @@ -78,8 +78,8 @@ namespace AZ QAction* m_openMaterialEditorAction = nullptr; AZStd::unique_ptr m_materialBrowserInteractions; AZStd::unordered_map> m_materialPreviews; - static constexpr const size_t m_materialPreviewLimit = 100; - static constexpr const int m_materialPreviewResolution = 128; + static constexpr const size_t MaterialPreviewLimit = 100; + static constexpr const int MaterialPreviewResolution = 128; }; } // namespace Render } // namespace AZ