7 years agoFix T38455: Blenderplayer is not working
Sergey Sharybin [Mon, 3 Feb 2014 11:24:25 +0000 (17:24 +0600)]
Fix T38455: Blenderplayer is not working

Was a regression since avg_frame_rate changes.

Didn't find reliable way to get stream duration which will
work with both FFmpeg and Libav so added some freaking black
magic to distinguish one from another.

7 years agoAdd include for FreeBSD and clang
Campbell Barton [Mon, 3 Feb 2014 11:04:23 +0000 (22:04 +1100)]
Add include for FreeBSD and clang

7 years agoFix another player stub after type change
Jens Verwiebe [Mon, 3 Feb 2014 10:55:55 +0000 (11:55 +0100)]
Fix another player stub after type change

7 years agoBGE: correct for last commit
Campbell Barton [Mon, 3 Feb 2014 10:41:00 +0000 (21:41 +1100)]
BGE: correct for last commit

7 years agoImage/Animation loading, remove user-pref extension check.
Campbell Barton [Mon, 3 Feb 2014 08:33:17 +0000 (19:33 +1100)]
Image/Animation loading, remove user-pref extension check.

don't use extension checking preference for low level loading functions,
otherwise a user preference may impact a script loading a file for example.

looked into making this an argument and passing it in, but theres no
real advantage and its simpler just to remove.

7 years agoCode cleanup: check -1 for error return explicitly
Campbell Barton [Mon, 3 Feb 2014 07:59:36 +0000 (18:59 +1100)]
Code cleanup: check -1 for error return explicitly

7 years agoCode cleanup: use bools where possible
Campbell Barton [Mon, 3 Feb 2014 07:55:59 +0000 (18:55 +1100)]
Code cleanup: use bools where possible

7 years agoFixed a possible access to null pointer reference.
Sergey Sharybin [Mon, 3 Feb 2014 07:51:26 +0000 (13:51 +0600)]
Fixed a possible access to null pointer reference.

Patch by tamerlan311 (Alex Babahin)

Reviewers: sergey

Reviewed By: sergey

Differential Revision:

7 years agoFix T38447: Deactivated hotkeys are still showing in menu
Joshua Leung [Mon, 3 Feb 2014 06:23:17 +0000 (19:23 +1300)]
Fix T38447: Deactivated hotkeys are still showing in menu

7 years agoUse bool where appropriate
Joshua Leung [Tue, 28 Jan 2014 01:41:33 +0000 (14:41 +1300)]
Use bool where appropriate

7 years agoCode cleanup: white space and cmake was broken on all platforms
Campbell Barton [Mon, 3 Feb 2014 02:55:26 +0000 (13:55 +1100)]
Code cleanup: white space and cmake was broken on all platforms

7 years agoAssure test works in all OSX buildenvironments/build-types
Jens Verwiebe [Sun, 2 Feb 2014 22:35:00 +0000 (23:35 +0100)]
Assure  test works in all OSX buildenvironments/build-types

7 years agoFix T38435: Crash when pressing MMB in walk mode
Bastien Montagne [Sun, 2 Feb 2014 19:34:23 +0000 (20:34 +0100)]
Fix T38435: Crash when pressing MMB in walk mode

Snap code may be called with a NULL region, add check about this and assume ray_start is OK in this case!

7 years agoCode cleanup / Cycles: Remove unused "curverender" variable from Object class, was...
Thomas Dinges [Sun, 2 Feb 2014 19:11:50 +0000 (20:11 +0100)]
Code cleanup / Cycles: Remove unused "curverender" variable from Object class, was never used.

7 years agoCode cleanup / Cycles: Remove encasing_ratio variable, it was already hard coded...
Thomas Dinges [Sun, 2 Feb 2014 18:52:46 +0000 (19:52 +0100)]
Code cleanup / Cycles: Remove encasing_ratio variable, it was already hard coded, so define it in the kernel only.

7 years agoAdded bevel regression test to tests.
Howard Trickey [Sun, 2 Feb 2014 18:29:08 +0000 (13:29 -0500)]
Added bevel regression test to tests.

Goes with companion files bevel_regression.blend
and just added to svn lib/tests/modeling.

