System Intormation
Windows 8.1 | GTX680
Blender Version
Broken: 2.6.4 d970f02
Description
When using value input field as a pie menu item, it only accepts "0" "5" and ./*+ and a few other signs, which seems something quite strange. Thanks for checking.
How to Reproduce
- run the script below.
- in 3D view, press Shift + Q, then try typing values there.
import bpy
from bpy.types import Menu, Panel, UIList
class VIEW3D_PIE2_temp(Menu):
bl_label = "John's Object Pie Menu2"
bl_idname = "object2.tools_menu"
def draw(self, context):
layout = self.layout
scene = context.scene
rd = scene.render
pie = layout.menu_pie()
col = pie.column(align=True)
col.label(text="Resolution:")
col.prop(rd, "resolution_x", text="X")
col.prop(rd, "resolution_y", text="Y")
col.prop(rd, "resolution_percentage", text="")
addon_keymaps = []
def register():
bpy.utils.register_class(VIEW3D_PIE2_temp)
wm = bpy.context.window_manager
km = bpy.context.window_manager.keyconfigs.active.keymaps['Object Mode']
kmi = km.keymap_items.new('wm.call_menu_pie', 'Q', 'PRESS',shift=True)
kmi.properties.name = 'object2.tools_menu'
addon_keymaps.append(km)
def unregister():
bpy.utils.unregister_class(VIEW3D_PIE2_temp)
if __name__ == "__main__":
register()