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
path: root/source
AgeCommit message (Collapse)Author
2019-05-23Cleanup: split keymap handling into functionsCampbell Barton
Move keymap handler logic for keymap and gizmo handlers into their own functions. This makes it possible to refactor keymap handling without large changes or duplicating code.
2019-05-23Cleanup: modernize code of new `BLE_main_id_refcount_recompute()`.Bastien Montagne
No functional change expected!
2019-05-23Merge branch 'blender2.7'Bastien Montagne
Conflicts: source/blender/blenkernel/intern/library.c source/blender/blenloader/intern/readfile.c source/blender/editors/screen/screen_edit.c
2019-05-23Fix (unreported) broken collections after undo/redo, or remapping (leading ↵Bastien Montagne
to crashes). Those are two cases where keeping infamous backward `parents` pointers of collections in sync is kind of impossible to do... So rebuilding those relationships from scratch instead. Fixes e.g. a crash when undoing, then reloading a library, and likely many more weird ones like that. Uncovered while investigating T64764.
2019-05-23BKE Collection: Add new function to rebuild parent relationships.Bastien Montagne
It's not always possible to keep 'by hand' parent relationships valid in collections hierarchy. Add functions to remake those (re-using/factorizing code from `readfile.c` `lib_link_collection_data()` function). Can't stress again how painful it is to have those kind of backward relationships in our data structures, those *always* end up being serious issues to keep in sync... Should only be generated on the fly when needed, period. :(
2019-05-23Fix T64764: 'Reload' on linked libraries disconnects proxy armature datablocks.Bastien Montagne
Note that this only fixes the core issue reported (caused by own dummy mistake in rBd0df7fb3b94ea), investigating that report uncovered at leat two more issues, including a crasher (when reloading after an undo)...
2019-05-22fix T64873 collada export crashes Blender on MacGaia Clary
2019-05-22Fix (unreported) usercount of linked IDs becoming garbage after undo/redo.Bastien Montagne
Not re-reading linked data-blocks in undo/redo case also means that we do not touch to their usercounts. Even worse, lib_link process in readfile will increase those (for cases where local data uses linked one). Whole data management code is now heavily relying on valid consistent refcount of all IDs, so we cannot allow that anymore. Simple solution here could have been to then not increase that one for linked IDs in `newlibadr_us()`, but unfortunately that would not be totally bullet-proof, as some local users of linked data may be added or removed by an undo step... So I cannot think of any other solution than the ugly brute force one, i.e. going over the whole Main database and recompute linked IDs users count... Should not be a big issue performance wise though, this is fairly cheap process.
2019-05-22BKE Library handling: add function to recompute usercounts of IDs.Bastien Montagne
This will be needed in undo/redo case, since we do not re-read linked IDs, their usercounts become total garbage (especially in 'used by local ID' cases)...
2019-05-22Sequencer: ensure Strip is the default active panelBrecht Van Lommel
2019-05-22Visibility panel: Use "toggle" keywordDalai Felinto
No functional nor visual change. This is a partial revert of 0910932e71d2. The toggle option was introduced on 6640bcca7422. This allow us to simplify the outliner draw code so it uses the icon as defined in the RNA (as oppose to get the value there once again).
2019-05-22UI: allow shrinking panel height to zero when open.Alexander Gavrilov
Currently if a panel becomes empty (draw simply returns), it stays at the last non-empty height. This seems to be caused by some legacy checks that may be completely obsolete, but the safest fix is to at least allow resetting height when the panel is open.
2019-05-22Error in last commitCampbell Barton
2019-05-22Fix T64679: Missing dirty preferences tagCampbell Barton
Use a default update function for user preferences that tags dirty and redraws (if changed). This avoids relying on button changes which fail in some cases.
2019-05-22RNA: add fallback update functionCampbell Barton
Use so we can have a default update function, that doesn't need to be set for every property.
2019-05-22Cleanup: disambiguate rna_userdef_update_ui/ui_updateCampbell Barton
2019-05-22Cleanup: unused varsCampbell Barton
2019-05-22DrawEngines: Depth Of Field UnitsJeroen Bakker
The unit system is designed for displaying and editing and not for rendering. Eevee, Workbench and GPencil used these settings to convert the focal length and sensor size to world units. Making depth of field render differently with Cycles. For now we will remove the scale in the draw engines to match cycles, until we implemented a camera parameters specific scale. Reviewed By: brecht, fclem Maniphest Tasks: T64988 Differential Revision: https://developer.blender.org/D4925
2019-05-22DRW/Eevee: Fix camera texture coordinates in rendersClément Foucault
This patch fix the issue introduced by recent refactor and fixes computation when using overscans.
2019-05-22Workbench: FXAA ArtifactsJeroen Bakker
When using FXAA when rendering to an image the alpha channel was not correct what lead to visual artifacts. These artifacts come from the FXAA function that overwrites the alpha channel with the original Luma of the texel. In the shader this can be turned on or off. But at the end it always overwrites the alpha with the luminance. We didn't use this feature, but the alpha of the resulting pixel still contained the luma value what lead to render artifacts. By overwriting the alpha channel with the original alpha we remove these artifacts. Reviewed By: fclem Maniphest Tasks: T64947 Differential Revision: https://developer.blender.org/D4924
2019-05-22RNA: fix missing depsgraph update tagging in FCurve methods.Alexander Gavrilov
Add tags in fcurve.update(), keyframe_point.insert/add/remove(), fmodifier.control_points.add/remove().
2019-05-22RNA: allow 'TIME' on Actions and any IDs with AnimData in ID.update_tag.Alexander Gavrilov
2019-05-22Fix: Auto Merge icon state were wrongly swappedWilliam Reynish
2019-05-22DRW: Only change VAO if geometry changesClément Foucault
2019-05-22GPU: Refactor GPU_batch_draw_range_exClément Foucault
Rename it to GPU_batch_draw_advanced and use base instance when possible. Also add GPU_batch_bind to bind the vao independantly of drawing commands.
2019-05-22Fox drwviewClément Foucault
2019-05-22Cleanup: DRW: Remove, rename stuffsClément Foucault
2019-05-22DRW: Do not update the view ubo for each passClément Foucault
Only update if the view changes.
2019-05-22Fix T64806 Missing sss_blur pass in EEVEE crashing indirect light bakeClément Foucault
2019-05-22DRW: DRWView: Finish refactorClément Foucault
2019-05-22Eevee: Make lookdev shader use common_view_libClément Foucault
2019-05-22Eevee: Make lightprobes work with new DRWView systemClément Foucault
2019-05-22Eevee: Make Planar reflections work with the new DRWView systemClément Foucault
Also get rid of clip_block which did the same as clipplanes inside common_view_lib.glsl.
2019-05-22DRW: Add view param to DRW_culling_* functionsClément Foucault
2019-05-22Eevee: Use DRW_view_* API instead of DRW_viewport_matrix_*Clément Foucault
2019-05-22GPencil: Use DRW_view_* API instead of DRW_viewport_matrix_*Clément Foucault
2019-05-22BLI_memblock: Refactor for faster iteration and allocationClément Foucault
Remove the clear allocation flag as it has little impact since there should be very few allocation per redraw. Make BLI_memblock_alloc and BLI_memblock_iterstep much more cache efficient removing them almost entirely from performance profiles.
2019-05-22Workbench: Fix TAA logicClément Foucault
Having both TAA and FXAA enabled at the same time resulted in conflicts. The jitter_index was incremented twice before being used instead of once.
2019-05-22Workbench: Use DRWView instead of DRW_viewport_matrix_*Clément Foucault
Continuing the transition to the new API
2019-05-22DRW: Remove some usage of DRW_viewport_matrix_getClément Foucault
2019-05-22DRW: Remove DRW_state_clip_planes_resetClément Foucault
2019-05-22DRW: Remove DRW_state_clip_planes_set_from_rv3dClément Foucault
This should be handled by DST.view_default
2019-05-22DRW: Add DRWView to improve different view handlingClément Foucault
This will have multiple benefit. TODO detail benefits (culling, more explicit, handling of clipping planes) For now the view usage is wrapped to make changes needed more progressive.
2019-05-22Eevee: Lookdev: Make winmat point to negative ZClément Foucault
2019-05-22Cleanup: DRW: Refactor code for better readability and simplificationClément Foucault
- Remove DST.frontface and DST.backface. - Separate uniform update into its own function draw_update_uniforms.
2019-05-22BLI_memiter: unpoison memory before freeing itJacques Lucke
2019-05-22Fix T64981: background images do not come along with linked camerasBrecht Van Lommel
2019-05-22Fix T64972: object convert to mesh not working after recent changesBrecht Van Lommel
This was the only remaining cases that used a string lookup, which didn't work anymore now that it's no longer a real value in the context.
2019-05-22Fix T64969: changing color space in image texture node loses changesBrecht Van Lommel
Don't allow changing it for painted images until they have been saved, similar to sidebar panels. This could be solved better, for now the important thing is not to lose changes.
2019-05-22Fix T64965: crash using masks in texture paint modeBrecht Van Lommel