Skip to content

Fix RGB range error#4

Open
skedastik wants to merge 1 commit into
avaraline:mainfrom
skedastik:fix/rgb-range-error
Open

Fix RGB range error#4
skedastik wants to merge 1 commit into
avaraline:mainfrom
skedastik:fix/rgb-range-error

Conversation

@skedastik

Copy link
Copy Markdown

The plug-in fails if the user applies a color with any of the RGB channels maxed out. This is because Blender's Python interface performs a color space conversion yielding float values nominally greater than 1.0 which causes the plug-in's color module to raise an exception.

The fix simply rounds the color channel values to the fourth decimal place.

I also added a logger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant