Vertex color incorrectly displays in material view for meshes that share a material and do not have a vertex color layer after entering and leaving edit mode #53733

Closed
opened 2018-01-08 20:01:44 +01:00 by Henrik Berglund · 8 comments

System Information
Win8, GTX1070

Blender Version
Broken: 2.79 (8760725) and likely before

Short description of error

Vertex color incorrectly displays in material view (cycles) for meshes that share a material and do not have a vertex color layer. This is in material view and using a material that shows the vertex color (so for example Attribute Col into a shader Color input). So if you've got mesh A with a vertex color layer using material Z and mesh B without a vertex color layer using the same material Z, mesh B will show in the 3dview as having the same color as mesh A even if mesh B doesn't actually have a vertex color layer. I would expect the Col input in the material to not have any effect if the mesh doesn't actually have a vertex color layer.

Note that you need to enter and exit edit mode in order for the color to incorrectly update on the additional mesh.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. Add two cubes.
  2. Create a new material using vertex color. For example Attribute Col into a Diffuse BSDF Color input. If there's no vertex color layer add it for one of the cubes only.
  3. Assign the new material to the two meshes.
  4. Enter material shading viewport mode.
  5. For the mesh with a vertex color layer, enter vertex paint mode and paint on the mesh with a color you can see easily (like blue).
  6. Enter object mode. Notice that the other mesh stays the same color.
  7. Enter edit mode for the mesh with a vertex color layer (the one you painted) and go back to object mode again. Notice that the other mesh now incorrectly changes color.

Expected behavior at 7: The other mesh should stay the same color as before because it doesn't have a vertex color layer and thus shouldn't be affected by any other meshes' vertex colors.

bug_vertex_color_incorrectly_displays_for_meshes_without_vertex_color_layer.blend

**System Information** Win8, GTX1070 **Blender Version** Broken: 2.79 (8760725) and likely before **Short description of error** Vertex color incorrectly displays in material view (cycles) for meshes that share a material and do not have a vertex color layer. This is in material view and using a material that shows the vertex color (so for example Attribute Col into a shader Color input). So if you've got mesh A with a vertex color layer using material Z and mesh B without a vertex color layer using the same material Z, mesh B will show in the 3dview as having the same color as mesh A even if mesh B doesn't actually have a vertex color layer. I would expect the Col input in the material to not have any effect if the mesh doesn't actually have a vertex color layer. Note that you need to enter and exit edit mode in order for the color to incorrectly update on the additional mesh. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps 1. Add two cubes. 2. Create a new material using vertex color. For example Attribute Col into a Diffuse BSDF Color input. If there's no vertex color layer add it for one of the cubes only. 3. Assign the new material to the two meshes. 4. Enter material shading viewport mode. 5. For the mesh with a vertex color layer, enter vertex paint mode and paint on the mesh with a color you can see easily (like blue). 6. Enter object mode. Notice that the other mesh stays the same color. 7. Enter edit mode for the mesh with a vertex color layer (the one you painted) and go back to object mode again. Notice that the other mesh now incorrectly changes color. Expected behavior at 7: The other mesh should stay the same color as before because it doesn't have a vertex color layer and thus shouldn't be affected by any other meshes' vertex colors. [bug_vertex_color_incorrectly_displays_for_meshes_without_vertex_color_layer.blend](https://archive.blender.org/developer/F1747581/bug_vertex_color_incorrectly_displays_for_meshes_without_vertex_color_layer.blend)
Author
Member

Added subscriber: @cyaoeu

Added subscriber: @cyaoeu
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Can confirm this, this is odd, it doesnt even have to be a shared Material in certain cases, looking more closely now...

Can confirm this, this is odd, it doesnt even have to be a shared Material in certain cases, looking more closely now...
Sergey Sharybin was assigned by Philipp Oeser 2018-01-20 16:46:16 +01:00
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

afaics, this was an issue since it was added in a830280, cant find the issue within a reasonable amount of time, assigning to original author @Sergey instead...
not sure if this a high priority, good news is: wont be an issue in 2.8 (e.g. eevee handles this flawlessly)

afaics, this was an issue since it was added in a830280, cant find the issue within a reasonable amount of time, assigning to original author @Sergey instead... not sure if this a high priority, good news is: wont be an issue in 2.8 (e.g. eevee handles this flawlessly)
Author
Member

If it works fine in 2.8 it's definitely not high priority. An easy workaround is to just add vertex color layers to everything because this bug only affects meshes that don't have vertex color layers.

If it works fine in 2.8 it's definitely not high priority. An easy workaround is to just add vertex color layers to everything because this bug only affects meshes that don't have vertex color layers.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This isn't specific to vertex color, same thing will happen for UV maps as well.

There is something changed back in 2015, but bisecting it now is somewhat pointless. The change is most likely in DerivedMesh drawing part, which is being fully removed in blender2.8.

Would rather spend time on making 2.8 production ready!

So thanks for the report, but it will only be fixed when 2.8 is merged to master.

This isn't specific to vertex color, same thing will happen for UV maps as well. There is something changed back in 2015, but bisecting it now is somewhat pointless. The change is most likely in DerivedMesh drawing part, which is being fully removed in blender2.8. Would rather spend time on making 2.8 production ready! So thanks for the report, but it will only be fixed when 2.8 is merged to master.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#53733
No description provided.