Page MenuHome

Edges marked as sharp (smooth=False) don't show as cyan lines in editmode
Closed, ArchivedPublic

Description

--- Operating System, Graphics card ---
Tested with r57892

--- Blender version with error, and version that worked ---
Never?

--- Short description of error ---
If you mark edges sharp via operator, they show as cyan lines in viewport. If you use the use_edge_sharp / bm smooth properties, they don't, previously marked edges even lose their cyan color although the state didn't necessarily change (see attached .blend)

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
Run the script of attached file

Event Timeline

This isnt a bug, the tool enables the mesh draw option, the python attribute doesn't, they just work a bit differently.
You can enable the draw option with:

bpy.context.object.data.show_edge_sharp = True

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jul 1 2013, 10:29 AM

the draw option is enabled in the file i attached, but i didn't realize that i cleared the sharp-state (smooth=True), i meant to write smooth=False to make all edges sharp - my bad! It works fine with bmesh module, standard API requires mesh to be in object mode - like for selection.