Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -1556,11 +1556,8 @@ void CObjectManager::DeleteSelection()
|
||||
// Make sure to unlock selection.
|
||||
GetIEditor()->LockSelection(false);
|
||||
|
||||
GUID bID = GUID_NULL;
|
||||
|
||||
int i;
|
||||
CSelectionGroup objects;
|
||||
for (i = 0; i < m_currSelection->GetCount(); i++)
|
||||
for (int i = 0; i < m_currSelection->GetCount(); i++)
|
||||
{
|
||||
// Check condition(s) if object could be deleted
|
||||
if (!IsObjectDeletionAllowed(m_currSelection->GetObject(i)))
|
||||
@@ -2900,17 +2897,6 @@ namespace
|
||||
return AZ::Vector3(position.x, position.y, position.z);
|
||||
}
|
||||
|
||||
AZ::Vector3 PyGetWorldObjectPosition(const char* pName)
|
||||
{
|
||||
CBaseObject* pObject = GetIEditor()->GetObjectManager()->FindObject(pName);
|
||||
if (!pObject)
|
||||
{
|
||||
throw std::logic_error((QString("\"") + pName + "\" is an invalid object.").toUtf8().data());
|
||||
}
|
||||
Vec3 position = pObject->GetWorldPos();
|
||||
return AZ::Vector3(position.x, position.y, position.z);
|
||||
}
|
||||
|
||||
void PySetObjectPosition(const char* pName, float fValueX, float fValueY, float fValueZ)
|
||||
{
|
||||
CBaseObject* pObject = GetIEditor()->GetObjectManager()->FindObject(pName);
|
||||
|
||||
Reference in New Issue
Block a user