mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixed #390
This commit is contained in:
parent
59be547a82
commit
cefdf08873
@ -463,13 +463,16 @@ namespace AssetStudio
|
|||||||
{
|
{
|
||||||
meshR.m_GameObject.TryGet(out var m_GameObject);
|
meshR.m_GameObject.TryGet(out var m_GameObject);
|
||||||
var frame = RootFrame.FindChild(m_GameObject.m_Name);
|
var frame = RootFrame.FindChild(m_GameObject.m_Name);
|
||||||
frame.LocalPosition = RootFrame.LocalPosition;
|
if (frame != null)
|
||||||
frame.LocalRotation = RootFrame.LocalRotation;
|
|
||||||
while (frame.Parent != null)
|
|
||||||
{
|
{
|
||||||
frame = frame.Parent;
|
|
||||||
frame.LocalPosition = RootFrame.LocalPosition;
|
frame.LocalPosition = RootFrame.LocalPosition;
|
||||||
frame.LocalRotation = RootFrame.LocalRotation;
|
frame.LocalRotation = RootFrame.LocalRotation;
|
||||||
|
while (frame.Parent != null)
|
||||||
|
{
|
||||||
|
frame = frame.Parent;
|
||||||
|
frame.LocalPosition = RootFrame.LocalPosition;
|
||||||
|
frame.LocalRotation = RootFrame.LocalRotation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user