System Information
Operating system: Windows 7
Graphics: Intel HD4400
Blender Version
Broken: 2.79 5bd8ac9
Short description of error
After repositioning a dialog window, when redrawn, the window will change location. After a few repositions (around 4), the window will stay in place after redraws as expected. The number of repetitions until the dialog is stabilized seems to depend on the height of the dialog window with more repetitions required for a taller windows.
Exact steps for others to reproduce the error
Script:
import bpy
class MyDialogOperator(bpy.types.Operator):
bl_idname = "my_test.my_dialog_operator"
bl_label = "My Dialog Operator"
toggle = bpy.props.BoolProperty()
def check(self, context):
return True
def draw(self, context):
self.layout.prop(self, "toggle", text="Toggle to redraw")
for i in range(20):
self.layout.label(str(i))
def execute(self, context):
return {'FINISHED'}
def invoke(self, context, event):
return context.window_manager.invoke_props_dialog(self)
bpy.utils.register_class(MyDialogOperator)
bpy.ops.my_test.my_dialog_operator('INVOKE_DEFAULT')- Open Blender and run script (Dialog opens)
- REPEAT:
a) Reposition window to center of screen
b) Click 'Toggle to redraw ' checkbox (Dialog window changes location)