blender.git
18 months agoUI: toolbar single column size snapping
Campbell Barton [Thu, 26 Apr 2018 10:01:44 +0000 (12:01 +0200)]
UI: toolbar single column size snapping

Once a region is set to it's snapped size, zooming keeps the size.

18 months agoGHOST: WGL: Make background rendering works on windows.
fclem [Thu, 26 Apr 2018 09:49:47 +0000 (11:49 +0200)]
GHOST: WGL: Make background rendering works on windows.

When creating an offscreen context we need wglCreatePbufferARB to create
a drawable. In non-background mode wglCreatePbufferARB would have been set
by the main window creation code. But in background mode this is not the
case so we need to create a dummy context using the screen window to init
wglew properly.

18 months agoFix vertex slide regression from multi-edit
Campbell Barton [Thu, 26 Apr 2018 08:08:41 +0000 (10:08 +0200)]
Fix vertex slide regression from multi-edit

- Invalid casts.
- Leaked memory on mode switching.

18 months agoMerge branch 'blender2.8-workbench' into blender2.8
Jeroen Bakker [Thu, 26 Apr 2018 06:47:28 +0000 (08:47 +0200)]
Merge branch 'blender2.8-workbench' into blender2.8

18 months agoWorkbench: Hair rendering
Jeroen Bakker [Thu, 26 Apr 2018 06:46:58 +0000 (08:46 +0200)]
Workbench: Hair rendering

18 months agoWorkbench: Environment Light
Jeroen Bakker [Thu, 26 Apr 2018 06:31:14 +0000 (08:31 +0200)]
Workbench: Environment Light

 - Changed defaults
 - Updated render panel

18 months agoUI: correct toolbar w/ text display
Campbell Barton [Thu, 26 Apr 2018 06:18:41 +0000 (08:18 +0200)]
UI: correct toolbar w/ text display

Missed in tuple to dict refactor.

18 months agoMissed last commit
Campbell Barton [Thu, 26 Apr 2018 06:10:52 +0000 (08:10 +0200)]
Missed last commit

18 months agoUI: fix toolbar naming collision bug
Campbell Barton [Thu, 26 Apr 2018 06:04:50 +0000 (08:04 +0200)]
UI: fix toolbar naming collision bug

Active tool name needed to be unique from all other tools.
This caused problems since different modes have different tools with the
same name (Armature/Mesh click to extrude for eg).

Tool names now only need to be unique per mode.

18 months agoWorkbench: Shader compilation
Jeroen Bakker [Thu, 26 Apr 2018 06:06:22 +0000 (08:06 +0200)]
Workbench: Shader compilation

