Cleaning up NvCloth gem. Removed any reference to LmbrCentral and legacy renderer since now it uses Atom. (#154)
- Removed any usage of LmbCentral and legacy renderer from NvCloth gem. - Cloth rule can only be added to Mesh groups, not allowed in Actor groups anymore. - Removed ActorAssetHelper since actors now share the mesh model format and therefore they also use MeshAssetHelper. - Updated NvCloth gem.json file with the fields from the template. - Updated cloth chicken asset to not convert axis.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
#include <SceneAPI/SceneCore/Containers/Utilities/Filters.h>
|
||||
|
||||
#include <SceneAPI/SceneCore/DataTypes/Groups/IMeshGroup.h>
|
||||
#include <EMotionFX/Pipeline/SceneAPIExt/Groups/IActorGroup.h>
|
||||
|
||||
#include <Pipeline/SceneAPIExt/ClothRuleBehavior.h>
|
||||
#include <Pipeline/SceneAPIExt/ClothRule.h>
|
||||
@@ -100,9 +99,8 @@ namespace NvCloth
|
||||
|
||||
bool ClothRuleBehavior::IsValidGroupType(const AZ::SceneAPI::DataTypes::ISceneNodeGroup& group) const
|
||||
{
|
||||
// Cloth rules are available in Mesh and Actor Groups
|
||||
return group.RTTI_IsTypeOf(AZ::SceneAPI::DataTypes::IMeshGroup::TYPEINFO_Uuid())
|
||||
|| group.RTTI_IsTypeOf(EMotionFX::Pipeline::Group::IActorGroup::TYPEINFO_Uuid());
|
||||
// Cloth rules are available in Mesh Groups
|
||||
return group.RTTI_IsTypeOf(AZ::SceneAPI::DataTypes::IMeshGroup::TYPEINFO_Uuid());
|
||||
}
|
||||
|
||||
bool ClothRuleBehavior::UpdateClothRules(AZ::SceneAPI::Containers::Scene& scene)
|
||||
|
||||
Reference in New Issue
Block a user