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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-04-20 15:38:55 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-04-20 15:38:55 +0300
commitc7d3eb2a7e30bbd34e299faeb81f3a777023c8b1 (patch)
treea9d8e7a65120ea0424a06710018de230f675c400 /release
parentf18213ae3a31a77fe47efcd444f455cf6b3649e8 (diff)
Workbench: Draw random object colors
Basic implementation hashes the ob->id.name. In the future we should use an golden ratio offset algorithm as it can make a better random palettte.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 75f84893160..6e61ad975d3 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3447,6 +3447,7 @@ class VIEW3D_PT_view3d_display(Panel):
col.prop(view, "show_all_objects_origin")
col.prop(view, "show_relationship_lines")
col.prop(view, "show_face_orientation_overlay")
+ col.prop(view, "show_random_object_colors")
col = layout.column()
col.active = display_all