Also changed the blender executable path for Apple case:
needed either 'Debug' or 'Release' in the path. I chose
'Debug', because not sure how to add otherwise. At any
rate, what was currently there didn't work at all.

7 years agoAdd "Create" tab and panel for Metaball Edit Mode
Jonathan Williamson [Sun, 2 Feb 2014 18:27:26 +0000 (12:27 -0600)]
Add "Create" tab and panel for Metaball Edit Mode

This makes the Create tab consistent in metaball editmode with other object types.

7 years agoReorder Curve "Create" tab and add "Create" tab for Surfaces
Jonathan Williamson [Sun, 2 Feb 2014 18:05:13 +0000 (12:05 -0600)]
Reorder Curve "Create" tab and add "Create" tab for Surfaces

This ensures the Create tab doesn't move and that it's available for Surface object types.

7 years agoRemove Grease Pencil panels from toolbar, has own tab
Jonathan Williamson [Sun, 2 Feb 2014 17:38:14 +0000 (11:38 -0600)]
Remove Grease Pencil panels from toolbar, has own tab

The Grease Pencil has it's own dedicated tab. It's no longer necessary to draw in a panel for each object type.

7 years agoUpdate tabs for non-mesh object types
Jonathan Williamson [Sun, 2 Feb 2014 17:31:24 +0000 (11:31 -0600)]
Update tabs for non-mesh object types

This adds appropriate tabs, panels, etc for curves, surfaces, metaballs, text, and armatures. This brings it in line with the changes in rB0972c422c3ac4ed725414baa47838f833b3f4c90

7 years agoUpdate Object Mode Toolbar Tabs
Jonathan Williamson [Sun, 2 Feb 2014 17:00:01 +0000 (11:00 -0600)]
Update Object Mode Toolbar Tabs

This updates the object mode toolbar tabs to reflect the rationale from the Edit Mode tabs.
- Rename "Basic" to "Tools"
- Put "Transform" into it's own panel within Tools
- Also rename Edit Mode "Mesh Tools" to "Tools" for consistency and shorter names
- Ensure Tools tabs are in same location between Edit and Object modes
- Remove redundant "Transform" label from Transform panel

7 years agoCode cleanup: suffix vars to make obvious they are squared
Campbell Barton [Sun, 2 Feb 2014 15:46:45 +0000 (02:46 +1100)]
Code cleanup: suffix vars to make obvious they are squared

7 years agoFix: Compile error due to missing #define for MSVC9 (VisualC++ 2008)
Andrea Weikert [Sun, 2 Feb 2014 13:37:41 +0000 (14:37 +0100)]
Fix: Compile error due to missing #define for MSVC9 (VisualC++ 2008)

Added some relevant #defines copied from extern\libmv\third_party\msinttypes to BLI_sys_types.h so they can be used in blenlib. Made smallhash.c use the BLI_sys_types.h include rather than including <stdint.h> directly

7 years agoFreestyle: Fix for iterations over 0D elements in the reversed order.
Tamito Kajiyama [Sun, 2 Feb 2014 12:59:15 +0000 (21:59 +0900)]
Freestyle: Fix for iterations over 0D elements in the reversed order.

The revision is concerned with Interface0DIterator and StrokeVertexIterator.
These iterators can be generated by Interface1D::vertices_end() and
Stroke::stroke_vertices_end(), respectively.  These methods return an
iterator poinitng the next index of the last 0D element (i.e., iterator's is_end
property is true).  When the iterators created in this way are used with
Python's iterator protocol (e.g., in a for-loop), iterations over 0D elements
are automatically performed in the reversed order.  This functionality was
broken after recent revisions concerning Freestyle iterators.

Also made minor code cleanup (white space).

7 years agoDocstring updates and code cleanup by flokkievids (Folkert de Vries).
Tamito Kajiyama [Sun, 2 Feb 2014 11:58:01 +0000 (20:58 +0900)]
Docstring updates and code cleanup by flokkievids (Folkert de Vries).

7 years agoCode cleanup (mostly indentation and white space).
Tamito Kajiyama [Sat, 1 Feb 2014 07:45:06 +0000 (16:45 +0900)]
Code cleanup (mostly indentation and white space).

