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-02-06Undo System: remove accumulate/store modesCampbell Barton
This complicated handling of undo steps in a generic way especially switching between undo systems that stored data to ones that accumulated changes. Now each undo system must treat it's steps as check-point, internally it can apply/rewind changes. This commit also fixes projection paint where the object mode wasn't following the undo steps.
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-05Fix/workaround issues in pose and edit modeSergey Sharybin
[re-committing] Edit mode was unable to select, pose mode was unable to move bones.
2019-02-05Per view-layer collection visibilityDalai Felinto
[re-committing] We still control this in the viewport collections visibility menu. But now we are actually changing the visibility of the collections, not of the objects. If a collection is indirectly invisible (because one of its parents are invisible) we gray it out. Also if you click directly in the collection names, it "isolates" the collection by hiding all collections, and showing the direct parents and all the children of the selected collection. Development Note: Right now I'm excluding the hidden collections from the depsgraph. Thus the need for tagging relations to update. If this proves to be too slow, we can change.
2019-02-05Fix strict compiler warning, breaking MSVCSergey Sharybin
2019-02-05Clip editor: Fixes for prefetchSergey Sharybin
Seems metadata was never read while prefetching, at least was never requested to be read. Also fixed prefetch for multilayer EXR.
2019-02-05BKE_mesh_new_from_object(): do not generate temp obj/cu in Main.Bastien Montagne
When generating a mesh from a curve object, do not generate temp objects and curves in main, but rather as 'localized' copies. This is cleaner, and might add a marginal speed-up in some cases (like rendering thousands of curve objects), since we save some processing. Note that this is the function behind py API's `Object.to_mesh()` too.
2019-02-05Movieclip: Improve support of multilayer EXR filesSergey Sharybin
Use first combined pass if possible. Is not ideal but better than showing completely empty image. Also, covers quite a lot of usecases when movie clip editor is used to review animation render of single-layer renders but with multiple passes.
2019-02-05Support showing metadata for multilayer EXR filesSergey Sharybin
Quite straightforward: first, convert metadata from file to stamp data which is stored in the render result, and then for every requested layer/pass use that as a metadata.
2019-02-05Cleanup: Add precision to comment.Bastien Montagne
2019-02-05Fix (unreported) linestyle/greasepencil actions not being duplicated by full ↵Bastien Montagne
scene copy. Noted those as missing in XXX comments some time ago, running again on that code I still see no reason for this missing feature, so now when doing a full scene copy, including duplication of Freestyl's linestyles and scene's greasepencil data, their potential Actions will also be properly duplicated (like it was already the case for world, and scene itself).
2019-02-05Cleanup: typo in comment.Bastien Montagne
2019-02-05Cleanup: replace BKE_id_copy_ex by BKE_id_copy where possible.Bastien Montagne
That way it is obvious when we are using default ID copy behaviour, and when we are using advanced/specialized ones.
2019-02-05Cleanup: use LIB_ID_COPY_LOCALIZE in BKE_libblock_copy_for_localize().Bastien Montagne
This is a slightly more risky commit, as it is very difficult to fathom all that may happen when localazing IDs. Would not expect any issue though. Note that a big TODO remain to refactor fully that ID localization process (for 'shading IDs'), it's still doing pretty much same thing as regular out-of-main copies, but the infamous ntree topic makes it delicate to handle...
2019-02-05Cleanup: sanitize BKE_libblock_copy_for_localize() copy flags.Bastien Montagne
Asking to not copy animdata, but copy actions, is pure nonsense (and make LIB_ID_COPY_ACTIONS flag totally useless/no-op).
2019-02-05Cleanup: Remove old deprecated BKE_libblock_copy_nolib() from BKE_library.Bastien Montagne
Was not used anymore, time to get rid of it.
2019-02-05BKE_library: id_copy: More general usage of LIB_ID_COPY_LOCALIZE.Bastien Montagne
Turns out most of our 'local working copy' cases can use same set of flags. Note that this commit adds LIB_ID_COPY_CACHES to all our local meshes copying, however this is no-op since that flag is unused during mesh copying... We may want to add another set of flags without that one at some point, but for now it would not be useful imho.
2019-02-05BKE_library: add 'no preview' flag to LIB_ID_COPY_LOCALIZE.Bastien Montagne
No local work copy is expected to need preview data, at least it should not. Part of copy flags cleanup, done in separate commit in case something goes wrong here...
2019-02-05Cleanup: initial regrouping of ID create/copy flags.Bastien Montagne
Those two first sets of flags should represent some common use cases. The goal here is to reduce verbosity of calls to BKE_id_copy_ex, and help make it more obvious the 'common behaviours' of ID copying across codebase.
2019-02-05Cleanup: comments before items in enums.Bastien Montagne
2019-02-05Cleanup: BKE_library: rename id_copy to BKE_id_copy.Bastien Montagne
Time to follow conventions for that one as well.
2019-02-05Cleanup: BKE_library: remove 'test' param of id_copy.Bastien Montagne
This was used in *one* place only... much better to have a dedicated helper for that kind of things. ;)
2019-02-05Fix empty object front/back display in perspective viewsCampbell Barton
2019-02-05Fix T61163: Single sided images show when viewed from sideCampbell Barton
2019-02-05Cleanup: remove contributors for CMake filesCampbell Barton
Following removal from C source code. See: 8c68ed6df16d8893
2019-02-04T61148: Particle properties can not be edited after keyframingSergey Sharybin
Was happening with certain settings for hair. Need to make a copy of particle settings before modifying them via animation system.
2019-02-04Undo System: add function to print undo stepsCampbell Barton
Useful for debugging.
2019-02-04Fix adding a paint texture slot not refreshingCampbell Barton
Adding a new slot wasn't refreshing when the object had no material.
2019-02-04Cleanup: Typos in comments (to to)Pablo Vazquez
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-02WM: Event simulation support for PythonCampbell Barton
This feature is intended only for testing, to automate simulating user input. - Enabled by '--enable-event-simulate'. - Disables handling all real input events. - Access by calling `Window.event_simulate(..)` - Disabling `bpy.app.use_event_simulate` to allow handling real events (can only disable). Currently only mouse & keyboard events work well, NDOF, IME... etc could be added as needed. See D4286 for example usage.
2019-02-02BKE_global: clear deprecated flags on load (all of them)Campbell Barton
2019-02-02Cleanup: match logic for merging G.f & G.fileflags on loadCampbell Barton
2019-02-02Cleanup: use G_FLAG_*/G_FILE_* for G.f/fileflagsCampbell Barton
Was confusing eg: G_AUTOPACK belonged to G.fileflags, G_PICKSEL to G.f.
2019-02-02Cleanup: use enum for BKE globalsCampbell Barton
2019-02-02Cleanup: remove author/date info from doxy headersCampbell Barton
2019-02-01Color management: change view transform for color pickers and display modes.Brecht Van Lommel
* Use simple default view transform for color pickers, as Filmic does not work well for all types of colors. We better handle this with an option and tagging of colors as emissive or albedo like. * For solid/workbench we also no longer use Filmic, as there is not enough contrast and it's not really needed since this is not physically based lighting. * For lookdev always take into account the view transform and look. Other view settings like exposure are only taken into account if scene lighting is used, since these are often dependent on scene light intensity. Fixes T61022, T57649, T59363.
2019-02-01Cleanup: remove original authorCampbell Barton
Missed when removing contributors.
2019-02-01Cleanup: manually remove header text not handled by automationCampbell Barton
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-02-01Fix T61088: Cycles particle viewport render stuck in loop.Brecht Van Lommel
Object to be instanced should not be modified.
2019-02-01Logging: Use CLOG for blenkernelCampbell Barton
Part of D4277 by @sobakasu
2019-01-31Cleanup: avoid some unnecessary inverse matrix math.Brecht Van Lommel
2019-01-31Fix T59339: Particle render without baking issuesSergey Sharybin
The issue was caused by dependency graph resetting particles when evaluating copy-on-write version of object. Solved by only doing reset from dependency graph on user edits. Other issue was caused by modifier itself trying to compare topology and reset particles when number of vertices or faces changed. This isn't reliable, since topology might change even with same number of elements. But also, since copy-on-written object initially always have those fields zero-ed the reset was happening on every F12. The latter issue is solved by moving reset from modifier stack to places where we exit edit/paint modes which might be changing topology. There is still weird issue of particles generated at some weird location after tapping tab twice, but this is not a new issue in 2.8 branch and is to be looked separately.
2019-01-31Particles: Fixes for synchronization to originalSergey Sharybin
Was missing synchronization of current frame to the original one, which is one of the issues why point cache does not properly reset on edits. Also clear recalc flag on original particle system. Ideally we need to get rid of recalc on a particle system, since that is not really covered by tagging system of dependency graph.
2019-01-31Remove direct shape key drivers evaluaiton in object updateSergey Sharybin
This is now hanbdled by the nodes in dependency graph.
2019-01-31Fix T60996: Dyntopo flood fill fails due to missing ob->imatJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4285
2019-01-31Fix: allow curve of driver to be evaluated individuallyJacques Lucke
This is necessary when adding a new keyframe to a fcurve that also has a driver. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4278
2019-01-31Fix T59495, T59992, T59904, T59178, T60598: broken keyframed value editing.Brecht Van Lommel
This removes a bunch of animation/driver evaluations and recalc flags that should be redundant in the new depsgraph, and were incorrectly affecting the evaluated scene in a permanent way. Still two cases that could be removed if the depsgraph is improved, in BKE_object_handle_data_update and BKE_cachefile_update_frame. For physics subframe interpolation there are also still calls to BKE_object_where_is_calc that should ideally be removed as well, though they are not known to cause keyframing bugs. Differential Revision: https://developer.blender.org/D4274