Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-04Outliner: better support for paintcurves ('Blender File' view)Philipp Oeser
- paintcurves were hitting an assert in outliner_add_element() - missing outliner update when adding a paintcurve - paintcurves were not showing an icon [they dont have a dedicated icon, took the one used elsewhere] Reviewers: brecht Differential Revision: https://developer.blender.org/D4445
2019-03-02Revert "Fix T62098: Outliner: Delete hierarchy crash"Bastien Montagne
This reverts commit d1baed5e3d03864b7968867fb93f9daa3d70428f. Next time please let original author of the buggy code to take care of fixing the issue!
2019-03-01Fix T62098: Outliner: Delete hierarchy crashDalai Felinto
Revert "Outliner: Enable new faster 'Delete Hierarchy' code by default." This reverts commit 491a98ca44297555c97e4dcc5ed5bf7b2dc0661d. It fails in the most basic of tests (see report). No point in leaving this commit around until it passes the easy to test cases.
2019-03-01Fix T62025: Outliner and viewport missing update after deleting objectDalai Felinto
Bug introduced on 012483b6e4a1453c3e990127db001617997a9d64. Since we notify similar things when changing active and selected objects, I believe we didn't notice this was missing a ND_OB_SELECT notification before the small refactor to use the messenging system exposed that bug.
2019-03-01Fix warning for uiButPushedStateFuncDalai Felinto
I changed the number of arguments for uiButPushedStateFunc and forgot to update parts of the code (rB92182495da881).
2019-03-01Fix T62016: Outliner visibility icons drag behaviour brokenDalai Felinto
We are mixing bool and fancy 3-in-1 func-set buttons in the outliner. So they would return different pushed state in ui_drag_toggle_but_pushed_state(). We now have a callback function that allows the button to set its own pushed_button_state callback function. Note: This is a bit of overkill since we are planning to change the 3-in-1 outliner buttons. That said, it may be nice to have, since in the future we can mix those buttons for other things. Reviewers: brecht Differential Revision: https://developer.blender.org/D4434
2019-03-01Outliner: Collections Duplicate - remove original duplicate operatorDalai Felinto
Now that we have better options (duplicate collection and duplicate linked) there is no longer need for the original dupli operator. In fact, as it was it was of little use if you ever had nested collections.
2019-03-01Outliner: Collection - Duplicate Hierarchy, and Duplicate Linked HierarchyDalai Felinto
As per the suggestion on T57064, this introduces two new options to duplicate collections. We then have: * Duplicate > Collection (New collection with linked content). * Duplicate > Hierachy (Duplicate entire hierarchy and make all contents single user). * Duplicate > Linked Hierarchy (Duplicate entire hierarchy keeping content linked with original). Development TODO: `single_object_users` can/should use the new functions. Reviewers: brecht, mont29 Subscribers: pablovazquez, billreynish, JulienKaspar Differential Revision: https://developer.blender.org/D4394
2019-02-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27Cleanup: rename lamp -> lightCampbell Barton
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-25Fix T60880: Assert deleting grease pencil object from outlinerCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-17DNA: rename dup_* struct members to instance_*Campbell Barton
2019-02-16DNA: rename SpaceOops -> SpaceOutlinerCampbell Barton
2019-02-15Fix T61210: Crash/inconsistency when clicking on obdata in outlinerDalai Felinto
The problem =========== For armature, if the active object was in pose mode and the newly selected armature data (not the pose, but the edit armature) we would get a crash. For mesh objects, the issue would happen with the active object in object mode. Then the new selected object would switch to edit mode, however the overall mode would still be object mode, leading to unsynced mode across the objects. The solution ============ Using shift to extend selection makes current selected (compatible) objects to go to edit mode as well. Otherwise only the newly selected object will switch to edit mode. This also works if you are in edit mode for a curve, and click in a mesh icon. This also changes the rules for multi-object editing (or rather, how we put objects in and out of it). Now shirt is also taking into consideration there. So if you simply click in another mesh object's data, it will have only the newly selected object in edit mode. To reproduce the old behaviour you need to use shift to include the newly selected object in the multi-edit party. Reviewers: campbellbarton Subscribers: brecht Differential Revision: https://developer.blender.org/D4344
2019-02-14Fix outliner box select not working when using search filter.Brecht Van Lommel
2019-02-14Cleanup: replace Main ID's foreach functions by macros.Bastien Montagne
Am really no a big fan of using macros for that kind of things, but meh... C solution to do that with functions (using callbacks) is even worse. :(
2019-02-12Fix T61462: Missing update when toggling GP layer visibility in the OutlinerAntonioya
2019-02-11Cleanup: comment indentation & spellingCampbell Barton
2019-02-09Cleanup: Use ID_IS_LINKED instead of id.libDalai Felinto
2019-02-09Fix: objects in outliner cannot be disabledDalai Felinto
But introduced on 191b8951f7a. Reported on tracker as a comment on 3f537f30e6b0.
2019-02-09Outliner visibility: Prevent changing linked objects and collectionsDalai Felinto
We still change their base/layer collection visibility, just not what would change the original ID datablock.
2019-02-09Outliner Visibility: Alt+H operator to unhide all objects and collectionsDalai Felinto
2019-02-09Outliner Visibility: H operator to hide collection or objectsDalai Felinto
2019-02-09Outliner visibility: Ctrl to isolate objectDalai Felinto
Ideally it would be nice to make all the base parent collections visible as well. However we do not know this from the outliner.
2019-02-08Outliner: Purge: correct tooltip, add more info for user.Bastien Montagne
While ideally we could have a complete detailed list of deleted IDs, that would require more work UI wise, think for now we can live with just a rough summary. Related to T61209.
2019-02-08Fix T61287: Object restrict viewport ignored in instanced collectionDalai Felinto
make_duplis_collection() depends on the collection object cache, which was not freed upon object viewport disable change. The best way to reproduce the bug was to instance the default collection, disable the cube, save and re-open the file. Now even if you set the original cube to be enabled, you wouldn't see the instanced one until you forced collection cache to be freed (e.g., changing a collection disable state.
2019-02-08TypoPablo Vazquez
2019-02-08UI: Icons for some Outliner context menu operationsPablo Vazquez
Mainly 'X' icon for Delete, which was already on modifiers and constraints, but not for objects. Select icon for object selection and refresh for library reload.
2019-02-07Cleanup: sort struct blocks, descriptionCampbell Barton
2019-02-07Outliner: modernize Purge operator.Bastien Montagne
That guy was still from the era where only way to remove an ID was to save & reload the .blend file. Use modern code instead, should also be much, much more efficient in big production files. And that’s another nice occasion to add/test new batch ID deletion code, too. ;) Related to T61276 Make Single User unlinks original object.
2019-02-06Outliner visibility unification: Prevent master collection visibility to changeDalai Felinto
Also satinizing the checks for master collection. The outliner tree iterators already take care of not including the master collection there.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-06Cleanup: styleCampbell Barton
2019-02-06Outliner visibility unification: Implement 3 levels of viewport visibilityDalai Felinto
Now collection and objects can be either: * Disabled for all the view layers. * Hidden for a view layer but not necessarily for all others. * Visible for a view layer but not necessarily for all others. Regarding icons: Whatever we decide to use for the "Hidden for all view layers" needs to be a toggle-like icon. Because when viewing "Scenes" instead of "View Layer" in the outliner we should be able to edit the collection "Hidden for all the view layers" as an on/off option. The operators are accessible via a Visibility context menu or shortcuts: * Ctrl + Click: Isolate collection (use shift to extend). * Alt + Click: Disable collection. * Shift + Click: Hide/Show collection and its children (objects and collections) Things yet to be tackled: * Object outliner context menu can also get a Visibility sub-menu. * Get better icons for viewport enable/disable. Note: * When using emulate 3 button mouse alt+click is used for 2d panning. In this case users have to use the operator from the menu. See T57857 for discussion. Patch: https://developer.blender.org/D4011 Reviewers: brecht and sergey Thanks to the reviewers and William Reynish and Julien Kasper in particular for the feedback.
2019-02-05Outliner: eyes for collection affect collection visibilityDalai Felinto
As oppose to affect the collection objects' visibility.
2019-02-05Outliner: Gray out collections only when they are invisibleDalai Felinto
Re-factor of 4521d3e7074d.
2019-02-05Cleanup: remove contributors for CMake filesCampbell Barton
Following removal from C source code. See: 8c68ed6df16d8893
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-28Outliner: Enable new faster 'Delete Hierarchy' code by default.Bastien Montagne
Some more tests showed no issue, so now feeling reasonably confident. Old, 'safer' one remains available through setting debug value to 666, for a few more weeks.
2019-01-28Cleanup: sort forward declarations of enum & structCampbell Barton
Done using: source/tools/utils_maintenance/c_sort_blocks.py
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-22Fix T60602: outliner pose bone selection does not update in viewport.Sebastian Parborg
Differential Revision: https://developer.blender.org/D4223
2019-01-17Add experimental batch-delete of hierarchy to Outliner.Bastien Montagne
This uses the same command as regular hierarchy delete, and is only activated when debug value is set to 666 for now. Here on file from T60419, it gives about 20% speed-up (from 5.5s to 4.4s).
2019-01-16Outilner: pass userdata void pointer to outliner_do_object_operation_ex().Bastien Montagne
Even though it is not used currently, an _ex() func should not ignore that, it is kind of mandatory for many advanced/complex behaviors.
2019-01-15Cleanup: commas at the end of enumsCampbell Barton
Without this clang-format may wrap them onto a single line.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-15Cleanup: rename BKE_libblock_delete to BKE_id_delete.Bastien Montagne