7 years agoFix for iterators' at_start flag left unset in C++ to Python conversion utility funct...
Tamito Kajiyama [Sat, 1 Feb 2014 07:30:14 +0000 (16:30 +0900)]
Fix for iterators' at_start flag left unset in C++ to Python conversion utility functions.
Also changed the type of the 'reversed' flag from int to bool.

7 years agoImported D222 Diff 2 (ID 781) by flokkievids (Folkert de Vries).
Tamito Kajiyama [Fri, 31 Jan 2014 04:40:24 +0000 (13:40 +0900)]
Imported D222 Diff 2 (ID 781) by flokkievids (Folkert de Vries).

7 years agoAdd include needed for clang, quiet warning
Campbell Barton [Sun, 2 Feb 2014 10:33:52 +0000 (21:33 +1100)]
Add include needed for clang, quiet warning

7 years agoBMesh: optimize loop_find_regions, reserve array size
Campbell Barton [Sun, 2 Feb 2014 06:41:02 +0000 (17:41 +1100)]
BMesh: optimize loop_find_regions, reserve array size

7 years agoBMesh: optimize lookups for triangle fill
Campbell Barton [Sun, 2 Feb 2014 06:09:38 +0000 (17:09 +1100)]
BMesh: optimize lookups for triangle fill

7 years agoSmallhash: add reserve option to avoid resizing when size is known
Campbell Barton [Sun, 2 Feb 2014 06:08:26 +0000 (17:08 +1100)]
Smallhash: add reserve option to avoid resizing when size is known

7 years agoSmallhash: fixes/improvements
Campbell Barton [Sun, 2 Feb 2014 05:22:05 +0000 (16:22 +1100)]
Smallhash: fixes/improvements

- use magic numbers based on uintptr max, not uint max, to avoid possible collisions with real pointer values on 64bit systems.
- comment BLI_smallhash_remove for now, its not used.
- added smallhash_val_is_used replacing ELEM() checks
- updated docs

7 years agoSmallhash: optimizations
Campbell Barton [Sat, 1 Feb 2014 15:19:11 +0000 (02:19 +1100)]
Smallhash: optimizations

- remove static array used only for copying (use alloca on resize)
- set SMSTACKSIZE to one of the values in 'hashsizes' since the full available size was never used.
- ensure ~1.5x as many buckets as entries, was 3x which caused malloc's quite early on.

7 years agoCode cleanup: use length squared where possible
Campbell Barton [Sat, 1 Feb 2014 14:36:40 +0000 (01:36 +1100)]
Code cleanup: use length squared where possible

7 years agoMath lib: simplify size_to_mat4 and use in b_bone_spline_setup
Campbell Barton [Sat, 1 Feb 2014 14:27:06 +0000 (01:27 +1100)]
Math lib: simplify size_to_mat4 and use in b_bone_spline_setup

7 years agoMath lib: add axis_angle_normalized_to_quat, use when length is known
Campbell Barton [Sat, 1 Feb 2014 10:32:34 +0000 (21:32 +1100)]
Math lib: add axis_angle_normalized_to_quat, use when length is known

7 years agoFix T38432, Fix 38432: more stupid error in view3d ray code, sorry about that.
Bastien Montagne [Sat, 1 Feb 2014 14:06:13 +0000 (15:06 +0100)]
Fix T38432, Fix 38432: more stupid error in view3d ray code, sorry about that.

7 years agoCycles: less instructions for CPU perlin code
Sv. Lockal [Sat, 1 Feb 2014 10:07:53 +0000 (14:07 +0400)]
Cycles: less instructions for CPU perlin code

Also move shuffle() in bvh traversal back (was accidentally lost in SSE hair revert)

7 years agoFix player stub after type change
Jens Verwiebe [Fri, 31 Jan 2014 19:56:51 +0000 (20:56 +0100)]
Fix player stub after type change

7 years agoCode cleanup: be less vague checking invalid index values
Campbell Barton [Fri, 31 Jan 2014 14:45:09 +0000 (01:45 +1100)]
Code cleanup: be less vague checking invalid index values

7 years agoFix for error setting unique names for tracks
Campbell Barton [Fri, 31 Jan 2014 14:40:57 +0000 (01:40 +1100)]
Fix for error setting unique names for tracks

