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
2022-01-12Assert that texture is valid before binding it.drw-gpu-wrapperClément Foucault
2022-01-12Improve getters for draw::TextureClément Foucault
2022-01-12Add better comments and correct the namespaceClément Foucault
2022-01-12Merge branch 'tmp-vector-template' into drw-gpu-wrapperClément Foucault
2022-01-11Make mixed vec4 type constructor works with different vector typesClément Foucault
2022-01-11Add constructor testsClément Foucault
2022-01-11Add `clamp()` to templated functionsClément Foucault
2022-01-11Fix type conversion error on MSVC (thanks @JacquesLucke for that)Clément Foucault
2022-01-11Remove BLI_double2|3.hh filesClément Foucault
2022-01-11Merge branch 'master' into tmp-vector-templateClément Foucault
# Conflicts: # source/blender/nodes/geometry/nodes/node_geo_input_normal.cc
2022-01-11Change comment to be more meaningful.Clément Foucault
2022-01-11Group vector types declaration into `BLI_math_vec_types.hh` and ↵Clément Foucault
`BLI_math_vec_mpq_types.hh`
2022-01-11Fix T94728: Auto Depth problem with Cliping RegionGermano Cavalcante
Issue introduced in rB1d49293b80446b89b5b12fa0eeefaf14e5051e48 `drw_manager_init` must be called after `drw_context_state_init` as `DST.draw_ctx.sh_cfg` (indicating when the view is clipped) must be set first. Differential Revision: https://developer.blender.org/D13795
2022-01-11Remove file scope `using namespace blender;`Clément Foucault
2022-01-11Cleanup: remove unnecessary 'use_opengl_context' parameterGermano Cavalcante
The argument passed is always false.
2022-01-11Deduplicate cross_poly implementationClément Foucault
2022-01-11Simplify template macrosClément Foucault
2022-01-11Add asserts that modulo second argument is not zero.Clément Foucault
2022-01-11Move `is_zero` and `is_any_zero` to `blender::math` namespace.Clément Foucault
2022-01-11Use early return instead of result variable.Clément Foucault
2022-01-11Fix `PSYS_GLOBAL_HAIR` stripped even if connecting the hair failsAleksi Juvani
After disconnecting hair on an object, if you then hide the particle system, and try connecting the hair again, the operator is cancelled due to `remap_hair_emitter` returning `false` because `target_psmd->mesh_final` is NULL, but `connect_hair` will still strip the `PSYS_GLOBAL_HAIR` flag, which will cause the hair in the hidden particle system to be positioned incorrectly. The correct behavior is to strip the flag only if `remap_hair_emitter` succeeds. Differential Revision: https://developer.blender.org/D13703
2022-01-11Select Similar: hide 'threshold' from UI when not usedPhilipp Oeser
When the 'threshold' is not used in the type we are comparing, just hide it. This was obvious for some types (e.g. Materials), but maybe not so on others (e.g. Polygon Sides) and potentionally confusing. Reported by @hitrpr in chat. Differential Revision: https://developer.blender.org/D13760
2022-01-11GPU: Utility function to bind UBO to batches.Jeroen Bakker
2022-01-11Explicit Color OCIO role comment fix.Evan Wilson
This is an update to the correct OCIO role. It changes `SceneReference` to `scene_linear` See https://opencolorio.readthedocs.io/en/latest/guides/authoring/overview.html#config-roles > - reference - the color space against which the other color spaces are defined >NOTE: The reference role has sometimes been misinterpreted as being the space in which “reference art” is stored in. > > - scene_linear - the scene-referred linear-to-light color space, often the same as the reference space The current OCIO UX working group doc says: >reference: This role has had multiple interpreted meanings over the years and is a common point of confusion. It is kept in OCIO for backwards compatibility, but the recommendation is that it is not used by apps. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11398
2022-01-11Cleanup: use unity build for composite nodesAaron Carlisle
GIves about a 2.1x improvement in compilation times.
2022-01-11Cleanup: Deduplicate `finv_test` functionAaron Carlisle
2022-01-11Cleanup: quite missing-variable-declarations warningsCampbell Barton
2022-01-11Cleanup: correct exception messageCampbell Barton
2022-01-11Revert "Cleanup: remove declaration for removed function"Campbell Barton
This reverts commit aa363ec2ae9382c052f024284dcdb77ac495c177. The function still exists, this commit caused a warning with Clang So keep MEM_printmemlist_pydict.
2022-01-11Cleanup: Composite nodes: add namespace for every fileAaron Carlisle
This puts all static functions in composite node files into a new namespace. This allows using unity build which can improve compile times significantly. This is a follow up on rB1df8abff257030ba79bc23dc321f35494f4d91c5 but for compositor nodes. The namespace name is derived from the file name. That makes it possible to write some tooling that checks the names later on. The filename extension (`cc`) is added to the namespace name as well. his also possibly simplifies tooling but also makes it more obvious that this namespace is specific to a file. Reviewed By: JacquesLucke, HooglyBoogly, jbakker Differential Revision: https://developer.blender.org/D13466
2022-01-11Fix T94768: Crash in VSE prefetchingRichard Antalik
If timeline contains scene strip outside of edited meta strip, this will cause crash. This is because prefetchin ignored meta strips being edited when rendering, but did check for scene strips only inside edited meta strip. Change active seqbase pointer when entering meta strip. This makes it possible to prefetch only content that is being presented to user.
2022-01-11Fix T94671: performance regression with subsurf modifierKévin Dietrich
rBeed45d2a239a introduced a GPU backend for OpenSubDiv which lets us do the subdivision at render time. However, some tools might still need to have the subdivision data available on the CPU side. For this a subdivision mesh wrapper was also introduced, and is computed whenever a CPU side mesh is needed. The subdivision settings for this wrapper are stored during modifier evaluation if GPU subdivision can be done. The performance regression is due to the fact that although the subdivision mesh was already computed on the CPU, and no subdivision wrapper is generated, some checks for creating subdivision data in `BKE_mesh_wrapper_ensure_subdivision` where still run, one of which is very expensive. To fix this we first check the runtime settings of the mesh to see if subdivision is needed at all.
2022-01-11Spreadsheet: Add mesh topology information with a debug valueHans Goudey
This commit adds topology information from mesh data structs to the spreadsheet when the debug value `4001` is set. Eventually we could expose these. For now it can be a useful tool for developers when working on mesh algorithms. Differential Revision: https://developer.blender.org/D13735
2022-01-11Cleanup: Remove unused "active ID" node flagHans Goudey
The value of this flag was only retrieved in `nodeGetActiveID`, which wasn't used anywhere. Other than that, the `NODE_ACTIVE_ID` and related functions seem to come from the Blender internal renderer. Differential Revision: https://developer.blender.org/D13770
2022-01-11Geometry Nodes: Move normal field input to be usable elsewhereHans Goudey
This commit moves the normal field input to `BKE_geometry_set.hh` from the node file so that normals can be used as an implicit input to other nodes. Differential Revision: https://developer.blender.org/D13779
2022-01-11Merge branch 'master' into tmp-vector-templateClément Foucault
2022-01-11Docs: correct doc-string for bl_run_operators_event_simulateCampbell Barton
The event() action swapped type/value arguments.
2022-01-11Set uint_type as void if type is larger than 64bitsClément Foucault
2022-01-11Use `using` instead of typedef inside of vec_baseClément Foucault
2022-01-11Fix template specialization errorClément Foucault
2022-01-10macOS: fix xcrun sdk detection for minimal CLTAnkit Meel
Differential Revision: https://developer.blender.org/D13783
2022-01-10BLI_math_vec_types: Add bit shift operatorsClément Foucault
2022-01-10Rework macro name and add manhattan distance & Length functionsClément Foucault
2022-01-10Docs: Add comments to node socket struct headerHans Goudey
2022-01-10UI: Allow AltGr Key + C,V,X Text InputHarley Acheson
Slight change to our processing of Ctrl-C, Ctrl-V, and Ctrl-X so that they will not be triggered if Alt is also pressed. This allows entry of AltGr-C, -V, -X when using International keyboard layouts. See D13781 for more details Differential Revision: https://developer.blender.org/D13781 Reviewed by Brecht Van Lommel
2022-01-10BLI_math_vector: Split vector template and vector functions into 2 filesClément Foucault
Also rework the macros to be less context dependent.
2022-01-10BLI_math_vector: Remove old implementationClément Foucault
2022-01-10BLI_math_vector: Templated version of vector type that supports sizeClément Foucault
This removes many code duplication and allow for arbitrary size of vector.
2022-01-10Fix T94434: Windows IME Pinyin Forward SlashTakahiro Shizuki
Treat "/" as a key that should be evaluated by the Win IME system when the input language is Chinese. This fixes a duplication of the input character and results in the expected output of a Chinese wide comma. See D13771 for more details. Differential Revision: https://developer.blender.org/D13771 Reviewed by Brecht Van Lommel
2022-01-10Tests: disable all but one simple test for the Cycles Metal deviceBrecht Van Lommel
Until all tests are passing, this lets us run a basic test on the buildbot. Ref T92212