Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
Sergey Sharybin a68ceb0af8 Option to lock the interface while rendering
Added function called WM_set_locked_interface which does
two things:

- Prevents event queue from being handled, so no operators
  (see below) or values are even possible to run or change.
  This prevents any kind of "destructive" action performed
  from user while rendering.

- Locks interface refresh for regions which does have lock
  set to truth in their template. Currently it's just a 3D
  viewport, but in the future more regions could be considered
  unsafe, or we could want to lock different parts of
  interface when doing different jobs.

  This is needed because 3D viewport could be using or changing
  the same data as renderer currently uses, leading to threading
  conflict.

  Notifiers are still allowed to handle, so render progress is
  seen on the screen, but would need to doublecheck on this, in
  terms some notifiers could be changing the data.

  For now interface locking happens for render job only in case
  "Lock Interface" checkbox is enabled.

  Other tools like backing would also benefit of this option.

  It is possible to mark operator as safe to be used in locked
  interface mode by adding OPTYPE_ALLOW_LOCKED bit to operator
  template flags.

  This bit is completely handled by wm_evem_system, not
  with operator run routines, so it's still possible to
  run operators from drivers and handlers.

  Currently allowed image editor navigation and zooming.

Reviewers: brecht, campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D142
2014-01-29 16:07:14 +06:00
build_files Scons: refactor cycles kernel code to avoid building the AVX kernel with 2014-01-28 23:02:06 +01:00
doc Code Cleanup: style and correct API class ref 2014-01-26 22:17:01 +11:00
extern Bundle latest Libmv from upstream 2014-01-28 18:36:32 +06:00
intern Scons: refactor cycles kernel code to avoid building the AVX kernel with 2014-01-28 23:02:06 +01:00
release Option to lock the interface while rendering 2014-01-29 16:07:14 +06:00
scons@2d6ebcb239 Squashed commit of the following: 2013-11-21 16:51:29 +01:00
source Option to lock the interface while rendering 2014-01-29 16:07:14 +06:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore .gitignore: Adding CMakeLists.txt.user for QtCreator users. 2014-01-26 17:52:14 -08:00
.gitmodules
CMakeLists.txt Code cleanup: remove references to svn and code style 2014-01-28 23:01:22 +11:00
COPYING
GNUmakefile Cycles: Add a cmake config to easily compile Cycles Standalone. 2014-01-20 20:44:39 +01:00
SConstruct Scons: Fix cycles OpenCL kernelcompile by distributing util_half.h 2014-01-17 00:33:32 +01:00