7 years agoCode cleanup: comments and warnings
Campbell Barton [Fri, 31 Jan 2014 13:51:53 +0000 (00:51 +1100)]
Code cleanup: comments and warnings

7 years agoSCons: Simplify Endian determination
Lawrence D'Oliveiro [Fri, 31 Jan 2014 12:20:06 +0000 (13:20 +0100)]
SCons: Simplify Endian determination

Differential Revision:

7 years agoFix compilation error with msvc2012 and 2013 as well
Sergey Sharybin [Fri, 31 Jan 2014 09:30:36 +0000 (15:30 +0600)]
Fix compilation error with msvc2012 and 2013 as well

7 years agoFix for T32843
gaiaclary [Fri, 31 Jan 2014 08:35:00 +0000 (09:35 +0100)]
Fix for T32843

Exported angles for spot size animation is in radians , however Collada expects it to be in degrees.
This patch is for fixing import and export, and also renaming a variable

Reviewers: gaiaclary

Reviewed By: gaiaclary

Differential Revision:

7 years agoEvents: fix for wmEvent prevx, prevy not updating
Campbell Barton [Thu, 30 Jan 2014 20:41:32 +0000 (07:41 +1100)]
Events: fix for wmEvent prevx, prevy not updating

7 years agoMore snapping fixes (this is ridiculous).
Bastien Montagne [Thu, 30 Jan 2014 17:48:49 +0000 (18:48 +0100)]
More snapping fixes (this is ridiculous).

I hope this time we are done!

7 years agoCode cleanup: remove BLI_has_parent
Campbell Barton [Thu, 30 Jan 2014 16:28:53 +0000 (03:28 +1100)]
Code cleanup: remove BLI_has_parent

7 years agoCode cleanup: add BLI_testextensie_n, replacing multuple calls to BLI_testextensie
Campbell Barton [Thu, 30 Jan 2014 16:09:01 +0000 (03:09 +1100)]
Code cleanup: add BLI_testextensie_n, replacing multuple calls to BLI_testextensie

also use attributes for BLI path functions

7 years agoFix T38409: Snapping Bug
Bastien Montagne [Thu, 30 Jan 2014 16:11:10 +0000 (17:11 +0100)]
Fix T38409: Snapping Bug

Issue partially caused by own errors (glicth in new BKE_boundbox_ray_hit_check() code causing segfault in volume snapping,
and we have to treat ortho and persp differently in case of face snapping, because in persp our ray_start might very well
already be *inside* the boundbox of the checked object), and partly due to the fact that ED_view3d_win_to_vector()
was returning wrong vector (negated one) for ortho views (see previous commit).

7 years agoFix a nice bug in ED_view3d_win_to_vector() - vector returned for an ortho view was...
Bastien Montagne [Thu, 30 Jan 2014 15:48:29 +0000 (16:48 +0100)]
Fix a nice bug in ED_view3d_win_to_vector() - vector returned for an ortho view was negated compared to vector returned for the same view in perspective...

Found while working on snapping issues, confirmed using bisect tool: previous to this commit, inner/outer parts were swapped when switching from otho to persp!

7 years agoFix for crash linking node groups through
Campbell Barton [Thu, 30 Jan 2014 13:53:02 +0000 (00:53 +1100)]
Fix for crash linking node groups through

Defer creating the Python objects until after appending is finished
because NodeTree's types are not initialized until then.

7 years agoFix T38403: Laplacian smooth on instanced objects leads to crash.
Lukas Tönne [Thu, 30 Jan 2014 12:06:48 +0000 (13:06 +0100)]
Fix T38403: Laplacian smooth on instanced objects leads to crash.

The laplacian modifiers (smooth and deform) use the OpenNL library,
which is not threadsafe due to the use of a global context variable.
Ideally this would be changed so that an explicit context can be
created for every caller of the OpenNL functions, but since OpenNL's
most recent version is from 2010 this is unlikely to happen.

As a workaround for now just use a mutex to prevent conflicting OpenNL
calls. Eventually OpenNL can be replaced by eigen or ceres.

7 years agoFix T38358: typo in own rB77089a3bf203.
Bastien Montagne [Thu, 30 Jan 2014 10:51:34 +0000 (11:51 +0100)]
Fix T38358: typo in own rB77089a3bf203.

