other gems
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -955,14 +955,14 @@ namespace LandscapeCanvasEditor
|
||||
|
||||
auto redoAction = new QAction(QObject::tr("&Redo"), this);
|
||||
redoAction->setShortcut(AzQtComponents::RedoKeySequence);
|
||||
QObject::connect(redoAction, &QAction::triggered, [this] {
|
||||
QObject::connect(redoAction, &QAction::triggered, [] {
|
||||
GetLegacyEditor()->Redo();
|
||||
});
|
||||
menu->insertAction(separatorAction, redoAction);
|
||||
|
||||
auto undoAction = new QAction(QObject::tr("&Undo"), this);
|
||||
undoAction->setShortcut(QKeySequence::Undo);
|
||||
QObject::connect(undoAction, &QAction::triggered, [this] {
|
||||
QObject::connect(undoAction, &QAction::triggered, [] {
|
||||
GetLegacyEditor()->Undo();
|
||||
});
|
||||
menu->insertAction(redoAction, undoAction);
|
||||
@@ -2852,7 +2852,7 @@ namespace LandscapeCanvasEditor
|
||||
// For any node with an Entity Name slot, we need to replace the string property display with a read-only version
|
||||
// instead until we have support for listening for GraphModel slot value changes. We need to delay this because
|
||||
// when the node is added, the slots haven't been added to the element map yet.
|
||||
QTimer::singleShot(0, [this, node, graphId]() {
|
||||
QTimer::singleShot(0, [node, graphId]() {
|
||||
GraphModel::SlotPtr slot = node->GetSlot(LandscapeCanvas::ENTITY_NAME_SLOT_ID);
|
||||
if (slot)
|
||||
{
|
||||
@@ -2976,7 +2976,7 @@ namespace LandscapeCanvasEditor
|
||||
AzToolsFramework::EntityIdList vegetationAreaIds;
|
||||
m_serializeContext->EnumerateObject(component,
|
||||
// beginElemCB
|
||||
[this, &previewEntityId, &inboundShapeEntityId, &gradientSamplerIds, &vegetationAreaIds](void *instance, [[maybe_unused]] const AZ::SerializeContext::ClassData *classData, const AZ::SerializeContext::ClassElement *classElement) -> bool
|
||||
[&previewEntityId, &inboundShapeEntityId, &gradientSamplerIds, &vegetationAreaIds](void *instance, [[maybe_unused]] const AZ::SerializeContext::ClassData *classData, const AZ::SerializeContext::ClassElement *classElement) -> bool
|
||||
{
|
||||
if (classElement && (classElement->m_typeId == azrtti_typeid<AZ::EntityId>()))
|
||||
{
|
||||
|
||||
@@ -12,9 +12,8 @@
|
||||
|
||||
namespace DependencyBuilder
|
||||
{
|
||||
DependencyBuilderWorker::DependencyBuilderWorker(AZStd::string jobKey, bool critical)
|
||||
DependencyBuilderWorker::DependencyBuilderWorker(AZStd::string jobKey, [[maybe_unused]] bool critical)
|
||||
: m_jobKey(jobKey)
|
||||
, m_critical(critical)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace DependencyBuilder
|
||||
private:
|
||||
|
||||
AZStd::string m_jobKey;
|
||||
bool m_critical = false;
|
||||
bool m_isShuttingDown = false;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -764,7 +764,7 @@ namespace ComponentHelpers
|
||||
QObject::connect(action,
|
||||
&QAction::triggered,
|
||||
hierarchy,
|
||||
[serializeContext, hierarchy, componentClass, items]([[maybe_unused]] bool checked)
|
||||
[hierarchy, componentClass, items]([[maybe_unused]] bool checked)
|
||||
{
|
||||
EBUS_EVENT(UiEditorInternalNotificationBus, OnBeginUndoableEntitiesChange);
|
||||
|
||||
|
||||
@@ -562,7 +562,7 @@ namespace SliceFavorites
|
||||
// Rebuild the menu from the current tree
|
||||
m_favoritesMenu->clear();
|
||||
|
||||
m_favoritesMenu->addAction(QIcon(":/Icons/SliceFavorite_Icon_Manage"), "Manage favorites...", m_favoritesMenu.get(), [this]()
|
||||
m_favoritesMenu->addAction(QIcon(":/Icons/SliceFavorite_Icon_Manage"), "Manage favorites...", m_favoritesMenu.get(), []()
|
||||
{
|
||||
AzToolsFramework::OpenViewPane(SliceFavorites::ManageSliceFavorites);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user