Page MenuHome

Custom Loop Normals Viewport shading not updating
Closed, ResolvedPublic

Description

In my python script I do something similar to: bpy.data.meshes['Triangle'].normals_split_custom_set_from_vertices([(0,1,0), (0,0,1), (1,0,0)])
I found that if I run this script in edit mode, shading will not update. If I run the script in object mode and then switch to edit mode - shading will use custom normals and viewport will show the right picture. I think that right behaviour is immediate shading update after this script execution.

There is another feature/bug that worked before and was changed/broken since blender 2.73.
C.active_object.data.vertices[0].normal = (0,0,1)

Alexander (Blend4Web Team)

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) triaged this task as Normal priority.Mar 30 2015, 3:05 PM

Grr, sorry, typo in commit message… Fixed by rBbacdfc70e2109711eeecef122cf408e6803990ca.

Note, do not understand your last sentence, please always be precise and clear - and report a single issue by report. In any case, storing normals in vertices is not a good idea (aside from really temporary storage), next mesh update is highly likely to overwrite that, it has always be the case… ;)

Bastien Montagne (mont29) closed this task as Resolved.Mar 30 2015, 3:09 PM