Commit Graph

48 Commits

Author SHA1 Message Date
47820f66c2 Collection Manager: Add ops for selected objects. Task: T69577
Add operators to isolate/disable the collections of selected objects.
2021-01-12 22:30:16 -05:00
5a1e3d5023 Collection Manager: Refactor and cleanup. Task: T69577
Change how addon wide variables are imported.
2020-11-04 00:14:51 -05:00
96291108b1 Collection Manager: Improve filtering 3. Task: T69577
Clean up treeview display code to be simpler and more
consistent with the rest of the filtering code.
2020-10-20 03:16:35 -04:00
b66e1363a0 Collection Manager: Improve filtering 2. Task: T69577
Allow filters to be combined with each other.
2020-10-20 03:08:47 -04:00
52fb8e51ac Collection Manager: Improve filtering 1. Task: T69577
Improve filtering for new collections.
Prevents adding new collections when the selected collection
isn't visible and includes the new collection in the current
filter until the filtering changes.
2020-10-20 01:56:26 -04:00
bf176041da Collection Manager: Add QVT. Task: T69577
Add Quick View Toggles for influencing QCD setup,
e.g. enable all slots.
Fix bugs with QCD slot switching.
Fix the active object sometimes getting lost when toggling slots.
2020-09-26 03:20:53 -04:00
14bbd42ff2 Collection Manager: Refactor. Task: T69577
Change detection of the master collection from an ambiguous index
to an is_master_collection boolean.
2020-08-11 00:51:28 -04:00
559fbf908b Collection Manager: Add Holdout & Indirect Only. Task: T69577
Add support for the Holdout and Indirect Only RTOs.
2020-08-11 00:19:34 -04:00
177ca9aeb9 Collection Manager: Fix T78985. Task: T69577
Refactored the functions get_move_selection and get_move_active
to be faster by using sets and looping through all the objects
instead of looping through the selected objects and using direct
object lookups, except for special cases where direct lookups are
actually faster.

Removed unneeded calls to get_move_selection and get_move_active.
2020-08-01 23:28:15 -04:00
cee175131c Collection Manager: Add Operator. Task: T69577
Add Apply Phantom Mode operator.
2020-07-22 04:05:26 -04:00
711efc3e2c Collection Manager: Add Operator. Task: T69577
Adds a Remove Empty Collections operator in a new specials menu
in the main Collection Manager popup.

This operator has two modes:
Mode one only removes collections if they don't have subcollections
or objects.
Mode two removes all collections that don't contain objects.

Both of these modes are accessible via the new specials menu.
2020-07-22 02:28:41 -04:00
c5bee7deff Collection Manager: Fix cleanup. Task: T69577 2020-07-21 00:41:47 -04:00
4eb733d819 Collection Manager: Cleanup. Task: T69577
Standardize setting operator properties.
2020-07-21 00:33:05 -04:00
52edc5f41f Collection Manager: Add to menus. Task: T69577
Add the main collection manager window and the QCD move widget
to the Object->Collection menu, formerly these were only accessible
through hotkeys.  Improve tooltips to better describe what these
do.
2020-07-18 00:32:07 -04:00
77b3f0e83e Collection Manager: Remove tab from N-Panel. Task: T69577
Remove the Display Options tab from the N-Panel as it's only supposed
to show up in a popover in the main popup.
2020-07-04 02:53:52 -04:00
2aa4745799 Collection Manager: Add alignment options. Task: T69577
Add an option to display RTOs and other operators aligned to the right.
Renamed the Filter Restrictions Toggle popover to Display Options.
Added a line separator between collections in the tree view.
2020-06-25 00:33:35 -04:00
115df62ee4 Collection Manager: Fix invalid list index. Task: T69577
Fix error when trying to add a new collection if the selected
collection was deleted using the Outliner.
2020-05-23 01:18:45 -04:00
9c2204fac1 Collection Manager: Phantom Mode fixes. Task: T69577
Fix Phantom Mode not disabling the active collection operators
and the set object operator for the Scene Collection.
2020-04-29 04:25:31 -04:00
d60d0462c5 Collection Manager: Fix popup sizing. Task: T69577
Adjust popup sizing to account for the width of the QCD field
when present.
2020-04-25 04:32:07 -04:00
52435a23be Collection Manager: Fix selection issues. Task: T69577
Make treeview selection more stable and predictable.
Fix not being able to select the row from the left side with
a top level expander -- adjusts window sizing to account for this.
2020-04-25 04:32:07 -04:00
fa71f709da Collection Manager: Fix active collections. Task: T69577
Fix display of and interaction with active collections.
2020-04-25 04:32:07 -04:00
583a81397e Collection Manager: Expander fix. Task T69577
Fix expanded and expand history not getting updated
on collection removal.
2020-04-18 09:04:15 +02:00
ab7daecbb2 Collection Manager: Expander fixes. Task: T69577
Fix expanded not getting properly updated on collection name change.
Fix expand history not getting updated on collection name change.
Fix expand history not getting cleared on collapse all.
Fix isolate tree restoring no matter what expander you click on.
Fix UI not showing isolated status when expander not expanded.
2020-04-17 04:24:26 -04:00
6ce56e4874 Collection Manager: Fix button positioning. Task: T69577
Fix positioning of the Collapse/Expand and Re-numerate QCD Slots
buttons in the Collection Manager popup.
2020-04-14 03:39:45 -04:00
dccf56e012 Collection Manager: Support Scene Collection. Task: T69577 2020-04-14 02:01:02 -04:00
d26c6b61fa Collection Manager: Refactor. Task: T69577
Refactor operators to massively decrease code duplication.
Remove history from invert function (not needed).
2020-04-12 01:57:10 -04:00
e81912e82e Collection Manager: Update tooltips. Task: T69577
Shorten and standardize tooltips.
Add label to RTO filter popover panel.
2020-04-10 01:36:53 -04:00
19e2083f9f Collection Manager: Fix View Layer update. Task: T69577
Make QCD 3D View header widget update immediately
after changing View Layers.

