Integrating github/staging through commit ab87ed9
This commit is contained in:
@@ -173,7 +173,6 @@ void CComponentEntityObject::AssignEntity(AZ::Entity* entity, bool destroyOld)
|
||||
entity->FindComponent<AzToolsFramework::Components::TransformComponent>();
|
||||
if (transformComponent)
|
||||
{
|
||||
const AZ::Transform& worldTransform = transformComponent->GetWorldTM();
|
||||
OnTransformChanged(transformComponent->GetLocalTM(), transformComponent->GetWorldTM());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -699,11 +699,14 @@ void SandboxIntegrationManager::PopulateEditorGlobalContextMenu(QMenu* menu, con
|
||||
}
|
||||
}
|
||||
|
||||
action = menu->addAction(QObject::tr("Delete"));
|
||||
QObject::connect(action, &QAction::triggered, action, [this] { ContextMenu_DeleteSelected(); });
|
||||
if (selected.size() == 0)
|
||||
if (!prefabSystemEnabled)
|
||||
{
|
||||
action->setDisabled(true);
|
||||
action = menu->addAction(QObject::tr("Delete"));
|
||||
QObject::connect(action, &QAction::triggered, action, [this] { ContextMenu_DeleteSelected(); });
|
||||
if (selected.size() == 0)
|
||||
{
|
||||
action->setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
@@ -963,7 +963,6 @@ bool OutlinerListModel::DropMimeDataAssets(const QMimeData* data, [[maybe_unused
|
||||
for (const ComponentAssetPair& pair : componentAssetPairs)
|
||||
{
|
||||
const AZ::TypeId& componentType = pair.first;
|
||||
const AZ::Data::AssetId& assetId = pair.second;
|
||||
|
||||
componentsToAdd.push_back(componentType);
|
||||
}
|
||||
@@ -988,7 +987,6 @@ bool OutlinerListModel::DropMimeDataAssets(const QMimeData* data, [[maybe_unused
|
||||
}
|
||||
|
||||
// Assign asset associated with each created component.
|
||||
const AZ::Entity::ComponentArrayType& componentsAdded = addComponentsOutcome.GetValue()[targetEntityId].m_componentsAdded;
|
||||
for (const ComponentAssetPair& pair : componentAssetPairs)
|
||||
{
|
||||
const AZ::TypeId& componentType = pair.first;
|
||||
|
||||
Reference in New Issue
Block a user