Fixed transform constraints.

This commit is contained in:
pharan 2016-02-18 12:21:58 +08:00
parent 3a7a4a642b
commit f018d2451a
2 changed files with 24 additions and 20 deletions

View File

@ -157,7 +157,7 @@ namespace Spine {
String boneName = (String)transformMap["bone"];
transformConstraintData.bone = skeletonData.FindBone(boneName);
if (transformConstraintData.target == null) throw new Exception("Bone not found: " + boneName);
if (transformConstraintData.bone == null) throw new Exception("Bone not found: " + boneName);
String targetName = (String)transformMap["target"];
transformConstraintData.target = skeletonData.FindBone(targetName);

File diff suppressed because one or more lines are too long