Improvements. You can now call SetDecalMaterial() with any permutation and it works as expected
Signed-off-by: mrieggeramzn <mriegger@amazon.com>
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ namespace AZ
|
||||
{
|
||||
DecalNotificationBus::Event(m_entityId, &DecalNotifications::OnMaterialChanged, m_configuration.m_materialAsset);
|
||||
|
||||
if (m_featureProcessor && m_configuration.m_materialAsset.GetId().IsValid())
|
||||
if (m_featureProcessor)
|
||||
{
|
||||
m_featureProcessor->SetDecalMaterial(m_handle, m_configuration.m_materialAsset.GetId());
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace AZ
|
||||
|
||||
u32 EditorDecalComponent::OnConfigurationChanged()
|
||||
{
|
||||
BaseClass::OnConfigurationChanged();
|
||||
m_controller.ConfigurationChanged();
|
||||
return Edit::PropertyRefreshLevels::AttributesAndValues;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user