Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show First 20 Lines • Show All 602 Lines • ▼ Show 20 Lines | class IMAGE_PT_game_properties(Panel): | ||||
| bl_space_type = 'IMAGE_EDITOR' | bl_space_type = 'IMAGE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_label = "Game Properties" | bl_label = "Game Properties" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| sima = context.space_data | sima = context.space_data | ||||
| # display even when not in game mode because these settings effect the 3d view | # display even when not in game mode because these settings effect the 3d view | ||||
| return (sima and sima.image and not sima.show_maskedit) # and (rd.engine == 'BLENDER_GAME') | return (sima and sima.image and not sima.show_maskedit) # and (view_render.engine == 'BLENDER_GAME') | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| sima = context.space_data | sima = context.space_data | ||||
| ima = sima.image | ima = sima.image | ||||
| split = layout.split() | split = layout.split() | ||||
| ▲ Show 20 Lines • Show All 773 Lines • Show Last 20 Lines | |||||