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
2015-10-06Cleanup: use BLI_path_basenameCampbell Barton
2015-10-06RNA: Add check_existing arg to other load() funcsCampbell Barton
Note: movieclip was doing this already by default, now split into 2 functions, matching image behavior.
2015-09-18Image Stamp: word-wrap support for 'note' textCampbell Barton
2015-09-18BLF: initial word-wrap supportCampbell Barton
- Adds support for word wrapping to Blender's BLF font library. - Splits lines when width limit is reached or on explicit \n newlines. Details: - Word wrapping is used when `BLF_WORD_WRAP` flag is enabled. - There is a single loop to handle line wrapping, this runs callback, passing in a substring, this way we can avoid code-duplication for all word-wrapped versions of functions... OR... avoid having to add support for word-wrapping directly into each function. - The `ResultBLF` struct was added to be able to get the number of wrapped lines, when calling otherwise unrelated functions such as `BLF_draw/BLF_width/BLF_boundbox`, which can be passed as the last argument to `BLF_*_ex()` functions. - The `ResultBLF` struct is used to store the result of drawing (currently only the number of lines wrapped, and the width).
2015-09-09Fix T45839 : Regression - Multi-layer image issues when using non-standard namesDalai Felinto
This was introduced in the fix for T44336 . The code is now what it should have been in the first place at the time of multiview commit. ImageUser->passtype is being removed in favour of bringing ImageUser->pass back. Reviewers: sergey Differential Revision: https://developer.blender.org/D1504
2015-07-13Cleanup: IMB prefix for ImBuf definesCampbell Barton
2015-07-13 Imbuf types refactor.Antony Riakiotakis
ImBuf types were getting stored as bitflags in a 32bit integer which had already run out of space. Solved the problem by separating file type to an ftype enum, and file specific options to foptions. Reviewed by Campbell, thanks a lot!
2015-07-10Cleanup: remove redundant includesCampbell Barton
2015-07-06Fix T45237: Dither does not workDalai Felinto
2015-07-01Sequencer metadata:Antony Riakiotakis
Add option to render strip metadata to final result, bypassing current scene metadata.
2015-06-30Cleanup: move BLI_timestr to BLI_timecodeCampbell Barton
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27Fix part of code in `load_image_single()` wrongly disabled when WITH_OPENEXR ↵Bastien Montagne
was disabled.
2015-06-27Fix crasher when loading multiview OpenEXR image.Bastien Montagne
With multiview/multilayer OpenEXR file, `load_image_single()` will return NULL ibuf, since it has already populated ima (with `image_create_multiview()` or `image_create_multilayer()` calls). Also, added some more checks before doing `IMB_ImBufFromStereo3d()`, to be sure we do have enough slots in ibuf_arr, and we do not overwrite second ibuf either.
2015-06-19Support half float file format storage for Multilayer EXRSergey Sharybin
Quite straightforward implementation -- all the conversion magic is happening in IMB_exr_write_channels() and remained changes are only needed to pass information whether channels is to be converted to half float or not. Regular file output will use full-float for Z pass, which matches behavior of the single layer EXR files. But when saving happens with File Output node then all the passes are respecting half float settings because it's not possible to distinguish whether we're saving Z pass or not. Reviewers: juicyfruit, campbellbarton Reviewed By: campbellbarton Subscribers: maxon, effstops, fsiddi Differential Revision: https://developer.blender.org/D1353
2015-06-12De-duplicate stamp callbackCampbell Barton
2015-06-08Fix T44995: Crash loading packed imageCampbell Barton
2015-05-26Building without OpenEXR works againCampbell Barton
2015-05-26Trying to pack image with invalid path crashesAntony Riakiotakis
2015-05-26Fix multilayer OpenEXR not supporting metadata.Antony Riakiotakis
This will fix exporting of metadata and importing for imbufs, but image editor will not display these metadata since multilayer gets converted to renderresult, which does not support metadata display yet. This commit is more meant for external image editors/viewers.
2015-05-23Fix (unreported) broken RNA Image pack handling since multiview merge.Bastien Montagne
Was breaking loading of embedded FBX images (among other things, most likely).
2015-05-13Fix T44684 Compositor backdrop isn't updating correctlyDalai Felinto
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
This commit mainly: * Exposes PreviewImage struct in RNA, including ways for user to set images data. * Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image. * Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system. * Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons. Note that loading image from files' thumbnails is done when needed (deferred loading), not when defining the custom preview/icon. WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level. We do not want our UI to explode under hundreds of different flashy icons! For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons) and the example/templates featured with Blender. Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29). Differential Revision: https://developer.blender.org/D1255
2015-05-10Fix T44633: image cache broken for movies and sequences.Brecht Van Lommel
After multiview, it was continuously unloading/loading image buffers from the cache due to mismatch in cache insert and lookup keys.
2015-05-10Fix T44644 Missing thread-protection (spinlock) of image in new multiview code.Bastien Montagne
Many thanks to Sergey, for practically giving the solution! Note that it may also fix T44345, depends whether there are other missing protections/locks or not...
2015-05-08Cleanup: use r_* prefix for return argsCampbell Barton
2015-05-04Fix T44503 full sample does not display any preview any more.Antony Riakiotakis
The fix exposes another error not fixed in this commit, escaping the render will not flush the full sample render result correctly.
2015-05-04Add name argument to data creation API callsCampbell Barton
Was adding then renaming, unnecessarily.
2015-04-29Multi-View cleanup: using RenderResult->rect* only for temporary RenderResultsDalai Felinto
Originally I wanted to get rid of RenderResult->rect* entirely, but it's convenient to have for temporary structs. This patch makes sure they are used only when really needed, which should help clearing the code out. (they are needed when using RE_AcquireResultImage() - which produces a RenderResult with no RenderView) Reviewers: sergey Differential Revision: https://developer.blender.org/D1270
2015-04-27Multi-View: Code cleanupDalai Felinto
I finally put the time into understanding what was going on here. Basically RE_AcquireResultImage() produces RenderResults without RenderViews. That will be fine for now since I'm planning to refactor RenderResult soon.
2015-04-27Fix T44514 Crash under cycles rendering using F12, based on patch from Gaia ↵Dalai Felinto
Clary
2015-04-23Fix T44498 - Blender crashes in some files after render slots fixDalai Felinto
This is a temporary fix until I get to investigate it more carefully. It will help if the report could include the steps to reproduce it besides the buggy file. Note: RenderResult should *always* have at least a valid RenderView, which is not what happens here.
2015-04-23Fix T44396 - Compositing render slots don't workDalai Felinto
Note 1: If you go to a render slot previously rendered and change something in the compositing the buffer will still vanish. This is an old bug, T44181, and not addressed here (I'm basically just fixing the regression introduced with multiview) Note 2: I have a work in progress patch to get rid of RenderResult->rectf/rect32/rectz entirely. It still not working, and we should have a working code base before doing refactoring anyways.
2015-04-21Stamp refactoring:Antony Riakiotakis
Write those on render result during rendering, so we can cleanly write a render result image after rendering.
2015-04-19Cleanup: warningsCampbell Barton
2015-04-17Fix T44336: Unable to select cycles-specific passes in UV/image editorDalai Felinto
This approach gets rid of iuser->pass for good. Also, I'm commenting out the pass increase/decrease. This was broken since multiview. I will fix it later (before 2.75), but I didn't want to get this patch mangled with that fix. Thanks Sergey Sharybin for the review and feedbacks. Reviewers: sergey Differential Revision: https://developer.blender.org/D1232
2015-04-09Fix for passing -1 to close()Campbell Barton
2015-04-07Multiview: compositor - avoid trashing image viewer views/buffers when ↵Dalai Felinto
multiview is off I found this while investigating why the backdrop shows 'blank' while I update a node influence factor. This problem still persist, but maybe it was there before multiview. In release it is not noticeable, but in my debug build is quite evident.
2015-04-06Multi-View and Stereo 3DDalai Felinto
Official Documentation: http://www.blender.org/manual/render/workflows/multiview.html Implemented Features ==================== Builtin Stereo Camera * Convergence Mode * Interocular Distance * Convergence Distance * Pivot Mode Viewport * Cameras * Plane * Volume Compositor * View Switch Node * Image Node Multi-View OpenEXR support Sequencer * Image/Movie Strips 'Use Multiview' UV/Image Editor * Option to see Multi-View images in Stereo-3D or its individual images * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images I/O * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images Scene Render Views * Ability to have an arbitrary number of views in the scene Missing Bits ============ First rule of Multi-View bug report: If something is not working as it should *when Views is off* this is a severe bug, do mention this in the report. Second rule is, if something works *when Views is off* but doesn't (or crashes) when *Views is on*, this is a important bug. Do mention this in the report. Everything else is likely small todos, and may wait until we are sure none of the above is happening. Apart from that there are those known issues: * Compositor Image Node poorly working for Multi-View OpenEXR (this was working prefectly before the 'Use Multi-View' functionality) * Selecting camera from Multi-View when looking from camera is problematic * Animation Playback (ctrl+F11) doesn't support stereo formats * Wrong filepath when trying to play back animated scene * Viewport Rendering doesn't support Multi-View * Overscan Rendering * Fullscreen display modes need to warn the user * Object copy should be aware of views suffix Acknowledgments =============== * Francesco Siddi for the help with the original feature specs and design * Brecht Van Lommel for the original review of the code and design early on * Blender Foundation for the Development Fund to support the project wrap up Final patch reviewers: * Antony Riakiotakis (psy-fi) * Campbell Barton (ideasman42) * Julian Eisel (Severin) * Sergey Sharybin (nazgul) * Thomas Dinged (dingto) Code contributors of the original branch in github: * Alexey Akishin * Gabriel Caraballo
2015-02-26Fix T43479 animated textures lost after going to a frame before animatedAntony Riakiotakis
frame start. Issue here is that if we failed to get an image from the cache, we would try to load from file. This would fail when the queried frame was less than the animated sequence start frame, and invalidate the OK state of the image. Solution is that when loading from cache succeeds, we also reset the OK state of the image for animated textures. The fix might be relevant elsewhere too, but kept it isolated just in case.
2015-02-17Fix T38808: Re-opening an image makes absoluteCampbell Barton
2015-02-09Fix ImBuf leaked by Image from View operatorNicholas Bishop
Running this operator and and closing Blender gives this: Error: Not freed memory blocks: 2 ImBuf_struct len: 2480 0x69ba4f8 imb_addrectImBuf len: 1048576 0x6ccc2d8 Fixed with added call to IMB_freeImBuf in BKE_image_add_from_imbuf. Could be fixed in the operator instead, but I think the BKE function is the correct place since the comment says it should take ownership of the ImBuf. Reviewers: sergey Reviewed By: sergey Differential Revision: https://developer.blender.org/D1084
2015-02-09Code cleanup: remove unused function BKE_image_assign_ibufNicholas Bishop
Reviewers: sergey Reviewed By: sergey Differential Revision: https://developer.blender.org/D1083
2015-02-04Port fix from gooseberry that doesn't load the full res file if a proxyAntony Riakiotakis
is requested.
2015-02-03Fix T43403: Compositor does not respect interlaced videoSergey Sharybin
This is actually issue with Image datablock, which had obscure Fields settings but didn't allow to de-interlace the video. Now added the option to de-interlace Image with Movie input type.
2015-01-31Add PIL_check_seconds_timer_i to avoid castingCampbell Barton
note, win32 casts still casts from double.
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-24BKE_image: use BKE_image_*** prefixCampbell Barton
use bools for return values and some api naming consistency.
2015-01-09Fix T43159: Copying of linked datablocks using relpath leads to invalid ↵Bastien Montagne
paths in new copies. Propper fix reverting most of rB60e70c0c6014e5, which was only partial specific fix. This code uses generic `BKE_id_lib_local_paths()` func to handle all possible paths. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D977
2015-01-08Fix T43159: Copying of linked datablocks using relpath leads to invalid ↵Bastien Montagne
paths in new copies. Simply have to rebase onto main filepath when copying, if source datablock is lib and path is relative. Afaict, only affected Image and Text datablocks. MovieClip would also be a candidate, but has no copy implemented currently.