Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_modifier.py
| Show All 22 Lines | |||||
| class ModifierButtonsPanel: | class ModifierButtonsPanel: | ||||
| bl_space_type = 'PROPERTIES' | bl_space_type = 'PROPERTIES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_context = "modifier" | bl_context = "modifier" | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| class DATA_PT_modifiers(ModifierButtonsPanel, Panel): | class DATA_PT_modifiers(ModifierButtonsPanel, Panel): | ||||
| bl_label = "Modifiers" | bl_label = "Modifiers" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ob = context.object | ob = context.object | ||||
| return ob and ob.type != 'GPENCIL' | return ob and ob.type != 'GPENCIL' | ||||
| ▲ Show 20 Lines • Show All 1,935 Lines • ▼ Show 20 Lines | def GP_OFFSET(self, layout, ob, md): | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop_search(md, "vertex_group", ob, "vertex_groups", text="") | row.prop_search(md, "vertex_group", ob, "vertex_groups", text="") | ||||
| row.prop(md, "invert_vertex", text="", icon="ARROW_LEFTRIGHT") | row.prop(md, "invert_vertex", text="", icon="ARROW_LEFTRIGHT") | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(md, "pass_index", text="Pass") | row.prop(md, "pass_index", text="Pass") | ||||
| row.prop(md, "invert_pass", text="", icon="ARROW_LEFTRIGHT") | row.prop(md, "invert_pass", text="", icon="ARROW_LEFTRIGHT") | ||||
| classes = ( | classes = ( | ||||
| DATA_PT_modifiers, | DATA_PT_modifiers, | ||||
| DATA_PT_gpencil_modifiers, | DATA_PT_gpencil_modifiers, | ||||
| ) | ) | ||||
| if __name__ == "__main__": # only for live edit. | if __name__ == "__main__": # only for live edit. | ||||
| from bpy.utils import register_class | from bpy.utils import register_class | ||||
| for cls in classes: | for cls in classes: | ||||
| register_class(cls) | register_class(cls) | ||||