Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_gpencil.py
| Context not available. | |||||
| gpd = context.gpencil_data | gpd = context.gpencil_data | ||||
| gpl = context.active_gpencil_layer | gpl = context.active_gpencil_layer | ||||
| layout.prop(gpd, "xray_mode", text="Depth Ordering") | layout.prop(gpd, "object_depth_order") | ||||
| if gpd.xray_mode == '3DSPACE': | if gpd.object_depth_order == '3DSPACE': | ||||
| layout.prop(gpd, "draw_mode", text="Mode") | layout.prop(gpd, "stroke_depth_order") | ||||
| layout.prop(ob, "empty_display_size", text="Marker Size") | |||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(gpd, "show_constant_thickness") | col.prop(gpd, "stroke_thickness_space") | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.active = not gpd.show_constant_thickness | sub.active = gpd.stroke_thickness_space == 'WORLDSPACE' | ||||
| sub.prop(gpd, "pixel_factor", text="Thickness Scale") | sub.prop(gpd, "pixel_factor", text="Thickness Scale") | ||||
| layout.prop(ob, "empty_display_size", text="Marker Size") | |||||
| layout.prop(gpd, "edit_line_color", text="Edit Line Color") | layout.prop(gpd, "edit_line_color", text="Edit Line Color") | ||||
| if gpl: | if gpl: | ||||
| layout.prop(gpd, "show_stroke_direction", text="Show Stroke Directions") | layout.prop(gpd, "show_stroke_direction", text="Show Stroke Directions") | ||||
| Context not available. | |||||