Also allowed me to fine another potential issue, hit.dist was no more initialized correctly - and I had forgotten to take into account Brecht's remark about normalize_v3() also returning the vector's previous length.

7 years agoSmallhash: refactor and fixes
Campbell Barton [Thu, 30 Jan 2014 09:51:44 +0000 (20:51 +1100)]
Smallhash: refactor and fixes

- BLI_smallhash_remove didnt decrement total entries.
- rename vars to match closer to ghash.
- smallhash_lookup returns NULL when no entry found.
- using a zero value key wasn't supported.
- no need to memset or calloc bucket arrays
- add asserts for unsupported conditions.
- added BLI_smallhash_lookup_p

7 years agoPyAPI: noise.seed_set(), note that zero is a special case.
Campbell Barton [Thu, 30 Jan 2014 06:54:06 +0000 (17:54 +1100)]
PyAPI: noise.seed_set(), note that zero is a special case.

7 years agoFix T38402: invalid message for bad type assignments (Quat, Vector)
Campbell Barton [Thu, 30 Jan 2014 05:45:20 +0000 (16:45 +1100)]
Fix T38402: invalid message for bad type assignments (Quat, Vector)

7 years agoCode cleanup: remove (now) redundant empty text with icon_only
Campbell Barton [Thu, 30 Jan 2014 05:31:57 +0000 (16:31 +1100)]
Code cleanup: remove (now) redundant empty text with icon_only

7 years agoUI: move toggle icons out of layout checks into rna
Campbell Barton [Thu, 30 Jan 2014 05:24:51 +0000 (16:24 +1100)]
UI: move toggle icons out of layout checks into rna

7 years agoUI API: don't use a text label when icon_only is set
Campbell Barton [Thu, 30 Jan 2014 04:28:39 +0000 (15:28 +1100)]
UI API: don't use a text label when icon_only is set

7 years agoWarnings: quiet unused define message
Campbell Barton [Thu, 30 Jan 2014 04:26:22 +0000 (15:26 +1100)]
Warnings: quiet unused define message

7 years agoFix T38400: crash in image_listener accessing deleted object.
Brecht Van Lommel [Wed, 29 Jan 2014 19:28:18 +0000 (20:28 +0100)]
Fix T38400: crash in image_listener accessing deleted object.

Listeners should never dereference this pointer because the object may have
been deleted, it can only be used for comparisons.

7 years agoFix T38358: Face snapping fails on Orthographic view
Bastien Montagne [Wed, 29 Jan 2014 19:10:03 +0000 (20:10 +0100)]
Fix T38358: Face snapping fails on Orthographic view

Issue is caused by start point of ray used to detect faces under the mouse is set rather far away in ortho 3dviews.
The loss of precision on the ray location induced by this can lead to face snapping failures.

Solution is to do the raycasting with a temp start point, much closer to the object we check, and add back
to the found distance the diff to the real start point once detection is done (as we need all hit distances
from all tested objects to be relative to a common point!).

Note this commit only addresses the "face snapping on mesh" case, other kind of snapping do not seem to suffer
from this issue.

Reviewers: brecht, campbellbarton

Differential Revision:

7 years agoFix T37661: color ramps and curve mapping editing not disabled for linked data.
Brecht Van Lommel [Wed, 29 Jan 2014 18:02:32 +0000 (19:02 +0100)]
Fix T37661: color ramps and curve mapping editing not disabled for linked data.

7 years agoCode cleanup: remove redundant makesrna call with platform "linuxcross".
Lawrence D'Oliveiro [Wed, 29 Jan 2014 17:28:51 +0000 (18:28 +0100)]
Code cleanup: remove redundant makesrna call with platform "linuxcross".

Reviewed By: brecht

Differential Revision:

7 years agoFix accidental description change in recent commit.
Brecht Van Lommel [Wed, 29 Jan 2014 17:28:09 +0000 (18:28 +0100)]
Fix accidental description change in recent commit.

7 years agoFix bone transform issue where the bone roll depends on intermediate mouse positions.
Brecht Van Lommel [Wed, 29 Jan 2014 15:59:23 +0000 (16:59 +0100)]
Fix bone transform issue where the bone roll depends on intermediate mouse positions.

