Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_lattice.py
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.prop(lat, "use_outside") | col.prop(lat, "use_outside") | ||||
| col.separator() | col.separator() | ||||
| col.prop_search(lat, "vertex_group", context.object, "vertex_groups") | col.prop_search(lat, "vertex_group", context.object, "vertex_groups") | ||||
| class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, Panel): | class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| _context_path = "object.data" | _context_path = "object.data" | ||||
| _property_type = bpy.types.Lattice | _property_type = bpy.types.Lattice | ||||
| classes = ( | classes = ( | ||||
| DATA_PT_context_lattice, | DATA_PT_context_lattice, | ||||
| DATA_PT_lattice, | DATA_PT_lattice, | ||||
| DATA_PT_custom_props_lattice, | DATA_PT_custom_props_lattice, | ||||
| ) | ) | ||||
| 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) | ||||