Fixed cloth automated tests. (#1400)
Bone transforms buffer is not valid when using Null renderer, which caused the test to fail since it reported an error and ultimately crashing as well. For now it's been worked around by checking the pointer is valid and not printing the error when null renderer is used, a task for the Atom team has been created to fix this properly in the future (ATOM-15807).
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include <EMotionFX/Source/Node.h>
|
||||
#include <MCore/Source/AzCoreConversions.h>
|
||||
|
||||
#include <Atom/RHI/RHIUtils.h>
|
||||
|
||||
#include <Atom/RPI.Public/AuxGeom/AuxGeomDraw.h>
|
||||
#include <Atom/RPI.Public/AuxGeom/AuxGeomFeatureProcessorInterface.h>
|
||||
#include <Atom/RPI.Public/Scene.h>
|
||||
@@ -461,7 +463,7 @@ namespace AZ
|
||||
if (m_skinnedMeshInputBuffers)
|
||||
{
|
||||
m_boneTransforms = CreateBoneTransformBufferFromActorInstance(m_actorInstance, GetSkinningMethod());
|
||||
AZ_Error("AtomActorInstance", m_boneTransforms, "Failed to create bone transform buffer.");
|
||||
AZ_Error("AtomActorInstance", m_boneTransforms || AZ::RHI::IsNullRenderer(), "Failed to create bone transform buffer.");
|
||||
|
||||
// If the instance is created before the default materials on the model have finished loading, the mesh feature processor will ignore it.
|
||||
// Wait for them all to be ready before creating the instance
|
||||
|
||||
Reference in New Issue
Block a user