18 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Thu, 26 Apr 2018 05:52:09 +0000 (07:52 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

18 months agoUI: update tool docstring
Campbell Barton [Thu, 26 Apr 2018 05:39:15 +0000 (07:39 +0200)]
UI: update tool docstring

Also assert on invalid tool definitions.

18 months agoUI: use dict for tool definitions
Campbell Barton [Thu, 26 Apr 2018 05:31:39 +0000 (07:31 +0200)]
UI: use dict for tool definitions

Using tuple was becoming too cryptic - new settings needed to be added
last and the purpose of each wasn't very clear.

18 months agoUI: update icons from @billreynish
Campbell Barton [Wed, 25 Apr 2018 20:03:47 +0000 (22:03 +0200)]
UI: update icons from @billreynish

18 months agoUI: use a wider minimum menu width
Campbell Barton [Wed, 25 Apr 2018 19:54:29 +0000 (21:54 +0200)]
UI: use a wider minimum menu width

Icon only buttons with menus would be too narrow,
especially buttons for selecting tools.

18 months agoWorkbench: normal packing
Jeroen Bakker [Wed, 25 Apr 2018 19:33:59 +0000 (21:33 +0200)]
Workbench: normal packing

Normal packing. The sign is stored in the A of the color buffer.
if the A == 1.0 the normal should be inverted. before use.

The reason is that packing has more precision for frontfaces, than for
backfaces

18 months agoUI: shrink operator menu hold triangle a little
Campbell Barton [Wed, 25 Apr 2018 19:24:55 +0000 (21:24 +0200)]
UI: shrink operator menu hold triangle a little

18 months agoUI: workaround for text & icon alignment
Campbell Barton [Wed, 25 Apr 2018 19:01:36 +0000 (21:01 +0200)]
UI: workaround for text & icon alignment

Blender's icons weren't written to draw different sizes.
For now ifdef in a hack to show toolbar icons larger.

18 months agoUI: icon-only hold popup uses region alignment
Campbell Barton [Wed, 25 Apr 2018 18:41:26 +0000 (20:41 +0200)]
UI: icon-only hold popup uses region alignment

Gives nicer tool popups for icon only buttons.

18 months agoFix selection with image planes
Campbell Barton [Wed, 25 Apr 2018 17:00:55 +0000 (19:00 +0200)]
Fix selection with image planes

18 months agoMulti-Pose: Port POSE_OT_select_mirror
Joshua Leung [Wed, 25 Apr 2018 15:52:02 +0000 (17:52 +0200)]
Multi-Pose: Port POSE_OT_select_mirror

18 months agoWM: Add GHOST lazy init for background mode.
Clément Foucault [Wed, 25 Apr 2018 15:43:08 +0000 (17:43 +0200)]
WM: Add GHOST lazy init for background mode.

This allows for background rendering with EEVEE and other opengl render
engine.

I've only tested it on Linux for the moment so I can't say about other
platforms.

We do lazy init because we cannot assume we will need Ghost for rendering
before having parsed all arguments and we cannot know if a script will
trigger rendering. This is also because it currently does not work without
any display server (blender will crash).

18 months agoGHOST: Fix missing glXCreatePbuffer initialisation.
Clément Foucault [Wed, 25 Apr 2018 13:17:48 +0000 (15:17 +0200)]
GHOST: Fix missing glXCreatePbuffer initialisation.

For some reason this happened if no windows are created before creating an
offscreen context.

18 months agoGHOST: GLX: Remove old version check.
Clément Foucault [Wed, 25 Apr 2018 10:51:22 +0000 (12:51 +0200)]
GHOST: GLX: Remove old version check.

18 months agoEEVEE: UI: Add missing separator.
Clément Foucault [Wed, 25 Apr 2018 08:54:54 +0000 (10:54 +0200)]
EEVEE: UI: Add missing separator.

18 months agoEEVEE: UI: Merge the custom parallax checkbox with the panel title.
Clément Foucault [Wed, 25 Apr 2018 08:50:41 +0000 (10:50 +0200)]
EEVEE: UI: Merge the custom parallax checkbox with the panel title.

18 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 25 Apr 2018 15:27:23 +0000 (17:27 +0200)]
Merge branch 'master' into blender2.8

18 months agoUI: optionally pass icon size to widget_draw_icon
Campbell Barton [Wed, 25 Apr 2018 15:24:45 +0000 (17:24 +0200)]
UI: optionally pass icon size to widget_draw_icon

No functional changes.

18 months agoDepsgraph: Don;t use copy actions flag
Sergey Sharybin [Wed, 25 Apr 2018 15:00:41 +0000 (17:00 +0200)]
Depsgraph: Don;t use copy actions flag

Is useless without main.

18 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 25 Apr 2018 15:00:19 +0000 (17:00 +0200)]
Merge branch 'master' into blender2.8

18 months agoLibrary: Add assert to catch unsupported copy flags combination
Sergey Sharybin [Wed, 25 Apr 2018 14:59:35 +0000 (16:59 +0200)]
Library: Add assert to catch unsupported copy flags combination

Thanks Bastien for review!

18 months agoWorkbench: make normal packing optional
Jeroen Bakker [Wed, 25 Apr 2018 14:57:18 +0000 (16:57 +0200)]
Workbench: make normal packing optional

18 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 25 Apr 2018 14:35:11 +0000 (16:35 +0200)]
Merge branch 'master' into blender2.8

18 months agoDepsgraph: Introduce flag top indicate scene is evaluating for a new frame
Sergey Sharybin [Wed, 25 Apr 2018 13:09:52 +0000 (15:09 +0200)]
Depsgraph: Introduce flag top indicate scene is evaluating for a new frame

18 months agoDepsgraph: Preserve CoW ID recalc flags
Sergey Sharybin [Wed, 25 Apr 2018 13:04:25 +0000 (15:04 +0200)]
Depsgraph: Preserve CoW ID recalc flags

