Blender Git Loki

Blender Git "soc-2020-outliner" branch commits.

Page: 11 / 11

June 12, 2020, 21:17 (GMT)
Merge branch 'master' into soc-2020-outliner
June 12, 2020, 01:47 (GMT)
Outliner: Add pose mode toggle to left column

Allow adding/removing objects from pose mode through the left column.
Also cleanup the icon drawing code by using the same function for
active and inactive states and only change the icon and add the callback
when needed.
June 11, 2020, 17:22 (GMT)
Outliner: Show pose mode toggle icons and always active icons

Toggling these enters edit mode, will fix. Also always show the active
data icons in the outliner.
June 11, 2020, 17:20 (GMT)
Outliner: Remove mode toggling on selection

Mode toggle was tied to selection. This is the final commit removing
that logic from the OUTLINER_OT_item_activate function.
June 11, 2020, 15:11 (GMT)
Outliner: Add activation and toggle to left column buttons

The buttons in the left column didn't work, and in the first step that
they did work, I only added support for camera objects. This adds
support for edit mode toggling and collections and scene activation.
Previously clicking in the column for those types would crash.
June 11, 2020, 03:39 (GMT)
Merge branch 'master' into soc-2020-outliner
June 11, 2020, 03:36 (GMT)
Outliner: Add walk navigation left and right

Support walk navigation up and down the tree by pressing the left and
right arrows. When holding shift (to toggle expand/collapse on all
children) walking is never done.

When walking right, open the tree if it is closed, or walk into the tree
if it is opened. When walking left, close the tree if it is open, or
select the parent element when closed.
June 11, 2020, 03:30 (GMT)
Outliner: Try using radio button icons

Use radio button icons over the dot and check in the outliner.
June 11, 2020, 02:57 (GMT)
Outliner: Pass tselem instead of te to button functions

When adding callback functions to icon buttons in the outliner, don't
pass the tree element as a pointer because the pointer address changes
between redraws. Instead, pass the tree store element, or pass the data
that is needed.
June 8, 2020, 15:08 (GMT)
Merge branch 'master' into soc-2020-outliner
June 6, 2020, 18:14 (GMT)
Outliner: Add edit mode toggle from left column

When in edit mode, compatible objects are shown next to a dot icon in
the outliner. These objects can then be toggled into the current edit
mode. When the active object is toggled out of edit mode, all objects
are removed from edit mode.

This currently has a few issues:
* Selection is not synced. Adding an object to edit mode selects it, and
removing deselects it. This needs to be reflected in the outliner.
* This works for all types that support edit mode with two
issues/exceptions:
** Grease Pencil edit mode is not supported (perhaps grease pencil needs
a small update)
** Text objects support multi-edit, but it doesn't actually allow you to
edit both objects.

The issues need to be fixed in the related mode-code, not the outliner.
It would be nice to fix so the outliner doesn't have to have cases to
not allow Text and Grease Pencil mode.
June 6, 2020, 17:39 (GMT)
Outliner: Draw icons for edit mode

The end goal is to support all interaction modes, but since edit mode
was already supported in the outliner, it makes sense to start here.

This code takes the current active object and determines it's mode. If
it is in edit mode, then the icons are drawn. This only works for
objects of the same type for now.
June 6, 2020, 17:03 (GMT)
Outliner: Use outliner_item_select for activation

Use outliner_item_select for outliner activation. This is used in a few
places so far and could easily be extended to other operators.

outliner_item_select takes 3 booleans, select, activate, and extend and
properly sets the TSE_SELECTED and TSE_ACTIVE flags based on the bools.

Future commits will move other selection and activation logic to be in
this function.

No functional changes. Separate the mode toggling logic from the
item activation code because these are distinct behaviors. This will
make later changes easier to make, and also makes it possible to
activate on walk select without toggling modes.

Also rename functions to make purpose more clear.
June 6, 2020, 16:59 (GMT)
Merge branch 'master' into soc-2020-outliner
June 6, 2020, 16:48 (GMT)
Outliner: Allow setting active data from column

Add a function to set active data from the outliner column on click. The
supported types are collections, cameras, and scenes as these types are
more "disruptive" and change the state of the scene.

For now this is set from the (cluttered) outliner selection function. I
think it would be best to attach to the drawn UI buttons, but currently
they don't want to work with attached functions.
June 6, 2020, 16:17 (GMT)
Outliner: Show active check for scenes and collections

Show the check in the left columns for scenes and collections.

Also remove the ability to set by clicking on the dots because the UI
buttons don't seem to want to activate a callback and have a reasonable
clickable area.
June 5, 2020, 22:44 (GMT)
Outliner: Add buttons to set active camera

Add buttons to the left column to set the active camera. The active
camera currently shows a check, and other cameras draw a dot.

For some reason the dot doesn't have a proper hitbox area.

Right now the function to set the camera is done from button callbacks,
but this could also easily be done from outliner_select.c.
June 5, 2020, 19:42 (GMT)
Outliner: Draw left column for activation/mode toggle

In Scenes view mode, a column is added when the toggle is enabled. In
view layer mode, the scene collection has a space next to it where a
expand/collapse triangle could be drawn, so this also offsets the tree a
unit to the left when in view layer display mode.
June 5, 2020, 17:44 (GMT)
Outliner: Add property to show the left column

Add a property to show the left column for the activate/mode toggle
buttons. This needs versioning to apply to the default scene.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021