Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 3,281 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if bg.show_expanded: | if bg.show_expanded: | ||||
| row = box.row() | row = box.row() | ||||
| row.prop(bg, "source", expand=True) | row.prop(bg, "source", expand=True) | ||||
| has_bg = False | has_bg = False | ||||
| if bg.source == 'IMAGE': | if bg.source == 'IMAGE': | ||||
| row = box.row() | row = box.row() | ||||
| row.context_pointer_set("background_image", bg) | |||||
| row.template_ID(bg, "image", open="image.open") | row.template_ID(bg, "image", open="image.open") | ||||
| if bg.image is not None: | if bg.image is not None: | ||||
| box.template_image(bg, "image", bg.image_user, compact=True) | box.template_image(bg, "image", bg.image_user, compact=True) | ||||
| has_bg = True | has_bg = True | ||||
| if use_multiview and bg.view_axis in {'CAMERA','ALL'}: | if use_multiview and bg.view_axis in {'CAMERA','ALL'}: | ||||
| box.prop(bg.image, "use_multiview") | box.prop(bg.image, "use_multiview") | ||||
| ▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines | |||||