Fix a bug that made first part enabled curve wrong,
This commit is contained in:
parent
c8810cbaa2
commit
dc2324af95
|
@ -28,7 +28,8 @@ namespace Bread2Unity
|
||||||
{
|
{
|
||||||
Keyframe lastKey = keys.LastOrDefault();
|
Keyframe lastKey = keys.LastOrDefault();
|
||||||
|
|
||||||
base.AddKey(time, keys.Length > 0 ? lastKey.value : 1);
|
base.AddKey(new Keyframe(time, keys.Length > 0 ? lastKey.value : 1, float.PositiveInfinity,
|
||||||
|
float.PositiveInfinity));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,7 +194,7 @@ namespace Bread2Unity
|
||||||
for (int i = 0; i < sprite.parts.Count && setOfZIndexes.Count < 2; i++)
|
for (int i = 0; i < sprite.parts.Count && setOfZIndexes.Count < 2; i++)
|
||||||
{
|
{
|
||||||
var part = sprite.parts[i];
|
var part = sprite.parts[i];
|
||||||
if(bccadPrefab.RegionToChild[part.RegionIndex] != child)
|
if (bccadPrefab.RegionToChild[part.RegionIndex] != child)
|
||||||
continue;
|
continue;
|
||||||
setOfZIndexes.Add(i);
|
setOfZIndexes.Add(i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,5 +24,5 @@ Rhythm Heaven animation to Unity animation converter
|
||||||
- [ ] write a normal readme
|
- [ ] write a normal readme
|
||||||
|
|
||||||
### Bugs
|
### Bugs
|
||||||
- [ ] fix camera taking pictures
|
- [X] fix camera taking pictures
|
||||||
- [ ] mices are on top of frame (photo 16)
|
- [X] mices are on top of frame (photo 16)
|
Loading…
Reference in a new issue