Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show First 20 Lines • Show All 948 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sima = context.space_data | sima = context.space_data | ||||
| ima = sima.image | ima = sima.image | ||||
| show_uvedit = sima.show_uvedit | show_uvedit = sima.show_uvedit | ||||
| uvedit = sima.uv_editor | uvedit = sima.uv_editor | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(sima, "use_space_drawing") | |||||
| if ima: | if ima: | ||||
| col.prop(ima, "display_aspect", text="Aspect Ratio") | col.prop(ima, "display_aspect", text="Aspect Ratio") | ||||
| col.prop(sima, "show_repeat", text="Repeat Image") | col.prop(sima, "show_repeat", text="Repeat Image") | ||||
| if show_uvedit: | if show_uvedit: | ||||
| col.prop(uvedit, "show_pixel_coords", text="Pixel Coordinates") | col.prop(uvedit, "show_pixel_coords", text="Pixel Coordinates") | ||||
| ▲ Show 20 Lines • Show All 803 Lines • Show Last 20 Lines | |||||