Search Unity

Bug PB5: Subdividing edges changes face material

Discussion in 'World Building' started by dgoyette, Dec 14, 2020.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    I've been seeing this since upgrading to PB 5. Here's an edge I'm going to subdivide in order to add vertices at the two corners of the tile wall:

    upload_2020-12-14_14-6-20.png

    I select the edge, and press "Subdivide Edges", and this is the result:

    upload_2020-12-14_14-7-40.png

    Simply subdividing the edge changes the material on the adjacent face. It's worth pointing out that the material that got assign is material [0] in the material list for the renderer. I don't know if that's a coincidence, or whether something is falling back on assigning material 0 to things.

    Here's another example. Prior to subdividing that edge:

    upload_2020-12-14_14-9-15.png

    And after subdividing:

    upload_2020-12-14_14-9-41.png
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    This is still an issue in the new 5.0.0-pre.10 version. (Though nice work on this new release, as I think it fixed all the other bugs I had noticed in earlier 5.0 previews. :) )
     
    kaarrrllll likes this.
  3. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552
    Definitely looks like a bug, could you file a bug report please?
     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    Submitted as #1311258, with repro project.

    Quick repro: Create a PB cube, put at least two materials on it, then subdivide any edge between faces of different materials. One of the faces will have its material reset to materials[0].
     
    kaarrrllll likes this.