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
2018-04-30Cleanup: de-duplicate paint access from objectCampbell Barton
2018-04-30BLI Color: YUV to/from rgb colorspace optionAaron Carlisle
This commit does two things: - Adds an option to do the calculation in different color spaces (BT601 or BT709). - Changes the default caluclation from legacy BT601 to BT709. This affects several areas: - UI areas (mainly scopes) - ViewLevelsNode - Several other nodes that use `COM_ConvertOperation.h`
2018-04-25Library: Add assert to catch unsupported copy flags combinationSergey Sharybin
Thanks Bastien for review!
2018-04-25CDDM: correct (disabled) logic in merge vertsCampbell Barton
2018-04-25Remove developer exception hackCampbell Barton
This caused too much trouble, also it's possible users run with 'release' in their CWD causing issues. Developers can symlink "release/" to "bin/2.79".
2018-04-25Revert "Fix (unreported) broken 'get system path' in some cases."Campbell Barton
This reverts commit f1bc0aeddedacf68182164dde5d4674d11aba6c9.
2018-04-25Fix (unreported) broken 'get system path' in some cases.Bastien Montagne
There were two issues here actually: * The hack to allow running Blender directly from the source directory would just check for a 'release' directory, without actually ensuring it is release dir from blender source tree, and not some other random folder. * GHOST_getSystemDir returns nothing for portable installations, now we'll then check directly in the blender binary dir in that case. This fix is more critical in 2.8 branch, where that system path is used to retrieve new '3D' icons...
2018-04-20VSE Effects: Wipe box: fix compilation errorsAaron Carlisle
This is still broken I cant tell if it is the fact that the in_band funtion does not work properally or an issue in the box algorithm, or both. It seems like the calculation of the size of the box while roatated needs to be fixed also.
2018-04-19Cleanup: rename vlak -> polyCampbell Barton
2018-04-19Cleanup: rename Icon.type -> id_typeCampbell Barton
Confusing when adding non-id icons.
2018-04-18Particles: Interpolate size for interpolated childrenSergey Sharybin
This finally allows us to use Random factor to add variations to the interpolated children. This feature never worked since 2007L there was random factor slider in the interface, but it was only used by simple children. Now it has affect on interpolated children as well. Technically, this will break compatibility if older file had random factor set to something else than 0 (default value is 0 though). But we are leaving 2.7 series, so can accept such breackage in the name of supported features.
2018-04-16Cleanup: indentationCampbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-04-16BKE_context: macro to access ID's while loopingCampbell Barton
2018-04-16Make ID icons safe for deletion from threadsSergey Sharybin
Added a lock-free deferred queue for deletion. Now if ID icon is requested to be freed from non-main thread, it will be added to the deferred list. Actual deletion will happen later from main thread. Currently actual deletion only happens next time BKE_icon_id_delete() is called, which might not be enough. But it's easy to enforce deferred deletion. Icons for preview images are not covered by deferred deletion yet. Reviewers: mont29 Differential Revision: https://developer.blender.org/D3146
2018-04-15Cleanup: ED_armature namingCampbell Barton
- Wasn't clear which functions handle edit-bones. - Mixed both ebone and edit_bone in names. - Didn't use ED_armature_* prefix for public API. See P655 to apply to branches.
2018-04-15Cleanup: remove undoing access, minor formattingCampbell Barton
Access to undoing state isn't needed, some text insert code was overly compacted.
2018-04-15Fix T54593: Py text edits crash (undo regression)Campbell Barton
2018-04-14Cleanup: use const for BKE_object argsCampbell Barton
2018-04-14Fix T54568: Undo memory de-duplication failedCampbell Barton
Error in 651b8fb14e caused de-duplication to fail.
2018-04-09Use the newer version of the bullet 6dof spring constraint for rigidbody.Alexander Gavrilov
The new constraint is slower and not backward compatible, but should be better, especially in the damping side. The new constraint also has a different valid range of the damping coefficient, and a limit implementation that bounces instead of making the object stationary. Reviewers: sergof Differential Revision: https://developer.blender.org/D3125
2018-04-09Added support for the WEBM/VP9 video codecSybren A. Stüvel
WEBM is the codec name, and VP9 is the encoder (the older encoder "VP8" is less efficient than VP9). WEBM/VP9 and h.264 both have options to control the file size versus compression time (e.g. fast but big, or slow and small, for the same output quality). Since WEBM/VP9 only has three choices, I've chosen to map those to 3 of the 9 possible choices of h.264: - BEST → SLOWER - GOOD → MEDIUM - REALTIME → SUPERFAST The VERYSLOW and ULTRAFAST options give very little extra benefit. Reviewed by: @Severin
2018-04-06Cleanup: style, doxy headersCampbell Barton
2018-04-05Cleanup: use string macros to avoid duplicate argsCampbell Barton
2018-04-05Load metadata from video files and expose via RNASybren A. Stüvel
The MovieSequence and MovieClip classes now have a metadata() function that exposes the `IDProperty *` holding the video metadata. Part of: https://developer.blender.org/D2273 Reviewed by: @campbellbarton
2018-04-05Write the scene render frame range to image/video filesSybren A. Stüvel
This is useful to create a mapping from the frame range in the video to frame index in the blend file. Part of: https://developer.blender.org/D2273 Reviewed by: @campbellbarton
2018-04-05Write StampData metadata to video filesSybren A. Stüvel
This is currently only supported by FFmpeg (so not frameserver, AVI RAW, or AVI JPEG), and only seems to work when using Matroska or Ogg Theora containers. Only metadata that doesn't change from frame to frame is written to video files. This distinction is visible in the UI by looking at the stamp checkbox tooltips (they either mention "image" or "image/video"). Part of: https://developer.blender.org/D2273 Reviewed by: @campbellbarton
2018-04-05IMB_metadata improvementsSybren A. Stüvel
- Metadata handling is now separate from `ImBuf *`, allowing it to be used with a generic `IDProperty *`. - Merged `IMB_metadata_add_field()` and `IMB_metadata_change_field()` into a more robust `IMB_metadata_set_field()`. This new function doesn't return any status (it now always succeeds, and the previously existing return value was never checked anyway). - Removed `IMB_metadata_del_field()` as it was never actually used anywhere. - Use `IMB_metadata_ensure()` instead of having `IMB_metadata_set_field()` create the containing `IDProperty` for you. - Deduplicated function declarations, moved `intern/IMB_metadata.h` out of `intern/`. Note that this does mean that we have some extra `#include "IMB_metadata.h"` lines now, as the metadata functions are no longer declared in `IMB_imbuf.h`. - Deduplicated function declarations, all metadata-related declarations are now in imbuf/IMB_metadata.h. Part of: https://developer.blender.org/D2273 Reviewed by: @campbellbarton
2018-04-05Undo: split text undo steps out of the data-blockCampbell Barton
This moves undo storage into a separate struct which is passed in from the undo system.
2018-04-05Undo System: return undo step from undo push initCampbell Barton
Also improve logging
2018-04-04Fix modifier freeing code re. ID refcounting.Bastien Montagne
Free code should not handle ID refcounting at all. This has to be done at higher level, since in some case we want to free (temp) data that actually did not refcount at all its IDs. This change seems to be working OK, but as usual in that area, only lots of testing in real-case situation will say whether there are some hidden bugs or not.
2018-04-04Depsgraph: Assert that pchan index is always validSergey Sharybin
2018-04-04Depsgraph: Only bind ID-data and indices to depsgraph callbacksSergey Sharybin
This is a part of copy-on-write sanitization, to avoid all the checks which were attempting to keep sub-data pointers intact. Point is: ID pointers never change for CoW datablocks, but nested data pointers might change when updating existing copy. Solution: Only bind ID data pointers and index of sub-data. This will make CoW datablock 7update function was easier in 2.8. In master we were only using pose channel pointers in callbacks, this is exactly what this commit addresses. A linear lookup array is created on pose evaluation init and is thrown away afterwards. One thing we might consider doing is to keep indexed array of poses, similar to chanhash. Reviewers: campbellbarton Reviewed By: campbellbarton Subscribers: dfelinto Differential Revision: https://developer.blender.org/D3124
2018-04-03Undo: make id-map use binary search to keep sortedCampbell Barton
2018-04-03Fix own error w/ undo ID lookupCampbell Barton
Was testing with small number of items, so this went unnoticed.
2018-04-03Cleanup: rename BMesh count_ex -> count_at_mostCampbell Barton
2018-04-03Cleanup: rename list count_ex -> count_at_mostCampbell Barton
2018-04-03Undo System: id-map avoid duplicate add/lookupCampbell Barton
Add versions of add/lookup that check the previous item.
2018-04-03Fix mistake logging w/ undoCampbell Barton
2018-04-02Build: fixes for the Intel compiler versions 2016, 2017, 2018.Milan Jaros
Differential Revision: https://developer.blender.org/D3109
2018-04-01Cleanup: remove global headerCampbell Barton
2018-03-31Undo: unified undo system w/ linear historyCampbell Barton
- Use a single undo history for all operations. - UndoType's are registered and poll the context to check if they should be used when performing an undo push. - Mode switching is used to ensure the state is correct before undo data is restored. - Some undo types accumulate changes (image & text editing) others store the state multiple times (with de-duplication). This is supported by checking UndoStack.mode `ACCUMULATE` / `STORE`. - Each undo step stores ID datablocks they use with utilities to help manage restoring correct ID's. Needed since global undo is now mixed with other modes undo. - Currently performs each undo step when going up/down history Previously this wasn't done, making history fail in some cases. This can be optimized to skip some combinations of undo steps. grease-pencil is an exception which has not been updated since it integrates undo into the draw-session. See D3113
2018-03-30C Logging: use instead of printf for messagesCampbell Barton
- See `--log` help message for usage. - Supports enabling categories. - Color severity. - Optionally logs to a file. - Currently use to replace printf calls in wm module. See D3120 for details.
2018-03-27Cleanup: global undo (minor changes to internals)Campbell Barton
- Get memory usage from MemFile instead of MEM API avoids possible invalid when threads alloc memory. - Use size_t instead of uint and uintptr_t to store size. - Rename UndoElem.str -> filename - Rename MemFileChunk.ident -> is_identical
2018-03-24Text: re-allocate exact lengths for undoCampbell Barton
Undo sometimes reserved too much space in the buffer, now assert when this happens and allocate the exact size needed. Note prepares for moving text editor undo out of the text block (D3113) which will split the undo buffer into a list of undo steps.
2018-03-24Fix text editor undo w/ 4+ byte utf8 charactersCampbell Barton
2018-03-24Cleanup: move undo opcodes out of public headerCampbell Barton
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-03-20Remove debug only code from previous commitSergey Sharybin
2018-03-20Memory allocator: Clarify consistency check functionSergey Sharybin
Also make it to return truth when everything is good and false otherwise.