PR feedback
This commit is contained in:
+1
-5
@@ -172,10 +172,6 @@ namespace AZ
|
||||
{
|
||||
EditorMaterialSystemComponentRequestBus::Broadcast(&EditorMaterialSystemComponentRequestBus::Events::OpenInMaterialEditor, sourcePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorMaterialSystemComponentRequestBus::Broadcast(&EditorMaterialSystemComponentRequestBus::Events::OpenInMaterialEditor, "");
|
||||
}
|
||||
}
|
||||
|
||||
void EditorMaterialComponentSlot::Clear()
|
||||
@@ -277,7 +273,7 @@ namespace AZ
|
||||
|
||||
QAction* action = nullptr;
|
||||
|
||||
menu.addAction("Open Material Editor", [this]() { OpenMaterialEditor(); });
|
||||
menu.addAction("Open Material Editor", [this]() { EditorMaterialSystemComponentRequestBus::Broadcast(&EditorMaterialSystemComponentRequestBus::Events::OpenInMaterialEditor, ""); });
|
||||
|
||||
action = menu.addAction("Clear", [this]() { Clear(); });
|
||||
action->setEnabled(m_materialAsset.GetId().IsValid() || !m_propertyOverrides.empty() || !m_matModUvOverrides.empty());
|
||||
|
||||
Reference in New Issue
Block a user