Blender Git Loki

Git Commits -> Revision 39e1518

Revision 39e1518 by Campbell Barton (master)
July 31, 2017, 04:35 (GMT)
Fix glitch updating manipulator after undo

Running undo would notify manipulators to refresh,
but this still allowed for events in the queue to be handled,
where manipulators could be drawn for selection before
their refresh callback runs.

This made Python manipulators raise exceptions
about referencing invalid data (or crash).

Now tag manipulator update on file load (including undo)
and ensure the refresh callback runs
before drawing manipulator selection.

Also split manipulator map refresh flag in two since selection doesn't
perform the same operations as regular drawing.

Commit Details:

Full Hash: 39e1518d413a1af35b39a695b6a2e2d69fd2d35b
Parent Commit: 3b15ff3
Lines Changed: +61, -13

6 Modified Paths:

/source/blender/blenkernel/BKE_screen.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/blendfile.c (+7, -0) (Diff)
/source/blender/blenkernel/intern/screen.c (+26, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -0) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -0) (Diff)
/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c (+20, -13) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021