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-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-23Cleanup: reformat trailing comments that caused line wrappingCampbell 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-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-15Cleanup: use back-slash for doxygen commentsCampbell Barton
2021-06-09Cleanup: remove redundant checks which have already been testedCampbell Barton
Note that these changes are limited simple cases as these kinds of changes could allow for errors when refactoring code when the known state is not so obvious.
2021-05-24Fix T88524: GPencil PDF does not take into account the marker cameraAntonio Vazquez
The camera was not checked before doing the export.
2021-05-19GPencil: Apply NanoSVG fixAntonio Vazquez
This fix is ported from official NanoSVG git
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-17Collada import: use black for Base Color when missing <diffuse>Gaia Clary
Treat a missing <diffuse> the same as a black diffuse color. The easiest way to see this bug is with a Collada shader like ``` <constant> <emission> <color sid="emission">1 0 0 1</color> </emission> </constant> ``` The Collada spec says this should be just ``` color = <emission> ``` ie. red everywhere. The importer slots the red into the Principled Emission socket, but since it leaves the Base Color as the default off-white, this is added to red, and the material looks white-pink in the light and red only in the shadows. Putting black in the Base Color makes it look red everywhere. D10939 will also eliminate the much-less-noticeable specular term for this case. Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10941
2021-05-17Merge branch 'blender-v2.93-release'Brecht Van Lommel
2021-05-17refactor: minor changes to previous commitGaia Clary
- rename boolean is_zero by more descriptive has_specularity - add some clarifying comments (and TODO)
2021-05-17Collada import: respect zero-specularityScurest
Collada shaders with black <specular> should import with Specular=0. (A missing <specular> is the same as black.) The general specular conversion is hard, but this case is common and easy. Fixes the specular for all <constant>/<lambert> shaders, and <blinn>/<phong> shaders with black/omitted <specular>. Before this they all looked too "shiny". Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10939
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-17Merge branch 'blender-v2.93-release'Antonio Vazquez
2021-05-17GPencil: Fix unreported error exporting to PDF/SVG with animated cameraAntonio Vazquez
Before, the camera parameters were calculated only for first frame. If the camera is animated, these values need to be recalculated in order to get the new camera view position and export the strokes as expected. Also fixed the export of PDF when the view is not in camera view. PDF export, needs to be done in camera view.
2021-05-14GPencil: Refactor Append operatorsAntonio Vazquez
Now the operators work like other areas of Blender using the list of selected objects. Also, the name has been changed to: ```Layers: - Copy Layer to Selected - Copy All Layers to Selected Materials: - Copy Material to Selected - Copy All Materials to Selected``` Reviewed By: mendio, pablovazquez, pepeland Differential Revision: https://developer.blender.org/D11216
2021-05-14Cleanup: Clang formatHans Goudey
2021-05-14Collada import: connect Emission texture to Emission socketScurest
An emission texture is currently connected to the Base Color socket. It should connect to the Emission socket, like a constant does. Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10990
2021-05-07Merge remote-tracking branch 'origin/blender-v2.93-release'Dalai Felinto
2021-05-07Cleanup: make format (clang-format)Dalai Felinto
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-06Merge branch 'blender-v2.93-release'Philipp Oeser
2021-05-06Fix T86314: materials not updated correctly after collada import (again)Philipp Oeser
While rB6b18678e34bf did the correct updates, it did it a bit early (not covering all possible node tree changes). Now do the ntreeUpdateTree() at the very end of the material import instead. Thx @scurest investigating. Maniphest Tasks: T86314 Differential Revision: https://developer.blender.org/D11159
2021-04-28Gpencil: Fix for SVG import arc and float errorsErik Abrahamsson
Fix for the Arc commands (A/a) to successfully parse the 4th and 5th arguments. Fix for floats without a specified integer part, like `.123` File for testing: {F10042021} Reviewed By: filedescriptor Differential Revision: https://developer.blender.org/D11099
2021-04-15GPencil: Avoid invisible strokes in PDF exportAntonio Vazquez
There were still some invisible strokes.
2021-04-15Cleanup: Use correct float formatAntonio Vazquez
2021-04-15GPencil: Fix unreported error exporting big files in PDFAntonio Vazquez
The exporting was creating a pdf state for each stroke, but this was necessary only for strokes with opacity. Now, the state is only created when needed and remove the state variable from class. Also, avoid exporting invisible strokes.
2021-04-14Fix T87479: GPencil SVG export outside of cameraFalk David
When trying to export a GPencil object to SVG from outside the camera view, the expoted file would contain invalid data. This was because the calculation of the bounding box did not have any objects to iterate over. The fix makes sure we create the object list before trying to calculate the bounding box. Reviewed By: antoniov Maniphest Tasks: T87479 Differential Revision: https://developer.blender.org/D10975
2021-04-13Cleanup: sort cmake file listsCampbell Barton
2021-04-08Cleanup: modernize-use-equals-defaultJacques Lucke
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
2021-04-08Cleanup: modernize-use-equals-defaultJacques Lucke
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
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-02Fix T87131: SVG as GPencil elements with both Stroke and Fill failsAntonio Vazquez
The importer was not checking if both were enabled. Now a new material is created if it's needed.
2021-03-29Fix T87013: GPencil SVG export wrong svg xml header settingsAntonio Vazquez
The attribute was missing.
2021-03-27Correct header rename error 10cfa75e1d1e80b32da640a0e7de2b50f831dcfdCampbell Barton
2021-03-27Cleanup: use .hh extension for C++ headersCampbell Barton
Follow documented convention for file naming.
2021-03-26Fix T86942: GPencil does not export SVG or PDF in orthographic cameraAntonio Vazquez
The calculation of the 2D point was wrong when using orthographic mode. Also small cleanup in float3 variable. Differential Revision: https://developer.blender.org/D10828
2021-03-26Cleanup: Fix clang-tidy errors.Jeroen Bakker
2021-03-26Cleanup: spellingCampbell Barton
2021-03-26CMake: add headers to source lists, sort file-listsCampbell Barton
2021-03-24Fix broken compilation after recent GPencil commit.Bastien Montagne
rBa8a92cd15a52 was adding external libraries includes to `INC`, which is reserved to internal project includes. `INC` does not allow duplicates, and when using system libs both PugiXML and Haru headers are under the same path.
2021-03-24Fix build error and warnings in new grease pencil IO codeHans Goudey
2021-03-24GPencil: New modules for Import and ExportAntonio Vazquez
This patch adds support to export and import grease pencil in several formats. Inlude: * Export SVG * Export PDF (always from camera view) * Import SVG The import and export only support solid colors and not gradients or textures. Requires libharu and pugixml. For importing SVG, the NanoSVG lib is used, but this does not require installation (just a .h file embedded in the project folder) Example of PDF export: https://youtu.be/BMm0KeMJsI4 Reviewed By: #grease_pencil, HooglyBoogly Maniphest Tasks: T83190, T79875, T83191, T83192 Differential Revision: https://developer.blender.org/D10482
2021-03-24Fix T86314: materials not updated correctly after collada importPhilipp Oeser
Make sure we have valid links and link pointers using 'ntreeUpdateTree()'. Maniphest Tasks: T86314 Differential Revision: https://developer.blender.org/D10793
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-14Cleanup: unused functionCampbell Barton
2021-02-13Cleanup: spellingCampbell Barton