Fix: USD Import: set active mesh color #105907
Closed
Michael Kowalski
wants to merge 1 commits from
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
makowalski:usd_import_set_active_color
into main
pull from: makowalski:usd_import_set_active_color
merge into: blender:main
blender:main
blender:blender-v4.3-release
blender:npr-prototype
blender:cmbasnett/use_pass_z_name
blender:blender-v4.2-release
blender:color-node-drag-and-drop
blender:blender-v3.6-release
blender:temp-sculpt-dyntopo
blender:icons-cleanup
blender:blender-v3.3-release
blender:brush-assets-project
blender:pr-extensions-tidy-space
blender:blender-v4.0-release
blender:universal-scene-description
blender:blender-v4.1-release
blender:blender-v3.6-temp_wmoss_animrig_public
blender:gpencil-next
blender:blender-projects-basics
blender:bridge-curves
blender:sculpt-blender
blender:asset-browser-frontend-split
blender:asset-shelf
blender:tmp-usd-python-mtl
blender:tmp-usd-3.6
blender:blender-v3.5-release
blender:blender-v2.93-release
blender:sculpt-dev
blender:bevelv2
blender:xr-dev
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 Commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
04160c4d4d |
USD import fix: set active mesh color.
Fixed a bug where the active color wasn't being set on imported meshes, resulting in no colors displaying in the viewport. This bug has been in the code for a long time. However, the colors have been displaying correctly until recently, so this issue wasn't previously apparent. Also, changed custom color data name from "displayColors" to "displayColor", to match the actual USD primvar name. (This was a typo in the original code.) Note that pull request #104542 addresses other issues in the color import code (e.g., converting all color primvars and not just "displayColor", avoiding hard-coding of attribute names, handling all iterpolation types, etc.). However, the current commit is meant as a short term fix to a regression, where the "displayColor" attribute does not render in the viewport at all, until the above pull can be merged. |