specklesystems / speckle-unity

AEC Interoperability for Unity through Speckle
https://speckle.systems/tag/unity/
Apache License 2.0
55 stars 20 forks source link

🐞 Check if a material has already been converted #79

Closed bimgeek closed 1 year ago

bimgeek commented 1 year ago

Description

While editing the materials of the models coming from Revit, a faulty behavior is encountered. Unity connector successfully generates Material Assets on receive, but when these assets are modified, only some of the items with edited material get affected. Rest stays with the old material definition. The image below is an example of this.

I'm not sure if this only occurs on models from Revit.

Expected Behaviour

When material assets are modified, all items with the same material should be affected by this change.

Streams Used

https://latest.speckle.dev/streams/8e2e6ad4f3/commits/68946ac902

Steps to reproduce

  1. Receive the above stream via Unity connector. Make sure to check “Generate Material Assets” option.

  2. Change the color of one of the generated material assets, for example Grass material, to red.

    image

  3. Although there were multiple floors with Grass material applied, only one turned red. The remaining two still use the old definition. See👇:

    image