def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    md = context.cloth
    cloth = md.settings
    layout.active = cloth_panel_enabled(md)
    flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    if (cloth.bending_model == 'ANGULAR'):
        col.prop(cloth, 'tension_damping', text='Tension')
        col = flow.column()
        col.prop(cloth, 'compression_damping', text='Compression')
    else:
        col.prop(cloth, 'tension_damping', text='Structural')
    col = flow.column()
    col.prop(cloth, 'shear_damping', text='Shear')
    col = flow.column()
    col.prop(cloth, 'bending_damping', text='Bending')
def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    md = context.cloth
    cloth = md.settings
    layout.active = cloth_panel_enabled(md)
    flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    if (cloth.bending_model == 'ANGULAR'):
        col.prop(cloth, 'tension_damping', text='Tension')
        col = flow.column()
        col.prop(cloth, 'compression_damping', text='Compression')
    else:
        col.prop(cloth, 'tension_damping', text='Structural')
    col = flow.column()
    col.prop(cloth, 'shear_damping', text='Shear')
    col = flow.column()
    col.prop(cloth, 'bending_damping', text='Bending')