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-12-12Add support for tiled images and the UDIM naming schemeLukas Stockner
This patch contains the work that I did during my week at the Code Quest - adding support for tiled images to Blender. With this patch, images now contain a list of tiles. By default, this just contains one tile, but if the source type is set to Tiled, the user can add additional tiles. When acquiring an ImBuf, the tile to be loaded is specified in the ImageUser. Therefore, code that is not yet aware of tiles will just access the default tile as usual. The filenames of the additional tiles are derived from the original filename according to the UDIM naming scheme - the filename contains an index that is calculated as (1001 + 10*<y coordinate of the tile> + <x coordinate of the tile>), where the x coordinate never goes above 9. Internally, the various tiles are stored in a cache just like sequences. When acquired for the first time, the code will try to load the corresponding file from disk. Alternatively, a new operator can be used to initialize the tile similar to the New Image operator. The following features are supported so far: - Automatic detection and loading of all tiles when opening the first tile (1001) - Saving all tiles - Adding and removing tiles - Filling tiles with generated images - Drawing all tiles in the Image Editor - Viewing a tiled grid even if no image is selected - Rendering tiled images in Eevee - Rendering tiled images in Cycles (in SVM mode) - Automatically skipping loading of unused tiles in Cycles - 2D texture painting (also across tiles) - 3D texture painting (also across tiles, only limitation: individual faces can not cross tile borders) - Assigning custom labels to individual tiles (drawn in the Image Editor instead of the ID) - Different resolutions between tiles There still are some missing features that will be added later (see T72390): - Workbench engine support - Packing/Unpacking support - Baking support - Cycles OSL support - many other Blender features that rely on images Thanks to Brecht for the review and to all who tested the intermediate versions! Differential Revision: https://developer.blender.org/D3509
2019-12-09Fix T72145: Object.update_from_editmode crashes with emptiesCampbell Barton
Also corrects the return value, where objects that don't have an edit-mode returned true, making it seem as if object data was flushed.
2019-11-27Fix T71865: Separating mesh parts breaks shape keysCampbell Barton
This was an old bug which could be caused by saving after separating. Changes from 79b703bb635e made this fail reliably. Update shape key indices when they may be used again later.
2019-11-25Cleanup: used BKE_mesh_ prefixCampbell Barton
Missed in recent BKE_remesh renaming.
2019-11-25CMake: support building without PythonCampbell Barton
Resolve linking issues, warnings.
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-11-24Cleanup: spelling, repeated wordsCampbell Barton
2019-11-22Fix T71741: Crash showing the object relations menuCampbell Barton
2019-11-22Cleanup: rename mirror -> mesh_mirrorCampbell Barton
The term mirror on it's own is too ambiguous, use BKE_mesh prefix.
2019-11-21Tool System: make smooth & randomize modal operatorsCampbell Barton
Previously these used a gizmo to redo the operator however this complicated having on-screen gizmos to access tools (see T66304). Replace this with a generic way to make an operator that only has an execute function into a modal operator. This is used for smooth and randomize tools. Unlike operator gestures, this handles storing and resetting the data. Currently this only handles edit-mode data, however it's can be extended to other kinds of data.
2019-11-21Object: edit-mode data support for object vertex coordinate accessCampbell Barton
Allows to access/transform/restore edit-mode coordinates in a generic way.
2019-11-20Fix assert running remesh with OpenVDB disabledCampbell Barton
2019-11-18Fix wrong name for QuadriFlow undo stepCampbell Barton
2019-11-15Fix T68191: Make-instances-real doesn't select the new instancesPhilipp Oeser
2.79 also did this [select the new instances] which was useful. 2.79 also kept the instancer selected [this patch deselects] Reviewed By: mont29 Maniphest Tasks: T68191 Differential Revision: https://developer.blender.org/D6233
2019-11-08Fix T71199: Child-parent relationships arent kept after you make instances real.Bastien Montagne
Comparison function of the of the parent ghash was not fully correct, could lead to some false positives in some cases...
2019-11-07Fix T69822: Switching sculpt objects breaks undoCampbell Barton
This introduces object mode tagging for data which hasn't yet been written back to the ID data. Now when selecting other sculpt objects, the original objects data is flushed back to the ID before writing a memfile undo step.
2019-10-27Cleanup: remove redundant NULL checksCampbell Barton
2019-10-11GPencil: Remove curve objects after converting to strokes (unreported)Antonio Vazquez
This was detected fixing T69459 Part of Differential Revision: https://developer.blender.org/D6045 Note: done in a separated commit to keep track of changes done not directly related to bug reported in T69459.
2019-10-11Fix T69459: Convert Curve to Grease Pencil clears TransformAntonio Vazquez
Also changed to create a grease pencil object for each curve. Part of differential revision: https://developer.blender.org/D6045
2019-10-10Cleanup: clang-format, spellingCampbell Barton
2019-10-09Local Collections: Allow users to show hidden collectionsDalai Felinto
Users now can turn on in a viewport collections that are temporarily hidden (eye) in the view layer. Design task: T61327 As for the implementation, I had to decouple the visibility in the depsgraph from the visibility in the view layer. Also there is a "bug" that in a way was there before which is some operators (e.g., writing a text inside of a text object, tab into edit mode) run regardless of the visibility of the active object. The bug was present already (with object type visibility restriction) in 2.80 so if we decide to tackle it, can be done separately (I have a patch for it though P1132). Reviewed by: brecht (thank you) Differential Revision: D5992
2019-10-08Sculpt: Fix projection artifacts by changing the voxel remesh isovaluePablo Dobarro
This should fix most of the shrinkwrap artifacts when the preserve volume option is active. After this commit the default voxel remehser settings should not fail in the default cube. Reviewed By: zeddb Differential Revision: https://developer.blender.org/D6010
2019-10-07Simplify the quadriflow manifold mesh function for loopsSebastian Parborg
No need to iterate over all polygons if we just want to iterate over all face loops anyways.
2019-10-04Small cleanupDalai Felinto
2019-10-04Fix T70095: Quadriflow crash running on a messy meshSebastian Parborg
Quadriflow does not support non manifold meshes. (Edges with > 3 connected faces and discontinuous face normal directions) While it does sometimes "work" in these configurations, the results are not good and in most cases it just flat out will crash. Added a sanity check to make sure that the input mesh is manifold. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5877
2019-10-03Sculpt: Disable remesh operators with MultiresPablo Dobarro
Reviewed By: brecht Differential Revision: https://developer.blender.org/D5964
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-10-02Fix T70358: Use face count in Quadriflow by defaultPablo Dobarro
Reviewed By: brecht Maniphest Tasks: T70358 Differential Revision: https://developer.blender.org/D5958
2019-10-02Revert "UI: use correct singular and plural nouns in report messages"Brecht Van Lommel
Convention is to use (s) postfix for cases where there can be one or multiple, so stay consistent with that. This reverts commit 3e8276311ed17d12e8b47b4fe8e2f68c1ce8c603.
2019-10-01UI: use correct singular and plural nouns in report messagesYevgeny Makarov
Differential Revision: https://developer.blender.org/D5729
2019-10-01Fix T66641: Certain drivers fail to copy when copying a full scene.Bastien Montagne
The core of the issue here is that 'make single user' functions still does its own, manual and quite partial, remapping of IDs, which covers all most common cases but cannot consider *all* possible ID usages (especially when it comes to drivers or custom properties, that can essentially point to any kind of data-blocks). This fix is merely a band-aid, there is no way to fully solve this without a complete rewrite of that area of code to make use of modern ID management code.
2019-09-27Voxel remesh: Enable adaptivityPablo Dobarro
This commit enables OpenVDB adaptivity in the voxel remesher. It can be useful to reduce the polygon count if you want to switch to dyntopo after using the voxel remesher workflow. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5918
2019-09-27Fix T70291: Sculpt remesh inverts normal when fix poles is activatedPablo Dobarro
Reviewed By: brecht Maniphest Tasks: T70291 Differential Revision: https://developer.blender.org/D5916
2019-09-27Fix T70280: QuadriFlow remesh with "Use Paint Symmetry" and "Smooth Normals" ↵Pablo Dobarro
may give wrong normals Reviewed By: jbakker Maniphest Tasks: T70280 Differential Revision: https://developer.blender.org/D5904
2019-09-26Quadriflow: Symmetry supportPablo Dobarro
This patch adds paint symmetry support to Quadriflow. It bisects and mirrors the input and the output from the remesher to build the final mesh using the preserve boundary option. This is also an important performance improvement in Quadriflow because it only needs to process half of the mesh with half the resolution. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5855
2019-09-26Voxel Remesh: Fix poles and preserve volumePablo Dobarro
This commit fixes most of the issues we currently have in the voxel remesher. Mesh volume is preserved when doing multiple iterations, so the sculpt won't shrink and smooth each time you run the remesher. Mesh topology is much better, fixing most issues related to mask extraction and other topology based operations. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5863
2019-09-25Fix T69542: Corrective Smooth modifier breaks when drivers are involvedSebastian Parborg
Previously the cache for the modifier would not be invalidated if modifier settings were changed with drivers or keyframes. Now we compare the current setting with the ones used to generate the cache and invalidate the cache if they differ. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D5694
2019-09-25Motion paths: Use minimal possible dependency graphSergey Sharybin
This change makes it so motion paths are using minimal possible dependency graph which is sufficient to evaluate required motion path targets. Disclaimer: granularity is done on ID level, but it is possible to go more granular if really needed. Brings time down to 0.5 sec when updating motion path for the Rain animation file used for benchmarks in the previous commits. Reviewers: brecht Differential Revision: https://developer.blender.org/D5874
2019-09-25Motion paths: Refactor, make update range more explicitSergey Sharybin
Allows to have a higher versatility in the API. Should be no functional changes.
2019-09-20UI: Fix CapitalizationYevgeny Makarov
Differential Revision: https://developer.blender.org/D5716
2019-09-18Fix remesher operator poll functionPablo Dobarro
This commit also removes the name "voxel" from the messages because this function is now used for the voxel remesher and quadriflow. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5842
2019-09-18Fix excessive dependency graph evaluation while painting strokesBrecht Van Lommel
Particularly noticeable when vertex painting with a subsurf modifier. In some cases every sculpt or paint stroke step would evaluate the dependency graph. This should only happen for redraws. Now more selectively choose if the dependency graph should be evaluated to initialize the view context. Doing it in the view context evaluation is somewhat hidden, now it's more explicit. Differential Revision: https://developer.blender.org/D5844
2019-09-18Fix segfault when polling OBJECT_OT_voxel_remesh without active objectSybren A. Stüvel
The active object can be `NULL`, which causes a segfault in `BKE_object_is_in_editmode(NULL)` (and if that were made NULL-safe, the segfault would happen further down in `object_remesh_poll()`).
2019-09-17Fix T69809, T69810: sculpt gone or crashing after renderBrecht Van Lommel
Make a distinction between flush sculpt changes for rendering, and forcing sculpt data structures to be rebuilt after mesh changes. Also don't use PBVH for renders.
2019-09-16Fix T64238: Scene Full Copy: Cameras bound to markers does not update.Bastien Montagne
That's exactly why we should get rid of all those 'custom cases' remapping code, it's hard enough to keep a single place (library_query.c) up to date and 100% valid, but having more areas doing their own remapping is just impossible to maintain... Some day...
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-13Per-Viewport Collection VisibilityDalai Felinto
Support per-viewport collection visibility options. Note 1: There is no way to show a collection that was not visible before due to depsgraph. Otherwise we would risk having all the collections in the depsgraph and I believe this is not the idea. An alternative would be to have a new depsgraph for viewports that are not local. Something to keep in mind if we do per-viewport current frame in the future. So for now what we do is to only allow collections visibility to be disabled/hidden in this mode. Note 2: hide_viewport (the eye icon) doesn't really matter for depsgraph. So after the merge we can still ignore it to show the collections locally in a viewport with no problems for the depsgraph. Reviewers: brecht, sergey Subscribers: billreynish Related task: T61327 Differential Revision: https://developer.blender.org/D5611
2019-09-13Add QuadriFlow remesherSebastian Parborg
2019-09-11Depsgraph: Pass bmain to depsgraph object creationSergey Sharybin
Currently unused, but will allow to keep of an owner of the depsgraph. Could also simplify other APIs in the future by avoiding to pass bmain explicitly to relation update functions and things like that.
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).