Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save FirstPerson values on GUI correctly #217

Merged
merged 3 commits into from
Mar 13, 2019
Merged

Conversation

yutopp
Copy link
Contributor

@yutopp yutopp commented Mar 11, 2019

Fix #208.

@yutopp yutopp added this to the v0.52.0 milestone Mar 11, 2019
@yutopp yutopp changed the title Fix #208 Save FirstPerson values on GUI correctly Mar 11, 2019
@yutopp yutopp requested a review from hiroj March 13, 2019 06:25
if (EditorGUI.EndChangeCheck())
{
Undo.RecordObject(component, "Changed FirstPerson");
}
component.FirstPersonOffset = head.worldToLocalMatrix.MultiplyPoint(worldOffset);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作に問題は無いですが、この処理はifの中に入れたほうが良いかもです

Copy link
Contributor Author

@yutopp yutopp Mar 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど確かに。 
0c147dd で対応しました。

@hiroj hiroj merged commit fbd3cc4 into master Mar 13, 2019
@yutopp yutopp deleted the fix/save_first_person branch March 13, 2019 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants