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-02-25EEVEE: Lookdev: Add support for partially blurred backgroundClément Foucault
This is using the GGX probe as background. This has the drawback of having the resolution choosed in the indirect lighting setting. The blurring is not really high-quality. The pros is that it has a simple implementation and is fast to evaluate. This patch also fades the background alpha to make overlay engine draw the default background color in the correct color space. Removing one colorspace hack. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6895
2020-02-25Cleanup: EEVEE: Use log2_floor_uClément Foucault
2020-02-25EEVEE: Fix seams in reflection cubemap on low roughnessClément Foucault
This was caused by the texture size not being power of 2. Thus the padding applied to the base LOD did not match the highest mipmaps.
2020-02-25Cycles: move sss and diffuse transmission into diffuse passBrecht Van Lommel
This simplifies compositors setups and will be consistent with Eevee render passes from D6331. There's a continuum between these passes and it's not clear there is much advantage to having them available separately. Differential Revision: https://developer.blender.org/D6848
2020-02-25Cleanup: remove cddm_from_bmeshCampbell Barton
Use BKE_mesh_from_bmesh_for_eval_nomain instead.
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-25DrawEngine: Clean upJeroen Bakker
Put DefaultFramebufferList and DefaultTextureList into an own header file. These structs were private, but also used by the window manager and gpu package. The previous implementation we needed to keep these structs in sync.
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-25Cleanup: remove unused wmWindow.monitorCampbell Barton
2020-02-25WM: move cursor refresh tag to the windowCampbell Barton
Avoids having to check the current area is NULL.
2020-02-24Fix T74169: Vector Rotate Node - Euler modes not working as intendedCharlie Jolly
Remove additional Euler modes for the time being, not working as intended, will add back if there is a need.
2020-02-24Fix T74099: Can`t apply modifier, if mesh have fake user.Bastien Montagne
Also cleaned up code there, making a proper poll function for the apply modifier operator, that way button is properly disabled in UI itself in most invalid situations.
2020-02-24Fix unused variable warning on LinuxJulian Eisel
2020-02-24Cleanup: Workbench: Remove checkerboard depthClément Foucault
This is not needed anymore with the new overlay xray fading.
2020-02-24Overlay: Remove Xray dithering noiseClément Foucault
We now use a better smoother technique that uses correct alpha blending. This is possible now that we render overlays in a separate buffer.
2020-02-24Mantaflow: Address precompiler warning and related cleanupJulian Eisel
* Address warning because of undefined OPENVDB usage * Remove unused WITH_FLUID definitions Differential Revision: https://developer.blender.org/D6919
2020-02-24Fix T74003: Autocomplete bug with mesh.loop_triangles. in Blender Python ↵Bastien Montagne
Console. The collection property `loop_triangles` was given the RNA type `MeshLoopTriangle` (the type of the collection's items), instead of `MeshLoopTriangles` (the actual expected RNA collection/array type). The cutest, tiniest typo mistake in RNA code, leading to some complete non-sense... It's fairly amazing that this did not cause more severe issues actually.
2020-02-24BLF: Optimize text rendering and cachingGermano Cavalcante
The current code allocates and transfers a lot of memory to the GPU, but only a small portion of this memory is actually used. In addition, the code calls many costly gl operations during the caching process. This commit significantly reduce the amount of memory by allocating and transferring a flat array without pads to the GPU. It also calls as little as possible the gl operations during the cache. This code also simulate a billinear filter `GL_LINEAR` using a 1D texture. **Average drawing time:** |before:|0.00003184 sec |now:|0.00001943 sec |fac:|1.6385156675048407 **5 worst times:** |before:|[0.001075, 0.001433, 0.002143, 0.002915, 0.003242] |now:|[0.00094, 0.000993, 0.001502, 0.002284, 0.002328] Differential Revision: https://developer.blender.org/D6886
2020-02-24Overlay: Edit Mode: Fix wireframes being brighter because of linear blendClément Foucault
2020-02-23Overlay: Fix wireframes being brighter because of color managementClément Foucault
Also change the blending factors to make wireframe a bit darker in unselected cases.
2020-02-22EEVEE: Fix memleak when G.is_break is set from another threadClément Foucault
2020-02-22Cleanup: EEVEE: Use interpf instead of custom lerpClément Foucault
2020-02-22Fix crash when open default templateAntonio Vazquez
As soon you select the default template, Blender crash on Winodws. This was introduced in commit {0b626703}
2020-02-22Cleanup: internal changes to cursor resettingCampbell Barton
- Move gizmo cursor check into ED_region_cursor_set so the result of calling this function is the same as flagging for cursor update. - Use tagging in ui_popup_block_remove which avoids adding a mouse-move event in case the cursor needs to be changed again.
2020-02-21UI: Windows File Attributes and Hidden ItemsHarley Acheson
File Browser using Windows file attributes for decorating and hiding items. Differential Revision: https://developer.blender.org/D6816 Reviewed by Campbell Barton
2020-02-21Cleanup: remove unused ScreenAnimData.refreshCampbell Barton
2020-02-21Fix T73593: Drivers on hide_viewport and hide_render are unreliableSybren A. Stüvel
This fixes a threading issue (T73593) between drivers that write to the same memory address. Driver nodes in the depsgraph now get relations to each other in order to ensure serialisation. These relations are only added between drivers that target the same struct in RNA, which is determined by removing everything after the last period. For example, a driver with data path `pose.bones["Arm_L"].rotation_euler[2]` will be grouped with all other drivers on that datablock with a data path that starts with `pose.bones["Arm_L"]` to form a 'driver group'. To find a suitable relation within such a driver group, say the relation (from → to), a depth-first search is performed (turned out to be marginally faster than a breadth-first in my test case) to see whether this will create a cycle, and to see whether there already is such a connection (direct or transitive). This is done by recursively inspecting the incoming connections of the 'to' node and thereby walking from it towards the 'from' node. This is an order of magnitde faster than inspecting the outgoing connections of the 'from' node. This approach generalises the special case for array properties, so the code to support that special case has been removed from `DepsgraphRelationBuilder::build_animdata_drivers()`. A test on the Spring rig [1] shows that this process adds approximately 8% to the build time of the dependency graph. In my test case, it takes 28 ms for this process on a total 329 ms construction time. However, since it also made some code obsolete, it only adds 24 ms (=8%) to the construction time. I have experimented with a simple cache to keep track of known-connected (from, to) node pairs, but this did not significantly improve the timing. Note that animation data and drivers are already connected by a relation, which means that animating a field and also changing it with a driver will not cause conflicts. [1] https://cloud.blender.org/p/spring/5d30a1076249366fa1939cf1 Differential Revision: https://developer.blender.org/D6905 Reviewed By: sergey, mont29
2020-02-21Cleanup: un-indent ED_screen_set_active_regionCampbell Barton
Also remove redundant flag assignment from previous comment.
2020-02-21Fix regression in the orientation of transform Redo operationsGermano Cavalcante
Caused by rBb3abd2e102df
2020-02-21Cleanup: avoid looping over areas when refreshing the cursorCampbell Barton
These values are already known, pass in as arguments.
2020-02-21Fix T67805: Cursor doesn't update when switching tools via shortcutsCampbell Barton
2020-02-21Fluid: Fix typo in fluid RNASebastián Barschkis
Fix typo in fluid RNA.
2020-02-21Fluid: Cleanup in cache delete functionSebastián Barschkis
Removed unneccessary calls to BLI_exists() as BLI_delete() does this implicitly.
2020-02-21Cleanup: Move transform_mode_init to transform_mode APIGermano Cavalcante
2020-02-21Fix T74006: Alt+ clicking (assign to all selected) doesn not work forPhilipp Oeser
bone constraints settings 'UI_context_copy_to_selected_list()' was working fine for constraints on objects (would properly get the path and list of selected objects) and also for bone settings (would properly get the path and list of bones). There was no special case for constraints on bones though, so code would work on selected objects (not selected bones). So we now get the right bones and resolve the path to the constraint setting _from the bones_. Maniphest Tasks: T74006 Differential Revision: https://developer.blender.org/D6897
2020-02-21Fix T74044: Switching from Edge Slide to Move and Cancelling causes crashGermano Cavalcante
`TFM_TRANSLATION` was removed in rBa33b261473e9 but is still needed.
2020-02-21Transform: Fix reinitialization of custom data correctionGermano Cavalcante
2020-02-21Fix: Drivers on hide_viewport and hide_render throw warningsSybren A. Stüvel
This partially fixes T73593. The `add_relation(driver_key, property_entry_key, ...);` call can fail in the following situation: - A collection is linked, and instanced into the scene by an Empty. - The collection contains an object with a driver on its `hide_render` or `hide_viewport` property. As the object doesn't exist as a real object in the scene, it's added with `base_index=-1` to the depsgraph (see `DepsgraphNodeBuilder::build_collection()`). As a result the node for syncing the restrictflags back to the base isn't present in the depsgraph, and the `add_relation()` call failed. This commit fixes the warning, simply by not attempting to add the offending relation.
2020-02-21EEVEE: Render PassesJeroen Bakker
This patch adds new render passes to EEVEE. These passes include: * Emission * Diffuse Light * Diffuse Color * Glossy Light * Glossy Color * Environment * Volume Scattering * Volume Transmission * Bloom * Shadow With these passes it will be possible to use EEVEE effectively for compositing. During development we kept a close eye on how to get similar results compared to cycles render passes there are some differences that are related to how EEVEE works. For EEVEE we combined the passes to `Diffuse` and `Specular`. There are no transmittance or sss passes anymore. Cycles will be changed accordingly. Cycles volume transmittance is added to multiple surface col passes. For EEVEE we left the volume transmittance as a separate pass. Known Limitations * All materials that use alpha blending will not be rendered in the render passes. Other transparency modes are supported. * More GPU memory is required to store the render passes. When rendering a HD image with all render passes enabled at max extra 570MB GPU memory is required. Implementation Details An overview of render passes have been described in https://wiki.blender.org/wiki/Source/Render/EEVEE/RenderPasses Future Developments * In this implementation the materials are re-rendered for Diffuse/Glossy and Emission passes. We could use multi target rendering to improve the render speed. * Other passes can be added later * Don't render material based passes when only requesting AO or Shadow. * Add more passes to the system. These could include Cryptomatte, AOV's, Vector, ObjectID, MaterialID, UV. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D6331
2020-02-21Cleanup: Spelling in a commentSergey Sharybin
2020-02-21Fix transform 'center_override' not being flaggedGermano Cavalcante
Problem introduced by rBa33b261473e9
2020-02-20Fix T73871: improve assignement of material to selection in multi objectPhilipp Oeser
editmode This was already supported in "Select" & "Deselect" but not in "Assign". So similar to rB6b39dc7672eb, we now check if the material corresponding to the currently selected material slot is found in other objects materials and assign this (instead of always assigning their 'own' actcol). Maniphest Tasks: T73871 Differential Revision: https://developer.blender.org/D6869
2020-02-20Fix some issues with versionning of older files.Bastien Montagne
Consequences of own refactor of usercount handling in readfile.c (rB367ecff15d74). Not super happy to have to call that function twice, but that should be OK (not a real overhead here anyway).
2020-02-20Fix ushort compiler errors in WindowsAntonio Vazquez
ushort is not supported
2020-02-20Modifiers: Refactor Mask modifierJacques Lucke
The functionality of the mask modifier remains unchanged. This patch updates the mask modifier so that it uses C++. The manual memory management has been replaced with proper containers. The large `applyModifier` function has been splitup into multiple smaller functions. A large speedup is achieved by using simple arrays instead of hash tables in multiple places. In my performance test file the playback speed increased from 1.1 to 5.1 fps on my laptop. Reviewers: campbellbarton, brecht Differential Revision: https://developer.blender.org/D6779
2020-02-20Cleanup: use named unsigned types in the Python APICampbell Barton
2020-02-20mathutils: support for to_2x2 as well as non-square matricesCampbell Barton