diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-04-16 16:01:31 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-04-16 16:01:31 +0300 |
commit | 410810d42f92f6726f859601d2517df1ee7e6f75 (patch) | |
tree | 12462b3c27349855eceb0f514e33ac2fdbbaff77 /release/scripts/startup/bl_ui/properties_collection.py | |
parent | 7ffc8bc25d1c248900ddf9838490485b2d98effb (diff) |
Workbench: Added Object Color to collection_properties
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_collection.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_collection.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py index e48df3a0a61..cced6262be5 100644 --- a/release/scripts/startup/bl_ui/properties_collection.py +++ b/release/scripts/startup/bl_ui/properties_collection.py @@ -86,6 +86,24 @@ class COLLECTION_PT_clay_settings(CollectionButtonsPanel, Panel): col.template_override_property(collection_props, scene_props, "hair_brightness_randomness") +class COLLECTION_PT_workbench_settings(CollectionButtonsPanel, Panel): + bl_label = "Render Settings" + COMPAT_ENGINES = {'BLENDER_WORKBENCH'} + + @classmethod + def poll(cls, context): + return context.view_render.engine in cls.COMPAT_ENGINES + + def draw(self, context): + layout = self.layout + scene_props = context.scene.collection_properties['BLENDER_WORKBENCH'] + collection = get_collection_from_context(context) + collection_props = collection.engine_overrides['BLENDER_WORKBENCH'] + + col = layout.column() + col.template_override_property(collection_props, scene_props, "object_color") + + class COLLECTION_PT_object_mode_settings(CollectionButtonsPanel, Panel): bl_label = "Object Mode Settings" @@ -170,6 +188,7 @@ class COLLECTION_PT_paint_vertex_mode_settings(CollectionButtonsPanel, Panel): classes = ( COLLECTION_PT_context_collection, COLLECTION_PT_clay_settings, + COLLECTION_PT_workbench_settings, COLLECTION_PT_object_mode_settings, COLLECTION_PT_edit_mode_settings, COLLECTION_PT_paint_weight_mode_settings, |