Prevent unnecessary View Layer update
in Collection Manager popup.
2020-04-10 00:35:37 -04:00
4d30d104c4 Collection Manager: Fix T75474. Task: T69577
Fix crash when changing templates.
2020-04-07 23:27:28 -04:00
5c9aaca64d Collection Manager: Update Move Operator. Task: T69577
Updates the Collection Manager's Move Operator with improvements
developed for QCD.
2020-04-05 17:08:02 -04:00
0b1520821f Collection Manager: Phantom Mode update. Task: T69577
Disabled QCD slot numeration fields and Re-numerate QCD Slots
operator when in Phantom Mode
2020-04-02 03:02:07 -04:00
507c04aa72 Collection Manager: Prevent invalid states. Task: T69577
Fixed bug with Phantom Mode state checking.
Fixed bug with copy/swap buffers getting stuck if state invalidated.
Add checks on collection manager popup to verify RTO history and
copy/swap buffer states.
2020-04-02 02:45:32 -04:00
e4ccb4cef4 Collection Manager: Code cleanup. Task: T69577 2020-03-31 01:12:09 -04:00
a32b859fec Collection Manager: QCD polishing. Task: T69577
Made QCD internal structure more stable.
Prevented reload scripts from resetting QCD slots.
Fixed QCD being left in an incorrect state on undo/redo.
Fixed a small error on unregister.
2020-03-30 02:34:28 -04:00
87422ec348 Collection Manager: Add icon for copy/swap. Task: T69577
Adds an icon to show when you're copying and swapping RTOs
at the same time.
2020-03-27 02:02:14 -04:00
b601e577df Collection Manager: Fix QCD filter button. Task: T69577
Fixes it so that the Filter by QCD button disappears when QCD is disabled.
2020-03-23 20:07:15 -04:00
e61a7e8bfe Collection Manager: Add prefs to disable QCD. Task: T69577
Adds two checkboxes to preferences.  One to disable the whole QCD system,
the other is a sub-checkbox to disable the QCD view (number) hotkeys.
2020-03-18 00:48:47 -04:00
57462fb093 Collection Manager: Add copy/paste RTOs feature. Task: T69577 2020-03-18 00:48:47 -04:00
f149e0a444 Collection Manager: Add swap RTOs feature. Task: T69577 2020-03-18 00:48:47 -04:00
b752de9e0d Collection Manager: Add QCD System. Task: T69577
Adds a Quick Content Display (QCD) system to the Collection Manager.
This consists of a 3D View Header widget and a floating panel
similar to the layers system in blender 2.7x, along with
hotkeys to view/move objects to QCD slots, and additions to the
main Collection Manager popup to allow you to manage which collections
correspond to which slots.
2020-03-16 02:48:02 -04:00
1d722cb79a Collection Manager: Add isolate tree feature. Task: T69577
Switches the current hotkey for expanding/collapsing all sublevels from
shift-click to ctrl-click.  Isolate tree is set to shift-click.
2020-03-12 19:40:41 -04:00
cebfa3b6e6 Collection Manager: Code cleanup. Task: T69577
Combined all my global blender properties into a property group.
General code cleanup.
2020-03-09 02:45:51 -04:00
e7a8ab2481 Collection Manager: Improve width calculation. Task: T69577
Improves the width calculation for the main window to better accommodate
sub-collections and take into account the width of the scroll bar when
it's present.
2020-01-09 01:15:22 -05:00
4e3539fa89 Collection Manager: Fix selection bug. Task: T69577
Prevents the selection in the treeview from throwing an error
when there is only the master collection.
2020-01-08 21:28:45 -05:00
c5f0bbde29 object_collection_manager: Remove import globbing 2019-12-09 21:27:11 +11:00
a0d43ae223 object_collection_manager: use GPL headers for all files 2019-12-09 21:05:05 +11:00
f5fbe860fe Cleanup: trailing space 2019-12-09 21:03:28 +11:00
ec6873e90f Use "object" prefix for collection manager
This was defining it's own category, which should be avoided and isn't
needed in this case since it manages object collections.
2019-12-09 20:57:40 +11:00