Blender Git Commit Log
Git Commits -> Revision 0162ded
Revision 0162ded by Nathan Letwory (master) January 13, 2009, 21:18 (GMT) |
2.5 / Keymap definition * For some reason builds on Windows would crash when tabbing into edit mode with default .b.blend Problem is that it is not very clear why it happens. The debug trace I managed to get pointed at SCRIPT_OT_run_pyfile being run when pressing TAB. Changing the way how this quickhack for running scripts is added made the crash go away, but this points at a potential problem in the creation of keymaps. The original form is the plenty used: RNA_string_set(WM_keymap_add_item(keymap, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py"); But changing that to: km = WM_keymap_add_item(keymap, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0); RNA_string_set(km->ptr, "filename", "test.py"); Properly prevents the execution of the script operator. It looks like somewhere something goes wrong, but no idea what, yet. Probably a good thing to investigate now! Apparently this doesn't happen on Linux (and probably not on OSX either). |
Commit Details:
Full Hash: 0162ded15a7709c131095e883793d1ac932b7870
SVN Revision: 18490
Parent Commit: a42f916
Lines Changed: +2, -1
1 Modified Path:
/source/blender/editors/space_view3d/view3d_ops.c (+2, -1) (Diff)