It computed the roll compatible with the previous mouse position roll value,
now it uses the initial roll value.

7 years agoUpdate Edit Mode tabs for mesh objects
Jonathan Williamson [Wed, 29 Jan 2014 15:53:20 +0000 (09:53 -0600)]
Update Edit Mode tabs for mesh objects

This greatly improves the mesh edit tabs after a few weeks of feedback, making the tabs more practical with less need to switch tabs often.  Based on discussion on IRC and T37568.

Reviewers: campbellbarton

CC: campbellbarton, brecht
Reviewers: campbellbarton

Reviewed By: campbellbarton

CC: campbellbarton, brecht
Differential Revision:

7 years agoFix T38359: incorrect display of material slot with pinned particle settings.
Brecht Van Lommel [Wed, 29 Jan 2014 15:50:37 +0000 (16:50 +0100)]
Fix T38359: incorrect display of material slot with pinned particle settings.

Just hide it in this case, the material slot is not really valid without an
object in the context.

7 years agoFix T36955: API docs referred to sys.maxint which does not exist in Python 3.
Brecht Van Lommel [Wed, 29 Jan 2014 15:49:12 +0000 (16:49 +0100)]
Fix T36955: API docs referred to sys.maxint which does not exist in Python 3.

7 years agoFix T37038: user preferences > input category names unnecessarily cut off.
Brecht Van Lommel [Wed, 29 Jan 2014 15:36:42 +0000 (16:36 +0100)]
Fix T37038: user preferences > input category names unnecessarily cut off.

7 years agoFix T38393: bone roll not restored properly after cancelling rotation of bones.
Brecht Van Lommel [Wed, 29 Jan 2014 15:11:34 +0000 (16:11 +0100)]
Fix T38393: bone roll not restored properly after cancelling rotation of bones.

7 years agorenamed unclear API parameter
gaiaclary [Wed, 29 Jan 2014 14:37:02 +0000 (15:37 +0100)]
renamed unclear API parameter

7 years agoFix T38388: Creating a new scene with full copy sets rigidbody collision shapes to...
Sergej Reich [Wed, 29 Jan 2014 14:02:45 +0000 (15:02 +0100)]
Fix T38388: Creating a new scene with full copy sets rigidbody collision shapes to box.

Tweak world rebuilding logic, so it's not done before object data was

7 years agoFix sconscript syntax error when using python 2.x instead of 3.x.
Brecht Van Lommel [Wed, 29 Jan 2014 13:50:20 +0000 (14:50 +0100)]
Fix sconscript syntax error when using python 2.x instead of 3.x.

7 years agoScons: Some tweaks for f70d9660474c, we don't need SSE41 kernel for 32bit, nor vc2008...
Thomas Dinges [Wed, 29 Jan 2014 12:29:06 +0000 (13:29 +0100)]
Scons: Some tweaks for f70d9660474c, we don't need SSE41 kernel for 32bit, nor vc2008 x64.

7 years agoUI: Make "Lock Interface" a icon only button and pack into the Display row, we don...
Thomas Dinges [Wed, 29 Jan 2014 12:27:33 +0000 (13:27 +0100)]
UI: Make "Lock Interface" a icon only button and pack into the Display row, we don't need a dedicated row for this option, also it looked quite bad for Cycles.

7 years agoUI: minor optimization for button lookup, break early when button found
Campbell Barton [Wed, 29 Jan 2014 12:04:20 +0000 (23:04 +1100)]
UI: minor optimization for button lookup, break early when button found

also reduce int/float conversion

7 years agoMove depsgraph debug print under --debug-depsgraph command line argument
Sergey Sharybin [Wed, 29 Jan 2014 11:37:45 +0000 (17:37 +0600)]
Move depsgraph debug print under --debug-depsgraph command line argument

7 years agoOption to lock the interface while rendering
Sergey Sharybin [Wed, 29 Jan 2014 10:07:14 +0000 (16:07 +0600)]
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

  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:

7 years agoUI: Refactor timecode functions into BLI_timecode
Campbell Barton [Wed, 29 Jan 2014 09:01:30 +0000 (20:01 +1100)]
UI: Refactor timecode functions into BLI_timecode

