blender.git
4 years agoFix T46306: Cursor sometimes jumps with num-slider buttons & Continuous Grab
Julian Eisel [Tue, 29 Sep 2015 23:04:11 +0000 (01:04 +0200)]
Fix T46306: Cursor sometimes jumps with num-slider buttons & Continuous Grab

More precise description of the issue: Clicking on the right side of a num-slider button with Continuous Grab enabled sometimes caused cursor to jump to the inner value indicator even though text editing was started.

Happened because data->ungrab_mval wasn't reset correctly after dragging.

4 years agoAdd drag-threshold for number slider buttons
Julian Eisel [Tue, 29 Sep 2015 17:56:09 +0000 (19:56 +0200)]
Add drag-threshold for number slider buttons

Was already used for normal number buttons for ages, makes sense to use here too.

4 years agoFix T46299: Windows: File Browser Crash while listing big folders in preview mode...
Bastien Montagne [Tue, 29 Sep 2015 17:54:25 +0000 (19:54 +0200)]
Fix T46299: Windows: File Browser Crash while listing big folders in preview mode (fonts, images...).

Windows-only bug, mmap & co are not threadsafe by default on this platform, so we have to add a dedicated
spinlock for them in win32.

Note that we may try to get rid of those mmap later, but not for 2.76!

To be backported to final 2.76...

4 years agoi18n extraction tools: keep even better order of entries in PO files.
Bastien Montagne [Mon, 28 Sep 2015 18:19:54 +0000 (20:19 +0200)]
i18n extraction tools: keep even better order of entries in PO files.

Important to avoid too much changes, especially on the git repo (we are still getting
way too much changes there currently...).

4 years agoBlender Internal: Fix regression in point density texture
Sergey Sharybin [Mon, 28 Sep 2015 16:10:17 +0000 (21:10 +0500)]
Blender Internal: Fix regression in point density texture

The issue was introduced by original Cycles point density support commit,
it lead to a constant density of 1 for object verticies point density source.

4 years agoCycles: Fix wrong particles min/max calculation for point density
Sergey Sharybin [Mon, 28 Sep 2015 15:10:01 +0000 (20:10 +0500)]
Cycles: Fix wrong particles min/max calculation for point density

Solves wrong object mapping reported in T46301.

4 years agoFix T46293: Text Editor: Convert to spaces/to tabs was totally broken with non-ASCII...
Bastien Montagne [Mon, 28 Sep 2015 08:04:37 +0000 (10:04 +0200)]
Fix T46293: Text Editor: Convert to spaces/to tabs was totally broken with non-ASCII strings.

Code was totally unaware of UTF8, also it was needlessly complicated...

4 years agoBGE docs fix: link to the correct method name
Sybren A. Stüvel [Sun, 27 Sep 2015 15:19:30 +0000 (17:19 +0200)]
BGE docs fix: link to the correct method name

4 years agoBGE documentation updates
Sybren A. Stüvel [Sun, 27 Sep 2015 14:32:16 +0000 (16:32 +0200)]
BGE documentation updates

Mostly added missing :arg: clauses -- these caused the :type:-clauses
that were already in the RST files to be hidden from the output HTML.

I also fixed some argument types from 'list' to 'Vector' where applicable
and corrected some obvious mistakes.

4 years agoFix T46285: "Select parent" if there is no parent doesn't work correctly.
Bastien Montagne [Sun, 27 Sep 2015 08:24:11 +0000 (10:24 +0200)]
Fix T46285: "Select parent" if there is no parent doesn't work correctly.

4 years agoFix T46268: All Hotkey "C" are unexpectedly translated in menus.
Bastien Montagne [Sun, 27 Sep 2015 07:49:41 +0000 (09:49 +0200)]
Fix T46268: All Hotkey "C" are unexpectedly translated in menus.

We need custom context here, those are often very short names so context collision is pretty easy.

Also some minor changes (and avoid shadowing varnames)...

4 years agoFix T46271: switching between textures in texture buttons not updating preview.
Brecht Van Lommel [Sun, 27 Sep 2015 00:40:30 +0000 (02:40 +0200)]
Fix T46271: switching between textures in texture buttons not updating preview.

