Revision 048a5e5 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 11, 2021, 13:58 (GMT) |
Merge branch 'master' into ui-asset-view-template |
Revision 622ca56 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 9, 2021, 17:58 (GMT) |
Support passing ID type filter to the template The ID type filter can be set as follows: ``` template_asset_view(..., filter_id_types={'filter_material', 'filter_object'}) ``` I would have prefered if you could just create a `bpy.types.AssetFilterSettings` object, fill that and pass it to the template. But that doesn't seem possible right now without more complex BPY additions. Also, newer ID types (hair, point cloud, volume and simulation IDs) do not support filtering, because their filtering flags exceed 32, meaning we have to store them in 64 bit integers which RNA doesn't support for enum properties... |
Revision 7be8055 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 9, 2021, 13:59 (GMT) |
Merge branch 'master' into ui-asset-view-template |
Revision 2f65867 by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 4, 2021, 15:29 (GMT) |
Fix items not showing up if the preview is missing No reason to skip adding the UI elements just because the preview is missing. We can still show the text and allow dragging. Also makes it feel more interactive while the previews load in a background thread. |
Revision 5ccb47a by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 4, 2021, 14:57 (GMT) |
Add own button/widget type for the asset previews The new button type (UI_BTYPE_PREVIEW_TILE) shows the items similar to the Asset Browser, or the File Browser in thumbnail display mode. That is, previews bigger than normal buttons, with the name drawn centered below it. Would be nice if the File/Asset Browser and preview templates could adopt that new button type, so that there's no ad-hoc drawing for these anymore. That's for a future cleanup though. |
Revision 9a6c22a by Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 20:44 (GMT) |
Properly support mouse-selecting items in the asset view list This was very glitchy before and just didn't work in most cases. The mouse press event was simply caught by the preview icon button and didn't make its way to the underlying list-row button. |
Revision 049c34b by Jacques Lucke / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: clang tidy Warning: else-after-return/break |
Revision 148a309 by Jacques Lucke / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: clang tidy Can use const parameter. |
Revision 1c76b5a by Clément Foucault / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Revision 23d705a by Jeroen Bakker / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Revision 2606f57 by Mikhail / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
EEVEE: SSS: Fix light leaking bewteen object at different depths The SSS shader in Eevee has the following drawbacks (elaborated in {T79933}): 1. Glowing 2. Ringing. On low SSS jittering it is rendered a bunch of sharp lines 3. Overall blurriness due to the nature of the effect 4. Shadows near occlusions as in T65849 5. Too much SSS near the edge and on highly-tilted surfaces {F9438636} {F9427302} In the original shader code there was a depth correction factor, as far as I can understand for fixing light bleeding from one object to another. But it was scaled incorrectly. I modified its scale to depend on SSS scale*radius and made it independent from the scene scale. The scale parameter (`-4`) is chosen so that it makes tilted surfaces to have visually the same SSS radius as straight surfaces (surfaces with normal pointed directly to the camera). This depth correction factor alone fixes all the problems except for ringing (pt. 2). Because of float-point precision errors and irradiance interpolation some samples near the border of an object might leak light, causing sparkly or dashed (because of aliasing) patterns around the highlights. Switching from `texture()` to `texelFetch()` fixes this problem and makes textures on renders visually sharper. An alternative solution would be to detect object borders and somehow prevent samples from crossing it. This can be done by: 1. Adding an `object_id` texture. I think it requires much more code changing and makes the shader more complicated. Again, `object_id` is not interpolatable. 2. Watch gradient of depth and discard samples if the gradient is too big. This solution depends on scene scale and requires more texture lookups. Since SSS is usually a minor effect, it probably doesn't require that level of accuracy. I haven't notice it in practice, but I assume it can make visible SSS radius slightly off (up to 0.5 px in screen space, which is negligible). It is completely mitigated with render sampling. Reviewed By: Cl�ment Foucault Differential Revision: https://developer.blender.org/D9740 |
Revision 317e78a by Clément Foucault / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
EEVEE: Avoid old files with too many volume shadow sample being too slow This clamp the volumetric shadow samples to the actual old max to avoid problematic slowdown after the bugfix rB3a29c19b2bff. |
Revision 418fdab by Hans Goudey / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Fix crash when dragging nodes The `bNodeLinkDrag` struct was NULL when dragging a node instead of a link. It is allocated with `calloc` anyway, so this field doesn't need to be explitely cleared. |
Revision 4f8f541 by Jacques Lucke / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: make format |
Revision 700824f by Philipp Oeser / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Fix (unreported) Outliner missing updates copying IDs via python Steps to reproduce: - switch to Scripting workspace - execute bpy.data.meshes['Cube'].copy() - Outliner will not show the new mesh immediately Now just send appropriate notifier. Differential Revision: https://developer.blender.org/D10584 |
Revision a008463 by Jacques Lucke / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Nodes: store references to bNodeLinks in NodeTreeRef Sometimes it is useful to have this information available to be able to read information from links. |
Revision b9451c4 by Clément Foucault / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
EEVEE: SSR: Check reflection ray against geometric normal This improve self intersection prevention. Also reduce the bias that was making a lot of rays not being shoot at grazing angles. |
Revision c02ff52 by Jeroen Bakker / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: Make node_composite_cryptomatte CPP. Core API of cryptomatte is also CPP. |
Revision caaa9b4 by Campbell Barton / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: minor changes to Python RNA pointer assignment Don't assign the BPy_StructRNA a value which can be 'None', instead, set it to NULL. |
Revision ef832a5 by Jacques Lucke / Julian Eisel (asset-browser, asset-browser-poselib, asset-system-filelist, temp-pose-flipping-fix-attempt, ui-asset-view-template) March 3, 2021, 17:15 (GMT) |
Cleanup: clang tidy Warnings: * readability-inconsistent-declaration-parameter-name * readability-redundant-smartptr-get |
|