diff options
author | Luca Rood <dev@lucarood.com> | 2017-05-04 20:59:27 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-05-04 21:05:59 +0300 |
commit | 3103b819aa530da29e9853cb67e3f0b77d349d4e (patch) | |
tree | 598272bccd325ad6ec70e5b919c9cd53eee9f5ec /release/scripts/startup/bl_ui/properties_collection.py | |
parent | b5b9b2d04db4b3cf08d219d00e5f7d1d82725ad1 (diff) |
Vertex paint with draw manager
Reviewers: fclem
Subscribers: campbellbarton, dfelinto
Differential Revision: https://developer.blender.org/D2658
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_collection.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_collection.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py index 0cd0194ff33..dc02037586c 100644 --- a/release/scripts/startup/bl_ui/properties_collection.py +++ b/release/scripts/startup/bl_ui/properties_collection.py @@ -130,12 +130,33 @@ class COLLECTION_PT_paint_weight_mode_settings(CollectionButtonsPanel, Panel): col.template_override_property(collection_props, scene_props, "use_shading") col.template_override_property(collection_props, scene_props, "use_wire") + +class COLLECTION_PT_paint_vertex_mode_settings(CollectionButtonsPanel, Panel): + bl_label = "Vertex Paint Mode Settings" + + @classmethod + def poll(cls, context): + ob = context.object + return ob and (ob.mode == 'VERTEX_PAINT') + + def draw(self, context): + layout = self.layout + scene_props = context.scene.collection_properties['VertexPaintMode'] + collection = context.layer_collection + collection_props = collection.engine_overrides['VertexPaintMode'] + + col = layout.column() + col.template_override_property(collection_props, scene_props, "use_shading") + col.template_override_property(collection_props, scene_props, "use_wire") + + classes = ( COLLECTION_PT_context_collection, COLLECTION_PT_clay_settings, COLLECTION_PT_object_mode_settings, COLLECTION_PT_edit_mode_settings, COLLECTION_PT_paint_weight_mode_settings, + COLLECTION_PT_paint_vertex_mode_settings, ) if __name__ == "__main__": # only for live edit. |