Repeated glb file updates in resources cause materials to be assigned incorrectly

オープン
#3,363 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #3366 @Kreblc3428 による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
game-dev

調査の方向性

まず添付された minrepro.zip を開き、Stride 4.4 beta 5 FPS テンプレートで一連の手順を再現します。2 つの v1.glb ファイルをインポートし、置換のたびにシーンを更新して、マテリアルを比較します。繰り返し置換した後もすべてのキューブに正しいマテリアルが設定されていれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

area-Asset area-GameStudio bug

Release Type: Official Release/GitHub (please choose appropriate option)
stride 4.4 beta 5
Version: Version number and/or git branch

Platform(s): Does the problem occur on Windows, Android...?

Describe the bug
A clear and concise description of what the bug is.

After a few edits to a resource glb file it will cause materials to be assigned incorrectly, seems to be related to the number of materials in a file

To Reproduce
Steps to reproduce the behavior:

  1. Using stride 4.4 beta 5 create a fps template project
  2. import \1\v1.glb into the project and drag it into the scene
  3. notice it appears correct
  4. replace the resource file with \2\v1.glb and refresh the scene
  5. notice it appears correct
  6. replace the resource file with \1\v1.glb and refresh the scene
  7. the last cube will have an incorrect material assigned.

Expected behavior
A clear and concise description of what you expected to happen.

I would expect the materials to be assigned correctly

minrepro.zip
Image

Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)

Log and callstacks
If any, please attach here any log or callstack (preferably in a .txt file using GitHub drag and drop)

Additional context
Add any other context about the problem here.

主要言語
C#
スター
8k
フォーク
1.2k
平均マージ
2日 7時間
マージ済み PR(30日)
316

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stride3d/stride のほかの issue

stride3d/stride の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。