Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-02-22 18:06:13 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-02-22 18:06:23 +0300
commit7372058649666c7b0425c2f4d1a688a65ad11e61 (patch)
treefe81d2b57503c5b50b90885be923ca9c4c2641ac /release
parente278b38b921d625a11544203808575a7180f75e8 (diff)
Wireframe: Add object and random coloring option in wireframe mode
The option is separated from the solid mode color option. Random color uses the same method as solid mode. Selection state is indicated by a brighter color that is outside the brightness range of the unselected state colors. The active state is indicated by the outlines that is, now, still drawn in wireframe mode. Coloring of the selection / active outline is not optimal because it can look ugly in some cases of color combination. But the outline color is using index range coloring so it's not trivial to change the color of the outline per object. For now we use the same outline color used in solid mode for consistency and also still add an emphasis on the selected objects. The Single color option uses the theme color. Maybe it would be nice to change the name of it in a latter commit to avoid confusion.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f2ba6fe695d..29333ddb2d5 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4583,7 +4583,9 @@ class VIEW3D_PT_shading_color(Panel):
def draw(self, context):
shading = VIEW3D_PT_shading.get_shading(context)
- if shading.type != 'WIREFRAME':
+ if shading.type == 'WIREFRAME':
+ self.layout.row().prop(shading, "wireframe_color_type", expand=True)
+ else:
self._draw_color_type(context)
self.layout.separator()
self._draw_background_color(context)