Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_curve.py
| Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.prop(curve, "use_radius") | sub.prop(curve, "use_radius") | ||||
| sub.prop(curve, "use_stretch") | sub.prop(curve, "use_stretch") | ||||
| sub.prop(curve, "use_deform_bounds") | sub.prop(curve, "use_deform_bounds") | ||||
| class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel): | class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel): | ||||
| bl_label = "Texture Space" | bl_label = "Texture Space" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| 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'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| curve = context.curve | curve = context.curve | ||||
| col = layout.column() | col = layout.column() | ||||
| ▲ Show 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(box, "x", text="Offset X") | sub.prop(box, "x", text="Offset X") | ||||
| sub.prop(box, "y", text="Y") | sub.prop(box, "y", text="Y") | ||||
| row.operator("font.textbox_remove", text="", icon='X', emboss=False).index = i | row.operator("font.textbox_remove", text="", icon='X', emboss=False).index = i | ||||
| class DATA_PT_custom_props_curve(CurveButtonsPanel, PropertyPanel, Panel): | class DATA_PT_custom_props_curve(CurveButtonsPanel, 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.Curve | _property_type = bpy.types.Curve | ||||
| classes = ( | classes = ( | ||||
| DATA_PT_context_curve, | DATA_PT_context_curve, | ||||
| DATA_PT_shape_curve, | DATA_PT_shape_curve, | ||||
| DATA_PT_curve_texture_space, | DATA_PT_curve_texture_space, | ||||
| Show All 18 Lines | |||||