Browse Source

[c] Fixed transform constraint binary reading, didn't read local/relative properties

badlogic 8 years ago
parent
commit
023bec462f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spine-c/spine-c/src/spine/SkeletonBinary.c

+ 2 - 0
spine-c/spine-c/src/spine/SkeletonBinary.c

@@ -950,6 +950,8 @@ spSkeletonData* spSkeletonBinary_readSkeletonData (spSkeletonBinary* self, const
 		for (ii = 0; ii < data->bonesCount; ++ii)
 			data->bones[ii] = skeletonData->bones[readVarint(input, 1)];
 		data->target = skeletonData->bones[readVarint(input, 1)];
+		data->local = readBoolean(input);
+		data->relative = readBoolean(input);
 		data->offsetRotation = readFloat(input);
 		data->offsetX = readFloat(input) * self->scale;
 		data->offsetY = readFloat(input) * self->scale;