/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Assets/EditorPluginAssets/PropertyAnimAsset/PropertyAnimObjectManager.cpp
39 строк
1 KB
Sanakan8472
Convert ezToolsFoundation to use ezStringView instead of const char* (#1071)
30 сен 2023, 17:40
Не верифицирован
30 сен 2023, 17:40
123eb05
Код
Авторство
О чём код?
#include <EditorPluginAssets/EditorPluginAssetsPCH.h> #include <EditorPluginAssets/PropertyAnimAsset/PropertyAnimObjectManager.h> ezPropertyAnimObjectManager::ezPropertyAnimObjectManager() = default; ezPropertyAnimObjectManager::~ezPropertyAnimObjectManager() = default; ezStatus ezPropertyAnimObjectManager::InternalCanAdd( const ezRTTI* pRtti, const ezDocumentObject* pParent, ezStringView sParentProperty, const ezVariant& index) const { if (m_bAllowStructureChangeOnTemporaries) return ezStatus(EZ_SUCCESS); if (IsTemporary(pParent, sParentProperty)) return ezStatus("The structure of the context cannot be animated."); return ezStatus(EZ_SUCCESS); } ezStatus ezPropertyAnimObjectManager::InternalCanRemove(const ezDocumentObject* pObject) const { if (m_bAllowStructureChangeOnTemporaries) return ezStatus(EZ_SUCCESS); if (IsTemporary(pObject)) return ezStatus("The structure of the context cannot be animated."); return ezStatus(EZ_SUCCESS); } ezStatus ezPropertyAnimObjectManager::InternalCanMove( const ezDocumentObject* pObject, const ezDocumentObject* pNewParent, ezStringView sParentProperty, const ezVariant& index) const { if (m_bAllowStructureChangeOnTemporaries) return ezStatus(EZ_SUCCESS); if (IsTemporary(pObject)) return ezStatus("The structure of the context cannot be animated."); return ezStatus(EZ_SUCCESS); }