Previously they would have been replaced with flag from original
datablock, which is not what we want.

18 months agoDepsgraph: Ensure we only expand scene datablock on evaluation
Sergey Sharybin [Wed, 25 Apr 2018 13:02:22 +0000 (15:02 +0200)]
Depsgraph: Ensure we only expand scene datablock on evaluation

Previously it could have happened on every request to evaluated scene
or view layer.

This commit also removes expansion of view layer and scene from iterator.
Iterator is not to be used before depsgraph is evaluated.

18 months agoDepsgraph: Avoid hash lookup for every evaluated scene query
Sergey Sharybin [Wed, 25 Apr 2018 12:58:19 +0000 (14:58 +0200)]
Depsgraph: Avoid hash lookup for every evaluated scene query

Cache pointer to evaluated scene datablock on relations build time,
that pointer never changes after that.

18 months agoDepsgraph: Fix missing relations in array modifier
Sergey Sharybin [Wed, 25 Apr 2018 14:34:01 +0000 (16:34 +0200)]
Depsgraph: Fix missing relations in array modifier

Found by Dr. Sybren while working on modifiers port.

18 months agoWorkbench: Added studio lighting to view layer
Jeroen Bakker [Wed, 25 Apr 2018 13:59:15 +0000 (15:59 +0200)]
Workbench: Added studio lighting to view layer

18 months agoRevert "UI: fix inconsistency in button rounding when zooming in."
Brecht Van Lommel [Wed, 25 Apr 2018 09:53:21 +0000 (11:53 +0200)]
Revert "UI: fix inconsistency in button rounding when zooming in."

This isn't working well when zoomed out in the properties editor,
we should be taking into account properties editor zoom level.

This reverts commit 1ba91ae2c02863b3fd97810e7bcee902dac58992.

18 months agoFix multi-edit mode on file load
Campbell Barton [Wed, 25 Apr 2018 13:22:02 +0000 (15:22 +0200)]
Fix multi-edit mode on file load

Setting up the initial object mode would change objects which were
already moved into their mode along with the active object.

18 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 25 Apr 2018 12:54:34 +0000 (14:54 +0200)]
Merge branch 'master' into blender2.8

18 months agoCDDM: correct (disabled) logic in merge verts
Campbell Barton [Wed, 25 Apr 2018 12:53:44 +0000 (14:53 +0200)]
CDDM: correct (disabled) logic in merge verts

18 months agoSearch local before system path
Campbell Barton [Wed, 25 Apr 2018 12:05:48 +0000 (14:05 +0200)]
Search local before system path

This works in both cases,
where system path would return a path even when it's missing.

18 months agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Wed, 25 Apr 2018 11:44:45 +0000 (13:44 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

18 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 25 Apr 2018 11:35:38 +0000 (13:35 +0200)]
Merge branch 'master' into blender2.8

18 months agoFix T54806: Editors drawing glitch when using lasso selection
Dalai Felinto [Wed, 25 Apr 2018 11:07:22 +0000 (13:07 +0200)]
Fix T54806: Editors drawing glitch when using lasso selection

We should always reset to default glBlendFunc after done drawing.

18 months agoMerge branch 'blender2.8-workbench' into blender2.8
Jeroen Bakker [Wed, 25 Apr 2018 11:08:02 +0000 (13:08 +0200)]
Merge branch 'blender2.8-workbench' into blender2.8

Support of hair in workbench

18 months agoEdit Mesh: don't recalc all meshes w/ extrude
Campbell Barton [Wed, 25 Apr 2018 11:05:19 +0000 (13:05 +0200)]
Edit Mesh: don't recalc all meshes w/ extrude

18 months agoDepsgraph: Clarify python API
Sergey Sharybin [Wed, 25 Apr 2018 08:13:09 +0000 (10:13 +0200)]
Depsgraph: Clarify python API

Follow same naming convention as for C:

- Original data is named without any extra prefix/suffix.
- Evaluated data is named with _eval suffix.

18 months agoWorkbench: Enabled Hair rendering
Jeroen Bakker [Wed, 25 Apr 2018 11:00:18 +0000 (13:00 +0200)]
Workbench: Enabled Hair rendering

