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
2021-03-22Fix UI (and code!) typos.Bastien Montagne
2021-03-22RNA: rename recently added line-art propertiesCampbell Barton
- Use `use_` prefix for boolean properties. - Use `_all` instead of `_everything`, following existing conventions and the properties UI text. - Use `object_instances` instead of old term `dupli` / `duplication`. - Use `clip_plane` instead of `clipping_boundaries`, matching the RegionView3D property naming.
2021-03-22RNA: use boolean array for transarency masksCampbell Barton
There is no need to expose this as multiple properties, also use `use_` prefix for boolean properties.
2021-03-22Cleanup: spelling, expand on commentsCampbell Barton
2021-03-22Cleanup: clang-format, trailing spaceCampbell Barton
Minor manual tweak to prevent wrapping an array into columns.
2021-03-22Cleanup: Don't use class method to override equality operatorHans Goudey
This won't make a difference in this case, but it's consider better practice since there is no vagueness about implicit conversion.
2021-03-21Cleanup: compile errors on macosJacques Lucke
2021-03-21Functions: refactor virtual array data structuresJacques Lucke
When a function is executed for many elements (e.g. per point) it is often the case that some parameters are different for every element and other parameters are the same (there are some more less common cases). To simplify writing such functions one can use a "virtual array". This is a data structure that has a value for every index, but might not be stored as an actual array internally. Instead, it might be just a single value or is computed on the fly. There are various tradeoffs involved when using this data structure which are mentioned in `BLI_virtual_array.hh`. It is called "virtual", because it uses inheritance and virtual methods. Furthermore, there is a new virtual vector array data structure, which is an array of vectors. Both these types have corresponding generic variants, which can be used when the data type is not known at compile time. This is typically the case when building a somewhat generic execution system. The function system used these virtual data structures before, but now they are more versatile. I've done this refactor in preparation for the attribute processor and other features of geometry nodes. I moved the typed virtual arrays to blenlib, so that they can be used independent of the function system. One open question for me is whether all the generic data structures (and `CPPType`) should be moved to blenlib as well. They are well isolated and don't really contain any business logic. That can be done later if necessary.
2021-03-21UI: Title case for Proxy Setup and fix typoPablo Vazquez
2021-03-21Functions: move CPPType creation related code to separate headerJacques Lucke
This does not need to be included everywhere, because it is only needed in very few translation units that actually define CPPType's.
2021-03-21Cleanup: fix compiling with older compiler on macosJacques Lucke
We cannot use `std::variant` yet, because not all of the compilers we support have a working version of it yet. For now, I just replaced it with multiple `std::option` which is good enough, because currently `CellValue` is only used for the cells that are actually drawn in the spreadsheet.
2021-03-21Cleanup: move some headers from MOD_lineart.h to source filesCampbell Barton
2021-03-21Cleanup: redundant headers in 'source/blender/gpencil_modifiers'Campbell Barton
2021-03-21Cleanup: correct variable name mixup in BLI_str_quoted_substrNCampbell Barton
Also expand doc-string for `BLI_str_escape_find_quote`
2021-03-21Fix uninitialized memory use loading movie sequence stripsCampbell Barton
When the movie wasn't found, uninitialized values would be used for the original width/height. Also use int instead of float as the image size is stored as an int.
2021-03-21Fix failure to set transform rotate around singleCampbell Barton
Regression in 201ab7c54025afc42570ce3df3d2bb7f37fe36be
2021-03-21Cleanup: remove redundant NULL checksCampbell Barton
2021-03-21Cleanup: unused return statementsCampbell Barton
2021-03-21Cleanup: use static local variablesCampbell Barton
2021-03-21Cleanup: remove window manager headers from MOD_lineartCampbell Barton
This was only used to return success, which is currently never checked.
2021-03-21Cleanup: replace 'unsigned char' with 'uchar'Campbell Barton
2021-03-21Cleanup: remove redundant castsCampbell Barton
2021-03-21Cleanup: spelling, doxygen comment formattingCampbell Barton
2021-03-21Fix T86660 EEVEE: Undefined behaviour in specular_occlusionClément Foucault
Define visibility error to be 1 by default to avoid undefined behaviour.
2021-03-20Bevel code: add a null pointer check.Howard Trickey
2021-03-20Cleanup: quiet warningJacques Lucke
2021-03-20BLI: improve support for generic algorithms with c++ containersJacques Lucke
Some generic algorithms from the standard library like `std::any_of` did not work with all container and iterator types. To improve the situation, this patch adds various type members to containers and iterators. Custom iterators for Set, Map and IndexRange now have an iterator category, which soe algorithms require. IndexRange could become a random access iterator, but adding all the missing methods can be done when it is necessary.
2021-03-20Cleanup: quiet warningJacques Lucke
2021-03-20LineArt: Fix blank baking for when source type is object.YimingWu
2021-03-20Fix T86745: trace sequence keyframe offsetFalk David
The offset when creating the keyframes was set to `frame_target + i` but `i` starts iterating from the current frame number. The fix uses just `i` as the frame number. Reviewed By: antoniov Maniphest Tasks: T86745 Differential Revision: https://developer.blender.org/D10772
2021-03-20LineArt: Fixed source selection for nested-instanced collection.YimingWu
2021-03-20Fix T86730: LineArt: keep contour when there's perpendicular faces.YimingWu
2021-03-20Join curves: compensate for different bevel depthsPhilipp Oeser
When joining curves, the resulting curve will inherit the bevel depth of the active curve, but the radii would stay the same which leads to changed appearance when joining. Now compensate for this taking the different bevel depths into account (if present). Was a feature request here (and I also think we had reports about this -- which were usually turned down as not-a-bug): https://blender.community/c/rightclickselect/bhhbbc/ Differential Revision: https://developer.blender.org/D10752
2021-03-20Fix issues introduced strip loading refactoringRichard Antalik
- Adding effect strip resulted in strip with no name - Adding sound strip attempted to read `fit_method` RNA property, that did not exist, causing error messages in console These issues were introduced in bbb1936411a5.
2021-03-20Fix T86355: Added effect strip has wrong lengthRichard Antalik
SEQ_add_effect_strip used SeqLoadData.image.end_frame to set end frame. This was mistake introduced in last refactoring patch. Use effect data, not image data, when adding effect strips. Reviewed By: sergey Differential Revision: D10633
2021-03-20Fix T85824: Transition between adjustment regressionRichard Antalik
When transition effect is placed between 2 adjustment layer strips, only first adjustment layer was rendered by effect. Limit timeline_frame range to adjustment strip frame range. This timeline configuration is technically invalid, because strips should overlap when using transition effect. This was never restricted and instead of producing no image, transition effect used first and last frame of source strip. Many users got used to this "feature" so I think it make sense to fix this case so it behaves like other strip types. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10562
2021-03-20VSE: Preview images when moving strip handlesPeter Fog
Add option to override current frame whem transforming strip handles. Option can be found in View menu of VSE preview, or in timeline when using backdrop. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10424
2021-03-20VSE: Text strip improvementsPeter Fog
- Position text in center of image - Increase default font size so it's more visible - Increase font size limit - Increase limit for location, so text can be scolled off screen - Wrap text by default - Tweak default box and shadow color - Change text shadow position - Text box no longer casts shadow Reviewed By: ISS Differential Revision: https://developer.blender.org/D10571
2021-03-20VSE: Add bold and italic option for text stripPeter Fog
Bold and italic fonts can be switched quickly by presing corresponding button. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10542
2021-03-20Fix T54395: Original image size set incorrectlyEitan
`SequenceElement` type `orig_height` and `orig_width` members were set to incorrect size when using proxies and not set when strip was added which caused value to be unset. Since now image dimensions must be read when strip is created, these members can be initialized. When proxies are used, do not set original size since it is not guaranteed, that proxies are exact size. These values are not guaranteed to be up to date or exact. They should be used for strictly informative purposes. Reviewed By: ISS Differential Revision: https://developer.blender.org/D6506
2021-03-20VSE: Add new_meta RNA API functionFélix
This function can be used to create empty meta strip, which is not straightforward when using operators. Very useful for import/export scripts. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10661
2021-03-20VSE: Add move_to_meta RNA API functionFélix
This function can be used to move strips into meta strips with no side effects like change of selection state. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10759
2021-03-20Nodes: implement dot graph exporter for derived node treeJacques Lucke
This visualization of nested node groups makes it easier to debug some issues. Muted nodes, muted links, reroute nodes and unavailable sockets are removed from the visualization to keep it clean. Nested node groups are visualized using colored clusters.
2021-03-20Nodes: expose tree name and whether a node is a frame in node tree refJacques Lucke
2021-03-20Geometry Nodes: fix crash when inserting certain invalid linksJacques Lucke
For example, it would crash when connecting a float to a geometry socket, under some circumstances.
2021-03-19Nodes: make distinction between directly and logically linked sockets more clearJacques Lucke
This also moves the handling of muted nodes from derived node tree to node tree ref.
2021-03-19Nodes: provide access to type specific data through node tree refJacques Lucke
2021-03-19EEVEE: Volumetrics: Add back support for light clampClément Foucault
The new clamping works by modifying the lamp internal radius which then soften the light contribution. However this does remove more light compare to the old solution. This is because the clamp now affects the light over a much larger distance since it is smoother. Old scene needs manual tweaking.
2021-03-19EEVEE: Volumetrics: Add support for soft volumetric shadowsClément Foucault
Soft surface shadows were already supported but now we support soft shadows of the volume themselves. This is only enabled if the light casts shadow and the scene soft shadows toggle is enabled.
2021-03-19EEVEE: Volumetrics: Add Area light shape supportClément Foucault
Previously area lights were just considered as point lights. We now use a "most representative point" technique that make the light shape appearant and gives more homogenous result. This technique is quite cheap but it is not physically correct. So I came up with a power function to have almost the same intensity output as cycles in the general case.