Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_curves.py
| Show All 38 Lines | class DATA_PT_curves_surface(DataButtonsPanel, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ob = context.object | ob = context.object | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.prop(ob.data, "surface") | layout.prop(ob.data, "surface") | ||||
| layout.prop(ob.data, "surface_uv_name", text="UV Map") | |||||
| class CURVES_MT_add_attribute(Menu): | class CURVES_MT_add_attribute(Menu): | ||||
| bl_label = "Add Attribute" | bl_label = "Add Attribute" | ||||
| @staticmethod | @staticmethod | ||||
| def add_standard_attribute(layout, curves, name, data_type, domain): | def add_standard_attribute(layout, curves, name, data_type, domain): | ||||
| exists = curves.attributes.get(name) is not None | exists = curves.attributes.get(name) is not None | ||||
| ▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines | |||||