Explorar el Código

Properly assign curve path <-> morph curve mappings

BearishSun hace 9 años
padre
commit
91cfbfe9db
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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())
 				{
 					UINT32* indices = mNameMapping[entry.name];
-					memset(indices, -1, sizeof(UINT32) * 4);
+					memset(indices, -1, sizeof(UINT32) * (int)CurveType::Count);
 
 					indices[typeIdx] = i;
 				}
@@ -199,7 +199,7 @@ namespace BansheeEngine
 				if (iterFind == mNameMapping.end())
 				{
 					UINT32* indices = mNameMapping[entry.name];
-					memset(indices, -1, sizeof(UINT32) * 4);
+					memset(indices, -1, sizeof(UINT32) * (int)CurveType::Count);
 
 					indices[typeIdx] = i;
 				}