Ver Fonte

Properly assign curve path <-> morph curve mappings

BearishSun há 9 anos atrás
pai
commit
91cfbfe9db
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Source/BansheeCore/Source/BsAnimationClip.cpp

+ 2 - 2
Source/BansheeCore/Source/BsAnimationClip.cpp

@@ -167,7 +167,7 @@ namespace BansheeEngine
 				if (iterFind == mNameMapping.end())
 				if (iterFind == mNameMapping.end())
 				{
 				{
 					UINT32* indices = mNameMapping[entry.name];
 					UINT32* indices = mNameMapping[entry.name];
-					memset(indices, -1, sizeof(UINT32) * 4);
+					memset(indices, -1, sizeof(UINT32) * (int)CurveType::Count);
 
 
 					indices[typeIdx] = i;
 					indices[typeIdx] = i;
 				}
 				}
@@ -199,7 +199,7 @@ namespace BansheeEngine
 				if (iterFind == mNameMapping.end())
 				if (iterFind == mNameMapping.end())
 				{
 				{
 					UINT32* indices = mNameMapping[entry.name];
 					UINT32* indices = mNameMapping[entry.name];
-					memset(indices, -1, sizeof(UINT32) * 4);
+					memset(indices, -1, sizeof(UINT32) * (int)CurveType::Count);
 
 
 					indices[typeIdx] = i;
 					indices[typeIdx] = i;
 				}
 				}