4 years agoFix T46212: blender internal lights in exclusive light group wrong in viewport.
Brecht Van Lommel [Sun, 27 Sep 2015 00:17:12 +0000 (02:17 +0200)]
Fix T46212: blender internal lights in exclusive light group wrong in viewport.

4 years agoFix crash reporting render errors during baking.
Brecht Van Lommel [Tue, 22 Sep 2015 22:28:53 +0000 (00:28 +0200)]
Fix crash reporting render errors during baking.

4 years agoFix file browser not sorting file list when opened from editor menu
Julian Eisel [Sat, 26 Sep 2015 11:37:46 +0000 (13:37 +0200)]
Fix file browser not sorting file list when opened from editor menu

4 years agoUse PyThreadState_GetDict, avoid Python internals
Campbell Barton [Sat, 26 Sep 2015 01:58:31 +0000 (11:58 +1000)]
Use PyThreadState_GetDict, avoid Python internals

Works around problems caused by exposing Py internals (Py_BUILD_CORE).

- Build error with GCC, Py3.6 & OpenMP
- Linking error on MSVC

4 years agoFix T46260: Shadeless option ignores Object-Color
Campbell Barton [Fri, 25 Sep 2015 15:36:27 +0000 (01:36 +1000)]
Fix T46260: Shadeless option ignores Object-Color

4 years agoFix node auto-offset to left broken
Julian Eisel [Fri, 25 Sep 2015 15:08:33 +0000 (17:08 +0200)]
Fix node auto-offset to left broken

Own, really stupid mistake in rBc653077bf56 :| Kids, don't commit at night!

4 years agoFix T46249: Boid goal object that has a force field set to 'Every Point' shape causes...
Bastien Montagne [Fri, 25 Sep 2015 13:51:33 +0000 (15:51 +0200)]
Fix T46249: Boid goal object that has a force field set to 'Every Point' shape causes crash.

This is a mere bandage, that whole area is known broken anyway, but at least it should prevent the crash.

Note that that kind of stuff (the efd->index being a pointer) is really bad practice imho...

Should be backported to final 2.76.

4 years agoFix T46239: Cross effect strip input fields can't be changed (in its properties panel).
Bastien Montagne [Fri, 25 Sep 2015 08:54:38 +0000 (10:54 +0200)]
Fix T46239: Cross effect strip input fields can't be changed (in its properties panel).

Those shall not be editable in UI...

4 years agoFix T46263: bpy api - assigning to object.matrix_basis with AXIS_ANGLE rotation mode...
Bastien Montagne [Fri, 25 Sep 2015 07:03:30 +0000 (09:03 +0200)]
Fix T46263: bpy api - assigning to object.matrix_basis with AXIS_ANGLE rotation mode does not work correctly.

