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
2020-03-06Cleanup: rename 'verify' to 'ensure' for BKE_image_viewer functionsCampbell Barton
2020-03-04Cleanup: spellingCampbell Barton
2020-03-04UI: rename View Selected" to "Frame Selected"Asad-ullah Khan
Addresses T74331
2020-02-26Cleanup: split image sequence detection into own file, and make it reusableBrecht Van Lommel
2020-02-26Fix T74221 Crash when changing Image Source in UV editorClément Foucault
2020-02-25GPU: Add Image property to allow high bitdepth support on a per image basisClément Foucault
This adds the `Half Float Precision` option in the image property panel. This option is only available on float textures and is enabled by default. Adding a flag inside the imbuf (IB_halffloat) on load is done for EXR and PSD formats that can store half floating point (16bits/channels). The option is then not displayed in this case and forced. Related task T73086 Reviewed By: brecht Differential Revision: https://developer.blender.org/D6891
2020-02-25Cleanup: avoid Operator.customdata cast which could lead to errorsCampbell Barton
Both save and save-as share utility functions which cast from customdata in an error prone way. Avoid this by passing image format data directly.
2020-02-25Fix memory leak saving imagesCampbell Barton
2020-02-25Image: support saving images in non-image spacesCampbell Barton
Alternate fix for T74182, making changes to the save-as operator.
2020-02-25Fix T74182: Crash saving images from non-image spacesCampbell Barton
2020-02-25Cleanup: move deprecated enum into versioning codeCampbell Barton
2020-02-19Cleanup: assign Main, use existing assignmentsCampbell Barton
Avoid accessing inline since it's often used multiple times. In some cases it was already defined.
2020-02-17Fix T68749: BPY: Deprecate height of popupJeroen Bakker
`invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694
2020-02-11DRW: Color Management improvementClément Foucault
Reviewed By: brecht sergey jbakker Differential Revision: http://developer.blender.org/D6729
2020-02-10Merge branch 'blender-v2.82-release'Lukas Stockner
2020-02-10Fix unreported: Packing/unpacking errors don't mention tiled imagesLukas Stockner
Thanks to @dfelinto for spotting this!
2020-02-10Fix T73713: Tiled textures (UDIM) getting lost when saving the .blend but ↵Lukas Stockner
not the textures The issue here is simple, IMA_SRC_TILED was missing from a check for whether the image should be saved. Note that tiled images won't be automatically saved if they have never been saved before. For single images this is handled by packing them, but packing of tiled images isn't supported yet. However, in that case the file closing dialog will at least show a warning now instead of completely ignoring tiled images.
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2020-02-07Cleanup: use of 'unsigned'Campbell Barton
- Replace 'unsigned' used on it's own with 'uint'. - Replace 'unsigned const char' with 'const uchar'.
2020-02-06Fix unreported: View All in the Image Editor ignores UDIM tilesLukas Stockner
Thanks to @dfelinto for spotting this!
2020-02-06Fix unreported: Trying to create invalid UDIM tiles failed without errorLukas Stockner
Thanks to @dfelinto for spotting this!
2020-01-21Fix T73233: Image Editor Color Picker CrashJeroen Bakker
When using the color picker on a image editor it tries to read the color from the original image. When there is no original image the code crashes during the determination of the UDIM tile number. There are 2 approaches to solve this. 1. Modify `BKE_image_get_tile_from_pos` to support NULL pointers. 2. Modify `ED_space_image_color_sample` with an early exit. This patch modifies `ED_space_image_color_sample` with an early exit. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6629
2020-01-20Fix T73162: Modal tools cant be mapped to MMBCampbell Barton
Also rename struct members to 'launch_event', since it's more descriptive and was called this in some places.
2020-01-09Gizmo: use pivot center for UV gizmosCampbell Barton
2019-12-30Image Editor: Initialize Add Tile options from current tileLukas Stockner
Previously, non-default alpha or float settings had be set manually. With this change, the Add Tile and Fill Tile operators initialize width, height, alpha and float from the currently selected tile if it has a vaild ImBuf, otherwise from the first tile.
2019-12-25Cleanup: Remove BLI_stringenc_pathLukas Stockner
2019-12-18Gizmo: add the ability to postpone refreshing while tweakingCampbell Barton
This resolves a logical problem using tweak as a fallback tool. See: T66304#828742 The select action would immediately show the gizmo underneath it, then the tweak would be handled by the gizmo instead of moving the item under the cursor. Currently this works by hiding the gizmo until the tweak event ends. While it's simpler to check if the gizmo received a mouse-down event, it causes flickering before each drag event which feels like a glitch. This is optional for each gizmo type because there are cases where this can be useful to activate the gizmo immediately (mesh rip for example).
2019-12-18Image Editor: Load UDIMs even if secondary tile is selectedLukas Stockner
Previously the user had to select the 1001 tile for this to work, now any tile will work as long as the 1001 tile still exists on disk.
2019-12-18Image Editor: Disable tile operators if tile 1001 is missingLukas Stockner
2019-12-18Image Editor: Add option to create multiple tiles at onceLukas Stockner
Any existing tiles will be skipped.
2019-12-18Image Editor: Add option to fill UDIM tiles during creationLukas Stockner
2019-12-17Cleanup: style, always use bracesCampbell Barton
2019-12-16Fix typo in UDIM operator (always capitalize UI labels)Dalai Felinto
2019-12-13Image Editor: Increase size of Add Tile popupLukas Stockner
2019-12-13Gizmo: add gizmos for UV transform translate/rotate/scaleCampbell Barton
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-11-25UI: Allow label for Template-ID (respecting property split layout)Julian Eisel
Adds a `text` parameter to `bpy.types.uiLayout.template_ID()` which causes a label to be added, as usual. Adding the label also makes the template respect the `bpy.types.uiLayout.use_property_split` option. Also fixes wrong layout being used in the template-ID, although I think that didn't cause issues in practice. Sergey requested this for usage in the Movie Clip Editor.
2019-11-02Cleanup: rename undo tile x/y membersCampbell Barton
Avoid mixing up pixel/tile location.
2019-11-02T71094: anchored & drag-dot brushes paint continuouslyCampbell Barton
Error from 151cc02b6f823
2019-10-29Fix T70905: Image Editor header hides mask, cache and keyframe info ifPhilipp Oeser
flipped to bottom While flipping the header to bottom works in the MCE (because MCE doesnt allow overlapping UI) we need to take the regions visible rect into account for the Image Editor. Also correct clickable scubbing area (poll for frame_change) in the Image Editor and the MovieClip Editor not taking UI_DPI_FAC into account. Maniphest Tasks: T70905 Differential Revision: https://developer.blender.org/D6090
2019-10-15Fix image undo restoring float/byte tiles into the wrong buffer typeCampbell Barton
This also resolves the (unlikely) issue of undo having uninitialized zbuf data, now it's cleared instead.
2019-10-10Cleanup: clang-format, spellingCampbell Barton
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-01Cleanup: remove ED_image_paint_tile_remove_masks_allCampbell Barton
Masks are now temporary, not part of the persistent undo tiles. Now they're always freed after the stroke.
2019-10-01Cleanup: rename image undo_tile to paint_tileCampbell Barton
Clearer because they're no longer the same as undo tiles.
2019-10-01Cleanup: move image undo into space_image/Campbell Barton
This isn't just used for painting.
2019-10-01Cleanup: name of image poll functionCampbell Barton
2019-10-01Image: add resize operatorCampbell Barton
Now possible with new image undo, was added for testing but seems generally useful.
2019-10-01Image: support storing full image buffers for each undo stepCampbell Barton
Update image undo to store buffers for each step: - Undo buffers share tiles to avoid using too much memory. - Undo support for different sized buffers allowing operations such as crop or resize. - Paint tiles have been split into separate API/storage. - Painting speed wont be impacted significantly since storing the extra tiles is done after the stroke & only for the first undo step. Resolves T61263, see D5939 for details.