Blender Git Commits

Blender Git "master" branch commits.

Page: 2968 / 5574

January 29, 2014, 10:07 (GMT)
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
January 29, 2014, 09:44 (GMT)
UI: Refactor timecode functions into BLI_timecode

- deduplicate timecode_simple_string from image.c
- replace V2D_UNIT_SECONDSSEQ with V2D_UNIT_SECONDS
- avoid possible buffer overflow bugs (sprintf -> BLI_snprintf)
- remove option not to use timecode and split into 2 functions

Patch D227 by Andrew Buttery with own refactoring.
January 28, 2014, 22:02 (GMT)
Scons: refactor cycles kernel code to avoid building the AVX kernel with
compilers that don't support it.

CMake still needs to updated to work the same for consistency, but this should
fix the OS X buildbot at least.
January 28, 2014, 20:37 (GMT)
January 28, 2014, 20:31 (GMT)
RNA: add rna_space_api.c for space functions
January 28, 2014, 18:34 (GMT)
File Reading: add revert operator

Patch D247 by Evans Jahja with edits
January 28, 2014, 18:33 (GMT)
File Reading: add wrapper function for WM_file_read

also return cancelled when an operator fails to load a file
January 28, 2014, 18:20 (GMT)
Bevel: fix glitch in "pipe" case with square profile.

The "pipe" case -- where two beveled edges are in line
and there is at least one more beveled edge -- needed better
handling when profile parameter = 1.0 (square outward).
January 28, 2014, 17:40 (GMT)
Cuda use streams and async to avoid busywaiting

This is my first stab at this and is based on this IRC converstation:

<mib2berlin> brecht: this is meaning as reminder only, I know you have other things to do > http://openvidia.sourceforge.net/index.php/Optimization_Notes#avoiding_busy_waits
<brecht> mib2berlin: thanks, bookmarked

only tested on Ubuntu 14.04 / cuda 5.0 but ill do some more testing tomorrow.

Also unsure about the placement and the lifetime of the stream and the event. But creating / deleting these seems to incur a non trivial cost.

Reviewers: brecht

Reviewed By: brecht

CC: mib2berlin, dingto

Differential Revision: https://developer.blender.org/D262
January 28, 2014, 17:10 (GMT)
Fix T38383: glitch drawing inactive slider
January 28, 2014, 16:39 (GMT)
Viewport Drawing: apply matcaps to all objects
January 28, 2014, 16:38 (GMT)
Code cleanup: remove check for painting non-mesh objects (its impossible)
January 28, 2014, 16:14 (GMT)
Fix unused variable in the right way

It IS to be used :)
January 28, 2014, 15:55 (GMT)
Code cleanup: unused var
January 28, 2014, 15:54 (GMT)
Fix T38367: operators activated from popups didnt reuse settings
January 28, 2014, 15:20 (GMT)
Code cleanup: pep8
January 28, 2014, 15:15 (GMT)
Fix T38381, Fix T38184: key events getting lost when modal operator is running.

There is a hack for modal keymaps and double click events, which was (ab)using
the wmEvent.prevval variable to temporarily assign it KM_DBL_CLICK indicating
that the double click event was disabled. However the value of prevval can
actually be KM_DBL_CLICK in other circumstances too, which caused a key press
event to get converted to a double click event.
January 28, 2014, 14:34 (GMT)
Fix for a typo reported by flokkievids through code review comments D163#1.
January 28, 2014, 14:34 (GMT)
Moved the Operators class from the 'freestyle' module to the 'freestyle.types' submodule.
January 28, 2014, 14:34 (GMT)
Patch set by Folkert Vries (flokkievids) with respect to T37565-patch-v1.zip (F32402).
Applied with minor modifications.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021