-
Notifications
You must be signed in to change notification settings - Fork 412
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
[exporter] asset.generator を修正 #2171
Conversation
現状のリポジトリとパッケージの構成名の関係から、どうするのが望ましいのかちょっと考えてからレビューをする
|
この PullReq で行いたいことは generator の出力値を
という認識で合ってますよね? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
やりたいことの主旨は LGTM です。
- glTFAssets のデフォルト値だと Importer に副作用があるので Exporter で解決してほしい
- UniGLTF が VRM という名前を知っている状況が割れ窓的なので、VRM という名前を登場させたくない
と考えます。
@@ -6,7 +6,7 @@ namespace UniGLTF | |||
[Serializable] | |||
public class glTFAssets | |||
{ | |||
public string generator; | |||
public string generator = $"UniVRM-{UniVrmPackageVersion.VERSION}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このクラスは glTF 定義を表すものですし、Importer でも参照される定義なので
デフォルト値として UniVRM の知識を入れてしまうのは良くないと考えます。
たとえば generator の定義がない glTF ファイルを読み込んだときに、この値が入ってしまいます。
したがって Exporter 実装で代入する方が望ましいと考えます。
{ | ||
public static partial class VRMVersion | ||
public static partial class UniVrmPackageVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここで言う "UniVRM" は com.vrmc.univrm
ではなく UniVRM(リポジトリ名)
であることは分かるのですが……
UniVRM
という名前は含めたくない気持ちはけっこうあります。
これが存在しているだけで「UniGLTF は UniVRM を知っていていいんだな」という割れ窓になってしまう気持ちがあります。
PackageVersion
でいいんじゃないかなあ…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixed #1896
バージョン番号の定数を vrm から unigltf に移動。
名前も vrm じゃなくて
UniVRM
のパッケージ番号であることを明示した。