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
2021-08-17Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-08-10Clean-up: Remove UTF8-BOM markersRay Molenkamp
Done at the request of Sergey.
2021-08-09Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-08-06Fix error setting the ID name in disabled alembic nurbs importeCampbell Barton
This corrects code that's currently disabled, see `USE_NURBS` define. The name passed to `BKE_curve_add` was overwritten, bypassing uniqueness and utf8 encoding checks. Longer names would cause a buffer overrun as the length of the source data was passed to `BLI_strncpy` instead of the destination. Reviewed By: sybren Ref D12125
2021-08-03USD: add USD importerMichael Kowalski
This is an initial implementation of a USD importer. This work is comprised of Tangent Animation's open source USD importer, combined with features @makowalski had implemented. The design is very similar to the approach taken in the Alembic importer. The core functionality resides in a collection of "reader" classes, each of which is responsible for converting an instance of a USD prim to the corresponding Blender Object representation. The flow of control for the conversion can be followed in the `import_startjob()` and `import_endjob()` functions in `usd_capi.cc`. The `USDStageReader` class is responsible for traversing the USD stage and instantiating the appropriate readers. Reviewed By: sybren, HooglyBoogly Differential Revision: https://developer.blender.org/D10700
2021-07-21Cleanup: replace BLI_assert(test || !"text") with BLI_assert_msg(test, text)Campbell Barton
2021-07-15Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")Campbell Barton
This shows the text as part of the assertion message.
2021-07-08Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-07-06Alembic export: evaluation mode optionPhilipp Oeser
This option will determine visibility on either render or the viewport visibility. Same for modifer settings. So it will either evaluate the depsgrah with DAG_EVAL_RENDER or DAG_EVAL_VIEWPORT. This not only makes it more flexible, it is also a lot clearer which visibility / modfier setting is taken into account (up until now, this was always considered to be DAG_EVAL_RENDER) This option was always present in the USD exporter, this just brings Alembic in line with that. ref. T89594 Maniphest Tasks: T89594 Differential Revision: https://developer.blender.org/D11820
2021-07-06Alembic: remove non-functional "Renderable Objects" only optionPhilipp Oeser
When introduced in {rB61050f75b13e} this was actually working (meaning it checked the Outliner OB_RESTRICT_RENDER flag and skipped the object if desired). Behavior has since then been commented in rBae6e9401abb7 and apparently refactored out in rB2917df21adc8. If checked, it seemed to be working (objects marked non-renderable in the Outliner were pruned from the export), however unchecking that option did not include them in the export. Now it changed - for the worse if you like - in rBa95f86359673 which made it so if "Renderable Objects" only is checked, it will still export objects invisible in renders. So since we now have the non-functional option with a broken/misleading default, it is better to just remove it entirely. In fact it has been superseeded by the "Visible Objects" option (this does the same thing: depsgraph is evaluated in render mode) and as a second step (and to make this even clearer) a choice whether Render or Viewport evaluation is used can be added (just like the USD exporter has). When that choice is explicit, it's also clear which visibility actually matters. This is breaking API usage, should be in release notes. ref. T89594 Maniphest Tasks: T89594 Differential Revision: https://developer.blender.org/D11808
2021-07-05Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-07-02Fix type issuesKévin Dietrich
2021-07-02Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-18Fix T88605: Alembic import crashes when missing `arbGeomParams`Sybren A. Stüvel
Add check for the `arbGeomParams` property being valid, before attempting to access a sub-property from it.
2021-06-16Fix for bad mergeKévin Dietrich
2021-06-16Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-06-16Alembic: support reading per-vertex UV setsKévin Dietrich
This adds support for importing UV sets which are defined per vertex, instead of per face corners. Such UV sets can be generated when the mesh is split according to UV islands, or when there is only one UV island, in which cases only a single UV value can be stored per vertex since vertices will never be on a seam. Reviewed By: sybren Differential Revision: https://developer.blender.org/D11584
2021-06-10Support reading per vertex UVs on a meshes.Kévin Dietrich
2021-05-23Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-05-19Cleanup: use nullptrJacques Lucke
2021-05-18Alembic: read/write generated coordinates of meshesSybren A. Stüvel
Read and write generated coordinates (also known as "original coordinates", "reference coordinates", or "orcos") from and to Alembic. A custom geometry property named "Pref" is used for (hopefully) interoperability with Maya and Houdini. For now it's only guaranteed for Blender-to-Blender. Export: writing generated coordinates is optional (on by default). Import: generated coordinates are always read whenever the reading of vertex data is enabled. Manifest Task: T88081
2021-05-18Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-05-17Merge branch 'blender-v2.93-release'Brecht Van Lommel
2021-05-17Fix T86278: vertex color baking not working with modifiersBrecht Van Lommel
As in the old Blender Internal baking code, this still relies on there being a good mapping to the original vertices.
2021-05-06Alembic export: export UV maps on every frameSybren A. Stüvel
Export UV maps to Alembic on every frame. This makes the export of UV maps consistent with mesh normals. In the case of static UV maps it may cause a slight slowdown (since they're exported on every frame now), but due to the deduplication performed by the Alembic library, the resulting files will be the same size anyway. Thanks to @CodyWinch for providing the solution to the problem, and writing the original patch D8397. Differential Revision: https://developer.blender.org/D8397
2021-05-04Port changes from the procedural UI patch.Kévin Dietrich
2021-05-03Cleanup: formatKévin Dietrich
2021-04-16Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-04-08Cleanup: enable modernize-use-equals-default checkJacques Lucke
This removes a lot of unnecessary code that is generated by the compiler automatically. In very few cases, a defaulted destructor in a .cc file is still necessary, because of forward declarations in the header. I removed some defaulted virtual destructors, because they are not necessary, when the parent class has a virtual destructor already. Defaulted constructors are only necessary when there is another constructor, but the class should still be default constructible. Differential Revision: https://developer.blender.org/D10911
2021-04-07Basic operator to update the Scene frame range from an Alembic cache.Kévin Dietrich
2021-03-31Add a frame rate parameter to the CacheFile.Kévin Dietrich
2021-03-07apply changes from code review branchKévin Dietrich
2021-02-18Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-02-15Fix: wrong clang tidy cleanupJacques Lucke
This reverts a part of rBd3960164163c910d5031a8f076c41b39e0a5503d. It is not a `std::shared_ptr` but a `boost::shared_ptr`. This could probably be fixed differently, but `NOLINT` is fine now.
2021-02-15Cleanup: clang tidyJacques Lucke
2021-02-09Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-02-05Cleanup: Modernize type definition in AlembicSergey Sharybin
Use newer `using` semantic for type definition. Solves modernize-use-using Clang-Tidy warning.
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-01-25Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2021-01-20Cleanup: remove extra in trailing asteriskCampbell Barton
Comment blocks not conforming to convention.
2020-12-18Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2020-12-16Cleanup: remove redundant struct declarationsCampbell Barton
2020-12-15Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2020-12-15Cleanup: reduce indirect DNA header inclusionCampbell Barton
Remove DNA headers, using forward declarations where possible. Also removed duplicate header, header including it's self and unnecessary inclusion of libc system headers from BKE header.
2020-12-08Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2020-12-07Cleanup: partial Clang-Tidy modernize-loop-convertSybren A. Stüvel
Modernize loops by using the `for(type variable : container)` syntax. Some loops were trivial to fix, whereas others required more attention to avoid semantic changes. I couldn't address all old-style loops, so this commit doesn't enable the `modernize-loop-convert` rule. Although Clang-Tidy's auto-fixer prefers to use `auto` for the loop variable declaration, I made as many declarations as possible explicit. To me this increases local readability, as you don't need to fully understand the container in order to understand the loop variable type. No functional changes.
2020-12-06Merge branch 'master' into cycles_procedural_apiKévin Dietrich
2020-12-06rename default_curves_radius default_radiusKévin Dietrich