18 months agoRemove developer exception hack
Campbell Barton [Wed, 25 Apr 2018 10:54:27 +0000 (12:54 +0200)]
Remove developer exception hack

This caused too much trouble, also it's possible users run with
'release' in their CWD causing issues.

Developers can symlink "release/" to "bin/2.79".

18 months agoRevert "Fix (unreported) broken 'get system path' in some cases."
Campbell Barton [Wed, 25 Apr 2018 10:48:51 +0000 (12:48 +0200)]
Revert "Fix (unreported) broken 'get system path' in some cases."

This reverts commit f1bc0aeddedacf68182164dde5d4674d11aba6c9.

18 months agoEdit Mesh: multi-object extrude_region
Dalai Felinto [Wed, 25 Apr 2018 10:35:36 +0000 (12:35 +0200)]
Edit Mesh: multi-object extrude_region

Technically this is the following operator:
bpy.ops.view3d.edit_mesh_extrude_move_normal

But this is a Python operator that in turns calls:
MESH_OT_extrude_region_move

Which in turns calls:
* MESH_OT_extrude_region
* TRANSFORM_OT_translate

18 months agoDocs: correct debug help message
Campbell Barton [Wed, 25 Apr 2018 10:30:11 +0000 (12:30 +0200)]
Docs: correct debug help message

18 months agoBuildbot: Attempt to link against Blosc statically
Sergey Sharybin [Wed, 25 Apr 2018 10:27:01 +0000 (12:27 +0200)]
Buildbot: Attempt to link against Blosc statically

Was broken by f1e6838376a.

18 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 25 Apr 2018 10:26:26 +0000 (12:26 +0200)]
Merge branch 'master' into blender2.8

18 months agoCleanup: comments
Campbell Barton [Wed, 25 Apr 2018 10:25:47 +0000 (12:25 +0200)]
Cleanup: comments

18 months agoFixed wrong merge
Jeroen Bakker [Wed, 25 Apr 2018 10:23:44 +0000 (12:23 +0200)]
Fixed wrong merge

