B-Mesh: Issue with Weight Painting #30266

Closed
opened 2012-02-19 22:08:50 +01:00 by Thomas Dinges · 6 comments

Relates to: #30234

%%%Windows 7 x64, SVN 44262, nvidia GT540

  1. Open Blender, go into Weight Paint Mode
    The colors are black and grey and you can't draw weights.

  2. The Issue is fixed by going into Vertex Paint Mode and then back to Weight Paint mode, then all is normal%%%

**Relates to**: #30234 %%%Windows 7 x64, SVN 44262, nvidia GT540 1) Open Blender, go into Weight Paint Mode The colors are black and grey and you can't draw weights. 2) The Issue is fixed by going into Vertex Paint Mode and then back to Weight Paint mode, then all is normal%%%
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'

%%%This is a display bug: creating the DerivedMesh updates CD_WEIGHT_MLOOPCOL values in DM_update_weight_mcol(), but CDDM draws using tesselated faces. If the finaldm produced in mesh_calc_modifiers() does not have tessfaces, then recalcTesselation() is called and the tesselated colors (CD_WEIGHT_MCOL) are copied over from the loop colors. If the finaldm is already tesselated, CD_WEIGHT_MCOL is never updated.

Couple ways to solve this: can either add in an extra loop to copy over the weight colors in this case, or could clear the mesh's tessfaces when entering weight paint mode. Could use guidance as to which the correct approach :)%%%

%%%This is a display bug: creating the DerivedMesh updates CD_WEIGHT_MLOOPCOL values in DM_update_weight_mcol(), but CDDM draws using tesselated faces. If the finaldm produced in mesh_calc_modifiers() does not have tessfaces, then recalcTesselation() is called and the tesselated colors (CD_WEIGHT_MCOL) are copied over from the loop colors. If the finaldm is already tesselated, CD_WEIGHT_MCOL is never updated. Couple ways to solve this: can either add in an extra loop to copy over the weight colors in this case, or could clear the mesh's tessfaces when entering weight paint mode. Could use guidance as to which the correct approach :)%%%

%%%worked around for now by not having tessfaces on the mesh by default though if tessfaces are added this can still happen.

for eg - run C.object.data.update() and you can see the bug again.

the modifier stack calculation could check for this case explicitly - "if the mesh has weights and started with tessfaces always retesselate", but this isnt at all elegant.%%%

%%%worked around for now by not having tessfaces on the mesh by default though if tessfaces are added this can still happen. for eg - run C.object.data.update() and you can see the bug again. the modifier stack calculation could check for this case explicitly - "if the mesh has weights and started with tessfaces always retesselate", but this isnt at all elegant.%%%

%%%This case is one of those tackled by patch in [#30234].

%%%

%%%This case is one of those tackled by patch in [#30234]. %%%

%%%Should be definitively fixed in svn44978, closing.

Thanks for reporting! :)%%%

%%%Should be definitively fixed in svn44978, closing. Thanks for reporting! :)%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
4 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#30266
No description provided.