Utility to quickly set object colours, also colour mode is automatically changed now

This commit is contained in:
Dion Moult
2020-08-12 19:59:30 +10:00
parent 5db2a46369
commit 01d0d125a6
4 changed files with 41 additions and 0 deletions
+17
View File
@@ -1866,6 +1866,23 @@ class BIM_PT_qto_utilities(Panel):
row.operator("bim.calculate_object_volumes")
class BIM_PT_misc_utilities(Panel):
bl_idname = "BIM_PT_misc_utilities"
bl_label = "Miscellaneous"
bl_space_type = 'VIEW_3D'
bl_region_type = "UI"
bl_category = 'BlenderBIM'
def draw(self, context):
layout = self.layout
props = context.scene.BIMProperties
row = layout.row()
row.prop(props, 'override_colour', text='')
row = layout.row(align=True)
row.operator("bim.set_override_colour")
def ifc_units(self, context):
scene = context.scene
props = context.scene.BIMProperties