- deduplicate timecode_simple_string from image.c
- 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.

7 years agoScons: refactor cycles kernel code to avoid building the AVX kernel with
Brecht Van Lommel [Tue, 28 Jan 2014 21:56:12 +0000 (22:56 +0100)]
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.

7 years agoFix T37999: incorrect windows size with Visual Studio 2013 builds.
Brecht Van Lommel [Tue, 28 Jan 2014 20:35:55 +0000 (21:35 +0100)]
Fix T37999: incorrect windows size with Visual Studio 2013 builds.

This is a known bug in Windows, now work around it.

7 years agoRNA: add rna_space_api.c for space functions
Campbell Barton [Tue, 28 Jan 2014 20:30:42 +0000 (07:30 +1100)]
RNA: add rna_space_api.c for space functions

7 years agoFile Reading: add revert operator
Campbell Barton [Tue, 28 Jan 2014 18:34:57 +0000 (05:34 +1100)]
File Reading: add revert operator

Patch D247 by Evans Jahja with edits

7 years agoFile Reading: add wrapper function for WM_file_read
Campbell Barton [Tue, 28 Jan 2014 18:33:05 +0000 (05:33 +1100)]
File Reading: add wrapper function for WM_file_read

also return cancelled when an operator fails to load a file

7 years agoBevel: fix glitch in "pipe" case with square profile.
Howard Trickey [Tue, 28 Jan 2014 18:18:43 +0000 (13:18 -0500)]
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).

7 years agoCuda use streams and async to avoid busywaiting
Martijn Berger [Tue, 28 Jan 2014 17:40:08 +0000 (18:40 +0100)]
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 >
<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:

7 years agoFix T38383: glitch drawing inactive slider
Campbell Barton [Tue, 28 Jan 2014 17:10:39 +0000 (04:10 +1100)]
Fix T38383: glitch drawing inactive slider

7 years agoViewport Drawing: apply matcaps to all objects
Campbell Barton [Tue, 28 Jan 2014 16:39:19 +0000 (03:39 +1100)]
Viewport Drawing: apply matcaps to all objects

7 years agoCode cleanup: remove check for painting non-mesh objects (its impossible)
Campbell Barton [Tue, 28 Jan 2014 16:38:07 +0000 (03:38 +1100)]
Code cleanup: remove check for painting non-mesh objects (its impossible)

7 years agoFix unused variable in the right way
Sergey Sharybin [Tue, 28 Jan 2014 16:14:50 +0000 (22:14 +0600)]
Fix unused variable in the right way

It IS to be used :)

7 years agoCode cleanup: unused var
Campbell Barton [Tue, 28 Jan 2014 15:55:27 +0000 (02:55 +1100)]
Code cleanup: unused var

7 years agoFix T38367: operators activated from popups didnt reuse settings
Campbell Barton [Tue, 28 Jan 2014 15:52:06 +0000 (02:52 +1100)]
Fix T38367: operators activated from popups didnt reuse settings

7 years agoCode cleanup: pep8
Campbell Barton [Tue, 28 Jan 2014 15:16:16 +0000 (02:16 +1100)]
Code cleanup: pep8

7 years agoFix T38381, Fix T38184: key events getting lost when modal operator is running.
Brecht Van Lommel [Tue, 28 Jan 2014 14:52:20 +0000 (15:52 +0100)]
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.

7 years agoFix for a typo reported by flokkievids through code review comments D163#1.
Tamito Kajiyama [Thu, 2 Jan 2014 01:19:50 +0000 (10:19 +0900)]
Fix for a typo reported by flokkievids through code review comments D163#1.

7 years agoMoved the Operators class from the 'freestyle' module to the 'freestyle.types' submodule.
Tamito Kajiyama [Mon, 30 Dec 2013 14:43:47 +0000 (23:43 +0900)]
Moved the Operators class from the 'freestyle' module to the 'freestyle.types' submodule.

7 years agoPatch set by Folkert Vries (flokkievids) with respect to (F32402).
Tamito Kajiyama [Mon, 30 Dec 2013 14:26:31 +0000 (23:26 +0900)]
Patch set by Folkert Vries (flokkievids) with respect to (F32402).
Applied with minor modifications.