Drot in axis angle does not make that much sense anyway (it's even disabled in UI), but let's apply
it correctly at least!

4 years agoFix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU comput...
Bastien Montagne [Fri, 25 Sep 2015 06:38:45 +0000 (08:38 +0200)]
Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU compute would be -INF.

Trivial fix, to be backported to final 2.76 if possible.

4 years agoCleanup: And one more commit... (BVH Cache).
Thomas Dinges [Thu, 24 Sep 2015 15:01:58 +0000 (17:01 +0200)]
Cleanup: And one more commit... (BVH Cache).

4 years agoCleanup: Remove some more BVH cache code, for reading/writing the cache.
Thomas Dinges [Thu, 24 Sep 2015 14:49:10 +0000 (16:49 +0200)]
Cleanup: Remove some more BVH cache code, for reading/writing the cache.

4 years agoCleanup: Remove some underlying code for the BVH disk cache.
Thomas Dinges [Thu, 24 Sep 2015 13:47:27 +0000 (15:47 +0200)]
Cleanup: Remove some underlying code for the BVH disk cache.

Notes:
- There is still some bvh cache code, but that is from the engines initial commit, we might clean this up further or keep it.
- Changes in util_cache.h/.c are kept, this might be re-used in the future.

4 years agoCleanup: Typo fixes in OpenCL log messages.
Thomas Dinges [Thu, 24 Sep 2015 13:34:41 +0000 (15:34 +0200)]
Cleanup: Typo fixes in OpenCL log messages.

4 years agoCycles: Remove the BVH cache feature
Thomas Dinges [Thu, 24 Sep 2015 13:30:15 +0000 (15:30 +0200)]
Cycles: Remove the BVH cache feature

This removes the BVH cache feature from the UI, underlying code will be removed in a separate commit.

The BVH cache was added before we had a multi-threaded BVH build, and a lot of other optimizations were done since then, which makes this not useful anymore.

Fix T46162.

4 years agoMultiview: fix Image Editor not showing Views menu when rendering
Dalai Felinto [Thu, 24 Sep 2015 11:34:54 +0000 (08:34 -0300)]
Multiview: fix Image Editor not showing Views menu when rendering
non-stereo Multi-View camera rigs (unreported)

4 years agoAdd test scripts to ctest & rename
Campbell Barton [Thu, 24 Sep 2015 10:49:44 +0000 (20:49 +1000)]
Add test scripts to ctest & rename

4 years agoFix T46226: Bake normals multi-res crash
Campbell Barton [Thu, 24 Sep 2015 10:14:51 +0000 (20:14 +1000)]
Fix T46226: Bake normals multi-res crash

4 years agoFix T45865: NLA: Auto Blend is not recalculated when adjusting repeat.
Bastien Montagne [Thu, 24 Sep 2015 08:53:09 +0000 (10:53 +0200)]
Fix T45865: NLA: Auto Blend is not recalculated when adjusting repeat.

4 years agoFix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph
Sergey Sharybin [Thu, 24 Sep 2015 08:13:00 +0000 (13:13 +0500)]
Fix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph

The issue was caused by driver referencing path outside of the key datablock.

4 years agoFix T46232: Boids crash w/ random rule selection
Campbell Barton [Thu, 24 Sep 2015 06:07:30 +0000 (16:07 +1000)]
Fix T46232: Boids crash w/ random rule selection

4 years agoQuiet warning
Campbell Barton [Thu, 24 Sep 2015 05:17:02 +0000 (15:17 +1000)]
Quiet warning

4 years agoKnife: Improve clamping extents in ortho view
Campbell Barton [Thu, 24 Sep 2015 03:34:26 +0000 (13:34 +1000)]
Knife: Improve clamping extents in ortho view

- measure extents from mesh center instead of origin.
- use clamping method, guaranteed not to flip the input vectors direction.
- use cage coords when available (since knife operates on the cage).

4 years agoFix T46219: Knife cuts fail away from center
Campbell Barton [Wed, 23 Sep 2015 16:58:08 +0000 (02:58 +1000)]
Fix T46219: Knife cuts fail away from center

4 years agoFix T46225: Crash when rendering halo flare
Dalai Felinto [Wed, 23 Sep 2015 16:35:01 +0000 (13:35 -0300)]
Fix T46225: Crash when rendering halo flare

Error introduced in the multiview commit.
Also bringing back the "continue" statement instead of "return", as it
was before multiview.

4 years agoFix T46222: Eyedrop picking objects inconsistently
Campbell Barton [Wed, 23 Sep 2015 15:45:19 +0000 (01:45 +1000)]
Fix T46222: Eyedrop picking objects inconsistently

4 years agoFix T46220: Add torus has no 'layers' option
Campbell Barton [Wed, 23 Sep 2015 15:03:34 +0000 (01:03 +1000)]
Fix T46220: Add torus has no 'layers' option

Add layers property for all operators using AddObjectHelper

4 years agoFix UV editor scope background color not correct after theme reset
Julian Eisel [Wed, 23 Sep 2015 13:59:47 +0000 (15:59 +0200)]
Fix UV editor scope background color not correct after theme reset

Missed to do that in rBcbeb76da952cd.

4 years agoWorkaround for linking Python on win32
Campbell Barton [Wed, 23 Sep 2015 13:19:55 +0000 (23:19 +1000)]
Workaround for linking Python on win32

4 years agoFix T46215: Explode modifier looses textures
Campbell Barton [Wed, 23 Sep 2015 12:57:00 +0000 (22:57 +1000)]
Fix T46215: Explode modifier looses textures

4 years agoFix T46217: Make normal artifacts
Campbell Barton [Wed, 23 Sep 2015 10:15:37 +0000 (20:15 +1000)]
Fix T46217: Make normal artifacts

4 years agoCycles: Support building with latest OSL-1.7dev
Sergey Sharybin [Wed, 23 Sep 2015 07:23:37 +0000 (12:23 +0500)]
Cycles: Support building with latest OSL-1.7dev

So now the following OSL versions are supported (at least for compilation):

- 1.5 with closure alignment patch applied
- 1.6.8 release
- 1.7 development version from latest git

4 years agoFix T46202: OS X (and Windows?) crash when going fullscreen.
Brecht Van Lommel [Tue, 22 Sep 2015 21:16:21 +0000 (23:16 +0200)]
Fix T46202: OS X (and Windows?) crash when going fullscreen.

Calling event handling recursively during window live resize is problematic,
the code wasn't designed to do that. Instead postpone event handling until
after live resize.

4 years agoUpdate module test to pass w/o freestyle enabled
Campbell Barton [Tue, 22 Sep 2015 17:34:37 +0000 (03:34 +1000)]
Update module test to pass w/o freestyle enabled

4 years agoUpdate test to RNA API
Campbell Barton [Tue, 22 Sep 2015 17:11:17 +0000 (03:11 +1000)]
Update test to RNA API

4 years agoShow error when unsupported movie format used
Campbell Barton [Tue, 22 Sep 2015 16:40:08 +0000 (02:40 +1000)]
Show error when unsupported movie format used

Was silently failing.

4 years agoprevent assert: select-linked UV delimit w/o UV's
Campbell Barton [Tue, 22 Sep 2015 13:51:34 +0000 (23:51 +1000)]
prevent assert: select-linked UV delimit w/o UV's

4 years agoOpenSubdiv: Fix crash with empty mesh
Sergey Sharybin [Tue, 22 Sep 2015 16:10:23 +0000 (21:10 +0500)]
OpenSubdiv: Fix crash with empty mesh

Reported by newbz in IRC, thanks!

4 years agoFFmpeg: Solve memory leak happening on encoding video
Sergey Sharybin [Tue, 22 Sep 2015 16:09:39 +0000 (21:09 +0500)]
FFmpeg: Solve memory leak happening on encoding video

4 years agoFix T46194: Crash rendering particles
Campbell Barton [Tue, 22 Sep 2015 12:14:19 +0000 (22:14 +1000)]
Fix T46194: Crash rendering particles

Off by one error in 38940662

4 years agoInstall_deps: Hopefully fix broken checks for numpy package in fedora-like distro.
Bastien Montagne [Tue, 22 Sep 2015 09:00:35 +0000 (11:00 +0200)]
Install_deps: Hopefully fix broken checks for numpy package in fedora-like distro.

4 years agoInstall_deps: Add command line options to saved BUILD_NOTES.txt.
Bastien Montagne [Tue, 22 Sep 2015 07:45:01 +0000 (09:45 +0200)]
Install_deps: Add command line options to saved BUILD_NOTES.txt.

Requested by Daniel Salazar (zanqdo) over IRC.

4 years agoFix report banner text width
Campbell Barton [Tue, 22 Sep 2015 07:18:43 +0000 (17:18 +1000)]
Fix report banner text width

4 years agoReporting was done before before addons were loaded
Campbell Barton [Tue, 22 Sep 2015 06:45:23 +0000 (16:45 +1000)]
Reporting was done before before addons were loaded

On the very first start, reporting of missing engines wasn't working.

4 years agoRemove arbitrary simulation time limit in liquid sim. Tested and works fine with...
ZanQdo [Tue, 22 Sep 2015 06:35:01 +0000 (00:35 -0600)]
Remove arbitrary simulation time limit in liquid sim. Tested and works fine with more than 100s

4 years agoFix for error reporting w/ a new-file
Campbell Barton [Tue, 22 Sep 2015 05:56:03 +0000 (15:56 +1000)]
Fix for error reporting w/ a new-file

Reports are now initialized before reading startup.blend

4 years agoCleanup: indentation
Campbell Barton [Tue, 22 Sep 2015 05:02:11 +0000 (15:02 +1000)]
Cleanup: indentation

4 years agoReport loading file with no matching engine
Campbell Barton [Tue, 22 Sep 2015 03:30:12 +0000 (13:30 +1000)]
Report loading file with no matching engine

Re-enable old code, now show in header instead of popup.

4 years agoCleanup: de-duplicate post file read update calls
Campbell Barton [Tue, 22 Sep 2015 02:50:41 +0000 (12:50 +1000)]
Cleanup: de-duplicate post file read update calls

4 years agoFix T46201: Popup menu in post_load handler crash
Campbell Barton [Tue, 22 Sep 2015 02:23:24 +0000 (12:23 +1000)]
Fix T46201: Popup menu in post_load handler crash

Match regular file loading logic for new-file operator.

4 years agoFix bplayer (c).
Bastien Montagne [Mon, 21 Sep 2015 15:40:50 +0000 (17:40 +0200)]
Fix bplayer (c).

4 years agoCleanup: use malloc when calloc is overwritten
Campbell Barton [Mon, 21 Sep 2015 15:03:32 +0000 (01:03 +1000)]
Cleanup: use malloc when calloc is overwritten

4 years agoMakefile: show build dir when configuring
Campbell Barton [Mon, 21 Sep 2015 14:16:53 +0000 (00:16 +1000)]
Makefile: show build dir when configuring

4 years agoSequencer: show X,Y in text effect location
Campbell Barton [Mon, 21 Sep 2015 14:15:37 +0000 (00:15 +1000)]
Sequencer: show X,Y in text effect location

4 years agoArmature drawing: custom shape scale options
Campbell Barton [Mon, 21 Sep 2015 13:49:58 +0000 (23:49 +1000)]
Armature drawing: custom shape scale options

- Custom scale:
  Avoids having multiple custom-shapes at different sizes.
- Option not to use bones length:
  So changes in edit-mode don't resize the custom-shape.

4 years agoRender: Free persistent image storage when loading new file
Sergey Sharybin [Mon, 21 Sep 2015 13:41:36 +0000 (18:41 +0500)]
Render: Free persistent image storage when loading new file

4 years agoRecent change for Py3.6 compat caused fatal-error
Campbell Barton [Mon, 21 Sep 2015 13:02:50 +0000 (23:02 +1000)]
Recent change for Py3.6 compat caused fatal-error

Revert back to old method, and define Py_BUILD_CORE to expose internals.

4 years agoFix (unreported) Append/link code: All library datablocks could end with same name.
Bastien Montagne [Mon, 21 Sep 2015 13:01:55 +0000 (15:01 +0200)]
Fix (unreported) Append/link code: All library datablocks could end with same name.

This was broken since ages I think, did not really hurt since we usually never use libs' names
to access them. Rather bad behavior however, breaking a ground rule of our ID system!

And no real reason to add new libraries to new (split) Main at all, libraries are
never considered linked datablocks, which means they should always be in 'main' Main->library list.

Not a regression, but should be included in 2.76 imho.

4 years agoFix T46159: OpenSubdiv does not always give same results as Blender own subsurf code...
Sergey Sharybin [Mon, 21 Sep 2015 12:53:21 +0000 (17:53 +0500)]
Fix T46159: OpenSubdiv does not always give same results as Blender own subsurf code with crease edges

4 years agoSmall fix for depsgraph debug graphviz: empty labels for edges require an explicit id.
Lukas Tönne [Mon, 21 Sep 2015 10:46:07 +0000 (12:46 +0200)]
Small fix for depsgraph debug graphviz: empty labels for edges require an explicit id.

4 years agoSome minor tweaks to depsgraph debug graphviz output.
Lukas Tönne [Mon, 21 Sep 2015 10:16:30 +0000 (12:16 +0200)]
Some minor tweaks to depsgraph debug graphviz output.

- Removed relation labels, since these mostly just reflect connected nodes, and also appear too far off the edge lines
- Draw cyclic links in dark red
- Slightly thicker edges and larger margins

4 years agoFix view-selected w/ custom bone shapes
Campbell Barton [Mon, 21 Sep 2015 05:03:31 +0000 (15:03 +1000)]
Fix view-selected w/ custom bone shapes

Was ignoring bone-length, also check that drawing shapes is enabled.

4 years agoFix T46186: Panel doesn't update on brush change
Campbell Barton [Mon, 21 Sep 2015 00:32:14 +0000 (10:32 +1000)]
Fix T46186: Panel doesn't update on brush change

4 years agoFix linker warning about zero length memset.
Brecht Van Lommel [Sun, 20 Sep 2015 23:59:00 +0000 (01:59 +0200)]
Fix linker warning about zero length memset.

4 years agoFix T43715: IK pole target + stretch not working for a single bone chain.
Brecht Van Lommel [Sun, 20 Sep 2015 23:48:37 +0000 (01:48 +0200)]
Fix T43715: IK pole target + stretch not working for a single bone chain.

4 years agoRNA: angle step-sizes were too small
Campbell Barton [Sun, 20 Sep 2015 23:44:14 +0000 (09:44 +1000)]
RNA: angle step-sizes were too small

These were ignored previously, so it wasn't noticeable.

4 years agoFix node auto-offset failing during heavy compositing (sometimes)
Julian Eisel [Sun, 20 Sep 2015 22:55:37 +0000 (00:55 +0200)]
Fix node auto-offset failing during heavy compositing (sometimes)

Compositing might make main thread so busy that animation is considered done due to duration before final position is reached.

Also added check to avoid unnecessary redraws.

4 years agoFix T46050: blender internal geometry node UV not working inside node group.
Brecht Van Lommel [Sun, 20 Sep 2015 21:05:27 +0000 (23:05 +0200)]
Fix T46050: blender internal geometry node UV not working inside node group.

4 years agoFix T46144: blender internal face texture color wrong in raytraced reflection.
Brecht Van Lommel [Sun, 20 Sep 2015 20:51:10 +0000 (22:51 +0200)]
Fix T46144: blender internal face texture color wrong in raytraced reflection.

4 years agoFix compiling with GE
Julian Eisel [Sun, 20 Sep 2015 19:11:08 +0000 (21:11 +0200)]
Fix compiling with GE

Enabled Freestyle instead of GE :| Sry

4 years agoFix T46180: Theme > UV Image editor > Scope Background does not have any effect
Julian Eisel [Sun, 20 Sep 2015 18:17:19 +0000 (20:17 +0200)]
Fix T46180: Theme > UV Image editor > Scope Background does not have any effect

4 years agoCleanup: Use new vector transform functions
Julian Eisel [Sun, 20 Sep 2015 16:11:25 +0000 (18:11 +0200)]
Cleanup: Use new vector transform functions

4 years agoGL-utils: Add vector transform functions
Julian Eisel [Sun, 20 Sep 2015 15:21:06 +0000 (17:21 +0200)]
GL-utils: Add vector transform functions

Might also be useful to have _neg versions of these (done quite often),
but decided to keep it simple for now.

4 years agoCleanup: warning, style
Campbell Barton [Sun, 20 Sep 2015 20:59:50 +0000 (06:59 +1000)]
Cleanup: warning, style

4 years agofix build error w/ clang
Campbell Barton [Sun, 20 Sep 2015 10:27:09 +0000 (20:27 +1000)]
fix build error w/ clang

4 years agoWord wrap support for frame node
Campbell Barton [Sun, 20 Sep 2015 07:48:39 +0000 (17:48 +1000)]
Word wrap support for frame node

4 years agoFix T46169: Link to bpy API in addons tab of user preferences is outdated.
Bastien Montagne [Sun, 20 Sep 2015 07:49:36 +0000 (09:49 +0200)]
Fix T46169: Link to bpy API in addons tab of user preferences is outdated.

Now use auto-generated one, like e.g. for link in Help main menu...

4 years agoFix T46161: Rotate around selection changes bezier curve handle type.
Bastien Montagne [Sat, 19 Sep 2015 09:08:21 +0000 (11:08 +0200)]
Fix T46161: Rotate around selection changes bezier curve handle type.

Issue is, when 'Rotate Aroud Selection' is set, in Edit mode we do a fake transform operation
to get center point around which to rotate. For curves, most transform operations involve
a check of handle types. For now, added 'TFM_DUMMY' as an exception here.

Think it would be best to actually undo those changes in case of cancelled operation,
but this is much more involved, while this fix is safe enough to be included in final 2.76.

4 years agoFix for building w/ Python3.6
Campbell Barton [Sat, 19 Sep 2015 07:44:44 +0000 (17:44 +1000)]
Fix for building w/ Python3.6

4 years agoFix leak in UI Panels
Campbell Barton [Sat, 19 Sep 2015 07:38:36 +0000 (17:38 +1000)]
Fix leak in UI Panels

Switching screens quickly didn't free the panels activedata.

4 years agoUI: tooltip layout tweaks
Campbell Barton [Sat, 19 Sep 2015 05:11:57 +0000 (15:11 +1000)]
UI: tooltip layout tweaks

- enable word-wrap for all tip text to align vertically.
- draw enum identifier at the end of the last line, not first.

4 years agoBLF: correct ResultBLF.width value when wrapping
Campbell Barton [Sat, 19 Sep 2015 04:45:56 +0000 (14:45 +1000)]
BLF: correct ResultBLF.width value when wrapping

4 years agoUI: word-wrap for tooltips, broke text alignment
Campbell Barton [Sat, 19 Sep 2015 04:50:35 +0000 (14:50 +1000)]
UI: word-wrap for tooltips, broke text alignment

This wasn't visible with default settings,
but caused problems w/ pie-menu's & manually adjusted theme font-size.

Now only draw from the bound-box top w/ word-wrap enabled.

4 years agoFile Browser: Scroll view on normal selection too
Julian Eisel [Sat, 19 Sep 2015 02:24:48 +0000 (04:24 +0200)]
File Browser: Scroll view on normal selection too

Adjusts view after mouse/border selection if some selected items are out of view bounds.
To get as much of the selection into view as possible, this adjusts view first for the last, then for the first element in the selection.
Also, if region is pretty small, view adjustment is skipped, as otherwise the view is focused on the first element only, which isn't really useful IMHO.

Maybe not so nice: Since we do two view alignment iterations, UI_view2d_curRect_validate, which is a rather big function *might* be called twice under certain circumstances (border select & total size of selected elements is exceeds view bounds). I think that's totally acceptable though.

4 years agoFile Browser: Scroll view with arrow keys navigation
Julian Eisel [Sat, 19 Sep 2015 01:29:06 +0000 (03:29 +0200)]
File Browser: Scroll view with arrow keys navigation

Adjusts view to display active file after using arrow keys to navigate through files.

4 years agoCorrection to previous commit
Julian Eisel [Sat, 19 Sep 2015 01:17:06 +0000 (03:17 +0200)]
Correction to previous commit

4 years agoFix file key select using wrong file after border select in scrolled view
Julian Eisel [Sat, 19 Sep 2015 01:05:08 +0000 (03:05 +0200)]
Fix file key select using wrong file after border select in scrolled view

Basically, after border selecting, a wrong file was selected by using arrow keys if the screen was scrolled a bit vertically. Reason was that we didn't use correct view space coordinates but region space coordinates for measuring distance from mouse to first/last file in selection after border select.

4 years agoFix T46155: Sequencer Text Effect: wrong vertical 'TOP' alignment.
Bastien Montagne [Fri, 18 Sep 2015 21:01:31 +0000 (23:01 +0200)]
Fix T46155: Sequencer Text Effect: wrong vertical 'TOP' alignment.

Logic was broken for this vertical alignment option - we need to remove one line height here...