Workbench: Option to use Object color
authorJeroen Bakker <j.bakker@atmind.nl>
Thu, 19 Apr 2018 07:45:52 +0000 (09:45 +0200)
committerJeroen Bakker <j.bakker@atmind.nl>
Thu, 19 Apr 2018 07:45:52 +0000 (09:45 +0200)
commit16fac020e07d7ad0caa5901c0740c88e9772194f
tree505cf49b33f2ce6d8edae69b7355ca1ea092aca9
parent1f5d51e44ecf99f34d8e733559a9312e5ae3ef33
Workbench: Option to use Object color

- added `object_color_type` where the user can set if the collection
determines the color, or the object will be used for the color.
Implemented it as an enum as later this can have a random color option.
- moved OB_LIGHTING_* to DNA_view3d_types and renamed it.
- Fixed some DRY in workbench_materials.c. Can remove more DRY's but
will need to discuss the responsibility of the workbench engine as it
might become part of the eevee renderer.
14 files changed:
release/scripts/startup/bl_ui/properties_collection.py
release/scripts/startup/bl_ui/properties_render.py
source/blender/blenloader/intern/versioning_280.c
source/blender/draw/engines/workbench/solid_flat_mode.c
source/blender/draw/engines/workbench/solid_studio_mode.c
source/blender/draw/engines/workbench/workbench_engine.c
source/blender/draw/engines/workbench/workbench_materials.c
source/blender/draw/engines/workbench/workbench_private.h
source/blender/draw/intern/draw_manager.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/makesdna/DNA_object_types.h
source/blender/makesdna/DNA_view3d_types.h
source/blender/makesrna/intern/rna_layer.c
source/blender/makesrna/intern/rna_space.c