18 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Wed, 25 Apr 2018 10:20:45 +0000 (12:20 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

18 months agoMulti-View: Moving panel to render, and rename to Stereoscopy
Dalai Felinto [Wed, 25 Apr 2018 10:09:01 +0000 (12:09 +0200)]
Multi-View: Moving panel to render, and rename to Stereoscopy

Multi-View was never a per-viewlayer option. And now that we have viewlayer
it is better to name it in a more recognizable way:

"Stereoscopy" instad of plain "Views".

18 months agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Wed, 25 Apr 2018 10:06:03 +0000 (12:06 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

18 months agoOverlay: Codestyle
Jeroen Bakker [Wed, 25 Apr 2018 10:03:27 +0000 (12:03 +0200)]
Overlay: Codestyle

removed unused code

18 months agoCleanup: unused vars
Campbell Barton [Wed, 25 Apr 2018 09:59:52 +0000 (11:59 +0200)]
Cleanup: unused vars

18 months agoWorkbench: GLSL performance + code style
Jeroen Bakker [Wed, 25 Apr 2018 09:54:02 +0000 (11:54 +0200)]
Workbench: GLSL performance + code style

 - store normal in vec2
 - use rgba_8 for colorBuffer

18 months agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Wed, 25 Apr 2018 09:31:03 +0000 (11:31 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

18 months agoWorkbench: Dither background color/gradient
Jeroen Bakker [Wed, 25 Apr 2018 09:30:38 +0000 (11:30 +0200)]
Workbench: Dither background color/gradient

18 months agoFix: Silence texture stack owner_id warnings in debug mode from anim_filtering code
Joshua Leung [Wed, 25 Apr 2018 09:18:35 +0000 (11:18 +0200)]
Fix: Silence texture stack owner_id warnings in debug mode from anim_filtering code

The Blender Internal removal (51b796ff1528c52cc8b4079fab1003671652a4d9)
removed support for texture slots from Materials/Lamps/Worlds,
but didn't remove the relevant parts from the animation editor filtering
code that were responsible for adding the texture slots for those channels.

18 months agoSilhouette Overlap Overlay
Jeroen Bakker [Wed, 25 Apr 2018 08:59:48 +0000 (10:59 +0200)]
Silhouette Overlap Overlay

Added Object Overlap Overlay

 - Added R32UI support to GPU_framebuffer
 - Added R32U support to draw manager
 - The overlay mode has a object data pass that will render 'needed' data to specific buffers so we can mix them together via a deferred rendering. In future will also add UV's and other data
 - Overlap is implemented as an overlay so it could be used on top of the Scene lighted Solid mode (that will be rendered by Eevee.

Reviewers: fclem, brecht

Reviewed By: fclem

Subscribers: sergey

Tags: #code_quest

Maniphest Tasks: T54726

Differential Revision: https://developer.blender.org/D3174

18 months agoEdit Mesh: multi-object split
Dalai Felinto [Wed, 25 Apr 2018 08:58:43 +0000 (10:58 +0200)]
Edit Mesh: multi-object split

18 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 25 Apr 2018 08:39:51 +0000 (10:39 +0200)]
Merge branch 'master' into blender2.8

18 months agoFix (unreported) broken 'get system path' in some cases.
Bastien Montagne [Wed, 25 Apr 2018 08:33:29 +0000 (10:33 +0200)]
Fix (unreported) broken 'get system path' in some cases.

There were two issues here actually:
* The hack to allow running Blender directly from the source directory
would just check for a 'release' directory, without actually ensuring it
is release dir from blender source tree, and not some other random
folder.
* GHOST_getSystemDir returns nothing for portable installations, now
we'll then check directly in the blender binary dir in that case.

This fix is more critical in 2.8 branch, where that system path is used
to retrieve new '3D' icons...

18 months agoCleanup: use blender terminology
Campbell Barton [Wed, 25 Apr 2018 08:17:31 +0000 (10:17 +0200)]
Cleanup: use blender terminology

18 months agoFix cursor switching w/ transform redo
Campbell Barton [Wed, 25 Apr 2018 08:15:20 +0000 (10:15 +0200)]
Fix cursor switching w/ transform redo

Recent cursor changes stopped number button continuous grab.

18 months agoCleanup: indentation
Campbell Barton [Wed, 25 Apr 2018 08:10:00 +0000 (10:10 +0200)]
Cleanup: indentation

18 months agoUI: disable advanced option for redo popover
Campbell Barton [Wed, 25 Apr 2018 08:08:04 +0000 (10:08 +0200)]
UI: disable advanced option for redo popover

18 months agoCMake: only write edited file when changes made
Campbell Barton [Wed, 25 Apr 2018 07:57:44 +0000 (09:57 +0200)]
CMake: only write edited file when changes made

Caused cmake to run after every icon update.

18 months agoCleanup: typos
Campbell Barton [Wed, 25 Apr 2018 07:55:37 +0000 (09:55 +0200)]
Cleanup: typos

18 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Wed, 25 Apr 2018 07:31:25 +0000 (09:31 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

18 months agoFix string comparison in GNUMakefile for linux systems
Dalai Felinto [Wed, 25 Apr 2018 07:28:35 +0000 (09:28 +0200)]
Fix string comparison in GNUMakefile for linux systems

18 months agoCMake: generate icon list for installation
Campbell Barton [Wed, 25 Apr 2018 07:24:54 +0000 (09:24 +0200)]
CMake: generate icon list for installation

MSVC users weren't getting icons installed, since glob isn't reliable,
list all files in a section which the update script maintains.

18 months agoUI: add extrude icon
Campbell Barton [Wed, 25 Apr 2018 07:21:49 +0000 (09:21 +0200)]
UI: add extrude icon

18 months agoUI: show all pain mode panels in the topbar
Campbell Barton [Wed, 25 Apr 2018 06:20:01 +0000 (08:20 +0200)]
UI: show all pain mode panels in the topbar

This shows some which need to be hidden (eventually).

18 months agoUI: move mode options to the topbar
Campbell Barton [Wed, 25 Apr 2018 06:16:21 +0000 (08:16 +0200)]
UI: move mode options to the topbar

Remove toolbar panels which have items available in menus.

18 months agoUI: Apply remove redo region
Campbell Barton [Wed, 25 Apr 2018 05:52:40 +0000 (07:52 +0200)]
UI: Apply remove redo region

This was a disabled part of the top-bar merge (code by @Severin)

The only change made is to move to redo UI into a popover.

18 months agoUI: remove history & object tools
Campbell Barton [Wed, 25 Apr 2018 05:25:08 +0000 (07:25 +0200)]
UI: remove history & object tools

Add object shading menu.

18 months agoUI: mesh rip icons
Campbell Barton [Wed, 25 Apr 2018 05:14:34 +0000 (07:14 +0200)]
UI: mesh rip icons

18 months agoUI: remove mesh panel
Campbell Barton [Wed, 25 Apr 2018 05:12:34 +0000 (07:12 +0200)]
UI: remove mesh panel

18 months agoUI: remove shading & uv's panel
Campbell Barton [Tue, 24 Apr 2018 19:07:05 +0000 (21:07 +0200)]
UI: remove shading & uv's panel

18 months agoUI: disable grease pencil panel
Campbell Barton [Tue, 24 Apr 2018 19:05:24 +0000 (21:05 +0200)]
UI: disable grease pencil panel

Disable poll functions since branch replaces this code.

18 months agoUI: move rigid body physics to menu
Campbell Barton [Tue, 24 Apr 2018 18:46:18 +0000 (20:46 +0200)]
UI: move rigid body physics to menu

18 months agoUI: remove animation panel
Campbell Barton [Tue, 24 Apr 2018 18:37:04 +0000 (20:37 +0200)]
UI: remove animation panel

18 months agoHide top-bar in fullscreen
Julian Eisel [Tue, 24 Apr 2018 17:59:48 +0000 (19:59 +0200)]
Hide top-bar in fullscreen

Fullscreen as in the Alt+F10 fullscreen.

18 months agoUI: remove relations panel
Campbell Barton [Tue, 24 Apr 2018 17:54:22 +0000 (19:54 +0200)]
UI: remove relations panel

18 months agoUI: remove transform panels
Campbell Barton [Tue, 24 Apr 2018 17:35:11 +0000 (19:35 +0200)]
UI: remove transform panels

18 months agoFix NULL pointer check
Campbell Barton [Tue, 24 Apr 2018 17:34:09 +0000 (19:34 +0200)]
Fix NULL pointer check

18 months agoCleanup: unused var
Campbell Barton [Tue, 24 Apr 2018 17:28:53 +0000 (19:28 +0200)]
Cleanup: unused var

18 months agoCurrent Frame Indicator tweaks
Joshua Leung [Tue, 24 Apr 2018 17:18:22 +0000 (19:18 +0200)]
Current Frame Indicator tweaks

* Draw the frame/time number box over the scrollbar instead of above it,
  to reduce the clutter/clashes with markers.

* Draw the box centered around the line instead of off to one side,
  making it clearer that the frame shown is the one being affected.

* Make the box larger than the scrollbar + use white text to make it
  stand out from the neighbouring frame numbers (otherwise, it's easy
  to misread that it's just another one of those)

18 months agoBind Camera to Markers - Various tweaks to make this nicer to work with
Joshua Leung [Tue, 24 Apr 2018 16:10:19 +0000 (18:10 +0200)]
Bind Camera to Markers - Various tweaks to make this nicer to work with

Based on discussions here in the office, this commit introduces a number of
changes to make the "Bind Camera to Markers" feature (introduced during Sintel
to facilitate camera switching, and now an integral part of the UI for doing this)
nicer to use.

Main changes:
* "Camera Markers" are now drawn using Camera icons, making it easier to
   distinguish between them and other ("normal") markers

* "Camera Markers" will display the name of the bound marker, making it
   easier to see what camera each marker uses. This will then also stay
   in sync with the camera being used (though a manual refresh is needed
   after renaming objects to make the timeline update), fixing the problem
   where the marker's camera and the name get out of sync.

* Behaviour of Ctrl-B has been modified to make it easier to quickly add
  these markers. Now, it will directly add a new marker on the current frame,
  bound to the currently selected camera object. If there's an existing marker
  on that frame, the existing marker's camera will be replaced instead of making
  a new marker.

18 months agoMarkers: Move "Bind Camera to Marker" from 'View' Menu to the Markers menu proper
Joshua Leung [Tue, 24 Apr 2018 15:59:32 +0000 (17:59 +0200)]
Markers: Move "Bind Camera to Marker" from 'View' Menu to the Markers menu proper

It was always weird that this tool for markers was stored in a different
menu where it was hard to find.