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-05-03Sound: Make sound handles only be in evaluated datablocksSergey Sharybin
Quite straightforward change, which makes it so audio handles are only created inside of evaluated datablocks. Exception is adding sound strip to the sequencer, which needs an audio handle to query length and number of channels. This is done by temporarily loading sound file into an original datablock, and then tossing it away. There is an assert in sound.c which verifies that audio system is used from an evaluated domain, which should help porting all the cases which are likely missed by this commit. Some annoying parts: - `BKE_sound_update_scene()` is iterating over all bases, and does special ID tags to see whether sound has been handled or not already. This can not be done the old fashion now. Ideally, this will be done as a speaker datablock evaluation, but seems that would require a lock since audio API is not safe for threading. So this is not a desired way i'd say. Possible solution here would be to iterate over ID datablocks using dependency graph query API. - Frame jump needs to call `BKE_sound_seek_scene()` directly because there might be some flags assigned to the scene which could be clear after operator execution is over. Need to verify if that's the case though. This is a bit hairy code, so sticking to a safest and known to work approach for now. - Removed check for format when opening new sound file. Maybe we can have some utility function which queries channel and duration information, leaving the caller's code clean and tidy. Tested following cases: - Adding/removing/moving sequencer's sound strips. - Adding/moving speakers in viewport. - Rendering audio. Reviewers: brecht Differential Revision: https://developer.blender.org/D4779
2019-05-03Depsgraph: Preserve sound and audio pointers through copy-on-writeSergey Sharybin
This allows to have scene and speaker copy-on-write executed without interrupting the playing sound.
2019-05-03Depsgraph: Store original sequencer strip pointerSergey Sharybin
Allows to identify where the strip came from.
2019-05-03Sound: Move evaluation to dependency graphSergey Sharybin
The sound handles are still in the original datablocks, so it's easier to test since there should be no functional changes.
2019-05-03Sound: Delay opening handlers for until really neededSergey Sharybin
Needs to be done in order to localize sound handlers to the evaluated IDs only. This commit might not be fully optimal, since it does more things on every scene update request, but that will be solved by the upcoming change which will put those updates to a dependency graph.
2019-05-03Depsgraph: Add scene audio componentSergey Sharybin
The idea is to make that responsible for dealing with things like audio update on frame jump and such.
2019-05-03Depsgraph: Tag sequencer for update on changesSergey Sharybin
Currently only adding, removing and transforming strips. Most likely more tags is needed.
2019-05-03Depsgraph: Initial work to cover sequencerSergey Sharybin
Just adds sequencer operation and links possible sound ID to it. No functional changes, just moving towards sound system integration into the dependency graph.
2019-05-03Depsgraph: Make sound ID part of the graphSergey Sharybin
Currently those IDs are not covered by copy-on-write mechanism since that ruins the current design of BKE_sound, But this change allows to move towards system where sound handlers are only valid for an evaluated ID datablocks.
2019-05-03Fix compiler warning/error after recent changesBrecht Van Lommel
2019-05-03Fix width of compact buttons with icons, e.g. layout.menu().Alexander Gavrilov
As mentioned in the comment, the icon width computation relies on big enough margins; however in compact mode they aren't big enough and the label gets truncated.
2019-05-03Fix crash opening file saved in editmode with a brush image texturePhilipp Oeser
started with recent UV Sculpt tool-system integration rB928becec60d1 Fixes T64094 Reviewers: brecht Maniphest Tasks: T64094 Differential Revision: https://developer.blender.org/D4788
2019-05-03UI: remove bone only constraints from object constraint menuNathan Craddock
This is better than showing an error after trying to add them. Ref T61560. Differential Revision: https://developer.blender.org/D4767
2019-05-03Cycles: support loading images from arbitrary OpenColorIO color spaceLukas Stockner
These are the internal changes to Cycles, for Blender integration there are no functional changes in this commit. Images are converted to scene linear color space on file load, and on reading from the OpenImageIO texture cache. 8-bit images are compressed with the sRGB transfer function to avoid precision loss while keeping memory usages low. This also means that for common cases of 8-bit sRGB images no conversion happens at all on image loading. Initial patch by Lukas, completed by Brecht. Differential Revision: https://developer.blender.org/D3491
2019-05-03Cycles: add colorspace manager class and utilities based on OpenColorIOLukas Stockner
This is the groundwork for supporting loading image textures with arbitrary color spaces through OpenColorIO. Initial patch by Lukas, completed by Brecht. Differential Revision: https://developer.blender.org/D3491
2019-05-03Cleanup: refactor Cycles OSL texture handlingBrecht Van Lommel
This adds our own OSL texture handle, that has info for OIIO textures or our own custom texture types. A filename to handle hash map is used for lookups. This is efficient because it happens at OSL compile time, because the optimizer can figure out constant strings and replace them with texture handles.
2019-05-03Cleanup: refactor passing of OSL kernel globals for upcoming changesBrecht Van Lommel
2019-05-03UI: Pass color id into view2d text drawingJacques Lucke
2019-05-03Industry Compat Keymap: Fix box selecting keys in the Graph EditorWilliam Reynish
It was not selecting the handles, causing a skewed offset when transforming
2019-05-03Fix missiong collection move line in outliner after recent changesHarley Acheson
Differential Revision: https://developer.blender.org/D4781
2019-05-03ICK: Missed one line in last commitWilliam Reynish
2019-05-03Industry Compat Keymap: Fix Return key in the File BrowserWilliam Reynish
Return was set to Rename in all editors. Now set it per editor and exclude File Browser
2019-05-03Refactor: Support arbitrary y offset for channel listJacques Lucke
At first you could think that this refactor would not be necessary, because `ACHANNEL_FIRST` exists already. It contained the small y offset that all channels had. Unfortunately, a lot of code assumed that `ACHANNEL_FIRST = -ACHANNEL_HEIGHT`, making the define pretty much useless. This refactor fixes that for the action and nla editor. As a nice side effect, this patch fixes channel box select. Before there was always have a half-channel offset. Reviewers: brecht Differential Revision: https://developer.blender.org/D4783
2019-05-03Depsgraph: Remove filtering APISergey Sharybin
This was an attempt to speed up motion path calculation, which didn't really work in real world animation files, where animators already hide and disable all the heavy collections. Filtering approach also doesn't allow to have multiple frames evaluated in multiple threads easily. Filtering also adds extra complexity on keeping the graph in a correct and consistent state. Fixes T64057: Blender crash when use motion paths
2019-05-03Industry Compat Keymap: Set Tab to use Add Search in node editorsWilliam Reynish
More useful than operator search here, and more like some other apps.
2019-05-03Industry Compat Keymap: Use Alt-key navigation in the Image EditorWilliam Reynish
Was missing this by mistake
2019-05-03UI: Display panel tweaksWilliam Reynish
- Use Display As rather than Draw Type, following naming conventions - Rename Advanced subpanel to Stretching, since that more accurately describes what it's for
2019-05-03Revert "Cleanup: add semicolon after PyObject_VAR_HEAD"Campbell Barton
This reverts commit a01bcfa6366f893fbc8fdbf537d91ece4832ea03. This causes MSVC2019 build to fail with error C2059 Unfortunately this means we have to put up with bad formatting in Python structs.
2019-05-03UI: Add Annotate tool to Sculpt and Paint mode toolbarsWilliam Reynish
Users have requested to have the Annotate tool added to Sculpt Mode. It can be useful for annotating while sculpting. - Remove Measure tool from the tools_annotate group - Add Measure tool to object and edit mode toolbar - Add Annotate tools to Sculpt and Paint modes Differential Revision: https://developer.blender.org/D4785
2019-05-03Fix T59474: Crash assign shortcutsCampbell Barton
2019-05-03Fix active tool side-bar redrawing on tool changeCampbell Barton
2019-05-03Fix tool header message subscriberCampbell Barton
2019-05-03Cleanup: replace RGN_ALIGN_ENUM_MASKCampbell Barton
This was only used once, other checks were masking out RGN_SPLIT_PREV which isn't future proof (if other flags are added). Add RGN_ALIGN_ENUM_FROM_MASK macro, use it everywhere we need to check the alignment enum.
2019-05-03Cleanup: add semicolon after PyObject_VAR_HEADCampbell Barton
clang-format doesn't expand macros, add semicolon to prevent misleading formatting.
2019-05-03Cleanup: warningsCampbell Barton
Quiet extra-semi-stmt & missing-variable-declarations
2019-05-03Defaults: disable developer extrasCampbell Barton
Was enabled by accident when updating startup.blend.
2019-05-03DNA: remove unused 'osa' memberCampbell Barton
Also correct unused flag comment, use doxy cross references.
2019-05-02Industry Compat Kerymap: Add Pick Shortest Path to keymapWilliam Reynish
Use Ctrl-Shift-Click for this.
2019-05-02Fix T64072: DynamicPaint: Bake failed: Canvas mesh not updatedSergey Sharybin
Baking is to happen form within an evaluated scene.
2019-05-02Fix T63997 Weird z-fight during weight paintClément Foucault
PBVH drawing was used even in weightpaint/vertexpaint because both uses the sculpt session.
2019-05-02Cleanup: Draw Manager: remove DRW_state_invert_facingClément Foucault
2019-05-02Industry Compat Keymap: Suppurt MMB for translating nodesWilliam Reynish
Consistent with 3D View and animation editors.
2019-05-02GPencil: New API to remove grease pencil material settingsAntonioya
This is required for some add-ons Example use: ma = bpy.data.materials[0] # create settings bpy.data.materials.create_gpencil_data(ma) # remove settings bpy.data.materials.remove_gpencil_data(ma) Related to T63707
2019-05-02Workbench,EEVEE: Viewport Render SamplesJeroen Bakker
- Add `render_aa` and `viewport_aa` sampling setting for workbench. 0 samples means no AA, 1 sample uses FXAA and more samples will use TAA. The viewport `gpu_viewport_quality` can still limit viewport anti-aliasing method. - Use TAA when rendering images. (this used to be CPU based FSAA) - Removed `R_OSA` related settings. Reviewers: fclem, brecht Maniphest Tasks: T60847 Differential Revision: https://developer.blender.org/D4773
2019-05-02Industry Compat Keymap: Sequencer and NLAWilliam Reynish
Same changes as for Dopesheet and Graph editor: - Dragging in empty area starts a box selection - Hold Shift to expand or Ctrl to remove - LMB Dragging on keyframe moves key - MMB Dragging anywhere moves selection
2019-05-02Pose slide / relax: fix various issuesBrecht Van Lommel
* Fix operator adjust settings not working. * Fix modal operator not working when invoked from search menu. * Fix tagging to be correct for new depsgraph. * Fix pose relax doing nothing when start and end frames match even if the current frame value is different. * Remove odd 0.3..0.7 limit in adjust operator settings panel.
2019-05-02Fix T64059: Crash in shader when using other object's texture spaceSergey Sharybin
Can not use evaluated datablock to localize since that could point to another evaluated datablock, which can not become part of another dependency graph. The original code needed to have unkeyed changes preserved, but now we do have a flush of animation to an active dependency graph, so this code is not needed anymore.
2019-05-02Industry Compat Keymap: Tweak keymap for Graph Editor and DopesheetWilliam Reynish
- Dragging in empty area starts a box selection - Hold Shift to expand or Ctrl to remove - LMB Dragging on keyframe moves key - MMB Dragging anywhere moves selection
2019-05-02Fix T63697: correct stuck R_NO_CAMERA_SWITCH in scene->r.mode.Alexander Gavrilov
This flag becomes stuck in certain situations, causing the marker camera switch feature to not work. To fix old files with the problem, clear the flag on file load. Also, the line that is supposed to clear it has wrong bit math, causing seq_render_scene_strip to effectively toggle the flag on or off every time it's run, instead of restoring to original state. The flag and code were added in 001789d7337a by @campbellbarton.
2019-05-02DrawManager: External Engine Depth BufferJeroen Bakker
Only draw the depth buffer when overlays are enabled and scene or view has changed. When using Cycles in the viewport for every viewport draw call the depth buffer was renewed. Draw calls happened when a sample was finished or the status report was updated. This could waist some CPU/GPU cycles. This change will check when the depth buffer needs to be updated or when the last known depth buffer could be reused. Reviewers: brecht, fclem Maniphest Tasks: T63525 Differential Revision: https://developer.blender.org/D4775