Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/ui/space_image.py')
-rw-r--r--release/scripts/ui/space_image.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py
index 93d8043b61f..b14bec0e40e 100644
--- a/release/scripts/ui/space_image.py
+++ b/release/scripts/ui/space_image.py
@@ -2,6 +2,7 @@
import bpy
class IMAGE_MT_view(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "View"
def draw(self, context):
@@ -32,7 +33,7 @@ class IMAGE_MT_view(bpy.types.Menu):
for a, b in ratios:
text = "Zoom %d:%d" % (a, b)
- layout.item_floatO("image.view_zoom_ratio", "ratio", a/b, text=text)
+ layout.item_floatO("image.view_zoom_ratio", "ratio", a/float(b), text=text)
layout.itemS()
@@ -43,6 +44,7 @@ class IMAGE_MT_view(bpy.types.Menu):
layout.itemO("screen.screen_full_area")
class IMAGE_MT_select(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Select"
def draw(self, context):
@@ -63,6 +65,7 @@ class IMAGE_MT_select(bpy.types.Menu):
layout.itemO("uv.select_linked")
class IMAGE_MT_image(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Image"
def draw(self, context):
@@ -106,6 +109,7 @@ class IMAGE_MT_image(bpy.types.Menu):
layout.itemR(sima, "image_painting")
class IMAGE_MT_uvs_showhide(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Show/Hide Faces"
def draw(self, context):
@@ -116,6 +120,7 @@ class IMAGE_MT_uvs_showhide(bpy.types.Menu):
layout.item_booleanO("uv.hide", "unselected", True)
class IMAGE_MT_uvs_transform(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Transform"
def draw(self, context):
@@ -126,6 +131,7 @@ class IMAGE_MT_uvs_transform(bpy.types.Menu):
layout.itemO("tfm.resize")
class IMAGE_MT_uvs_mirror(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Mirror"
def draw(self, context):
@@ -139,6 +145,7 @@ class IMAGE_MT_uvs_mirror(bpy.types.Menu):
props.constraint_axis[1]= True
class IMAGE_MT_uvs_weldalign(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "Weld/Align"
def draw(self, context):
@@ -148,6 +155,7 @@ class IMAGE_MT_uvs_weldalign(bpy.types.Menu):
layout.items_enumO("uv.align", "axis") # W, 2/3/4
class IMAGE_MT_uvs(bpy.types.Menu):
+ __space_type__ = 'IMAGE_EDITOR'
__label__ = "UVs"
def draw(self, context):