Page MenuHome

Tissue Mesh addon generates fault when hitting 'weight from 'curvature'' button
Closed, ResolvedPublic

Description

System Information
OSX

Blender Version
2.79 build bot - 11-11 build

Short description of error
Open default scene, cube is selected, install addon Tissue of not enabled.
Hit 'curvature' button in T panel under 'weight from' heading.

Exact steps for others to reproduce the error
Generates fault below:

Event Timeline

Vuk Gardašević (lijenstina) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.EditedNov 19 2017, 7:47 PM

Confirmed.

  File "2.79_latest_build_15_11\2.79\scripts\addons\mesh_tissue\colors_groups_exchanger.py", line 325, in execute
    c.color.r, c.color.g, c.color.b = 1, 1, 1
AttributeError: 'bpy_prop_array' object has no attribute 'r'

EDIT: seems that is an API change in master compared to 2.79.
Instead of using:

c.color.r, c.color.g, c.color.b = 1, 1, 1
should be:
c.color[0], c.color[1], c.color[2], c.color[3] = 1, 1, 1, 1