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
2020-09-09Fix T80590: Popups clipped by status-bar and top-barJulian Eisel
The drawing of popus should be done with the window's default viewport and scissor. Previous functions may change these, so they should be explicitly reset.
2020-09-09Geometry: add Attributes panel for PointCloud and HairBrecht Van Lommel
There is a list of attributes, along with operators to add and remove attributes. For adding, there are a few standard attributes that can be added quickly, as well as a popup to create a custom attribute. Ref T76659 Differential Revision: https://developer.blender.org/D8636
2020-09-09Geometry: use generic attributes for Hair and Point CloudsBrecht Van Lommel
Instead of custom data layer with special types, using general Vector and Float attributes. Ref T76659 Differential Revision: https://developer.blender.org/D8635
2020-09-09Geometry: add .attributes in the Python API for Mesh, Hair and Point CloudBrecht Van Lommel
This puts all generic float/int/vector/color/string geometry attributes in a new .attributes property. For meshes it provides a more general API for existing attributes, for point clouds attributes will be used as an essential part of particle nodes. This patch was implemented by @lichtwerk, with further changes by me. It's still a work in progress, but posting here to show what is going on and for early feedback. Ref T76659 Differential Revision: https://developer.blender.org/D8200
2020-09-09Fix T76346: Moving objects in outliner doesn't update local collectionsDalai Felinto
The fix involves going over ALL the possible combinations of viewlayers and viewports and re-sync. I tested this with multiple windows, multiple scenes and multiple viewlayers. Since (for now?) the operation of syncing the local layer collections is not too expensive, this is not so bad. In theory we could improve this by checking if the collection the object was moved to and from is in the scene before iterating over it. I don't think it is worthy though. Thanks Arun Parolikkal for the initial attempt on D8342. Final patch reviewed by Brecht Van Lommel.
2020-09-09Cleanup: reduce variable scopesJacques Lucke
2020-09-09Fix T79038: Blender freezes on vertex paint on linked mesh dataJeroen Bakker
This change promotes the work-a-round to the current solution. There are options to solve this better, but needs more design.
2020-09-09Add nullptr checks in the depsgraph physics relation builderSebastian Parborg
Without these check ASAN complains about null pointer member access. Reviewed By: Sergey Differential Revision: http://developer.blender.org/D8847
2020-09-09Fix uvsculpt null pointer reference in paint.cSebastian Parborg
ASAN reported null pointer access when going into edit mode on the default cube. Check in uvculpt has been initialized before trying to use it.
2020-09-09Fix material null pointer reference in buttons_context.cSebastian Parborg
ASAN reported null pointer access when converting a mesh to curves. Check if the material is a null pointer before trying to use it.
2020-09-09CMake: Force experimental features to be on/off based on release cycleDalai Felinto
This makes it error-proof to disable/enable experimental features during the release cycles. Since it is handled by CMake it should always work reliably now (not depending on someone turning this on and off). Reviewed by Sergey Sharybin.
2020-09-09Cleanup: reduce variable scopeJacques Lucke
2020-09-09Cleanup: Rename public "bUnit" functionsHans Goudey
This commit renames the functions in "BKE_unit.h` to be consistent with the naming in the rest of blenkernel. bUnit_AsString -> BKE_unit_value_as_string_adaptive bUnit_AsString2 -> BKE_unit_value_as_string bUnit_ReplaceString -> BKE_unit_replace_string bUnit_ApplyPreferredUnit -> BKE_unit_apply_preferred_unit bUnit_ToUnitAltName -> BKE_unit_name_to_alt bUnit_ClosestScalar -> BKE_unit_closest_scalar bUnit_BaseScalar -> BKE_unit_base_scalar bUnit_IsValid -> BKE_unit_is_valid bUnit_GetSystem -> BKE_unit_system_get bUnit_GetBaseUnit -> BKE_unit_base_get bUnit_GetBaseUnitOfType -> BKE_unit_base_of_type_get bUnit_GetName -> BKE_unit_name_get bUnit_GetNameDisplay -> BKE_unit_display_name_get bUnit_GetIdentifier -> BKE_unit_identifier_get bUnit_GetScaler -> BKE_unit_scalar_get bUnit_IsSuppressed -> BKE_unit_is_suppressed Differential Revision: https://developer.blender.org/D8828
2020-09-09Fix T80464: Crash deleting bone constraints when the armature layer isPhilipp Oeser
not active Caused by {rB608d9b5aa1f1} Prior to rB608d9b5aa1f1, the constraint was gotten using **context** [CTX_data_pointer_get_type(C, "constraint", &RNA_Constraint) -- which is valid for bones on hidden layers]. After rB608d9b5aa1f1, the constraint is found (or isnt) using `edit_constraint_property_get` [this is **not** valid for bones on hidden layers because internally `BKE_pose_channel_active` checks if the bone is on an active layer]. Some observations: - Every operator using `edit_constraint_property_get` doesnt work for bones on inactive layers [delete, moveup, movedown, move to index (drag n drop nowadays)] -- moveup, movedown, move to index check if they could find a constraint beforehand though (dont crash) -- delete crashes (doesnt check if a constraint could actually be found) - Every operator using `edit_constraint_property_get` for constraint data doesnt work for bones on inactive layers [stretchto_reset, limitdistance_reset, childof_set_inverse, ...] -- these all check if they could find a constraint beforehand though (dont crash) This is because the poll function is using **context** to get the constraint, the operators themselves use **edit_constraint_property_get** which leads to inconsistent/unexpected results. Possible solutions were: - [1] let the delete operator just work with the context constraint again (like prior to rB608d9b5aa1f1) -- allows for deleting constraints on bones in inactive layers - [2] check if we could get a constraint -- prevents the crash, but does **not** allow for deleting constraints on bones in inactive layers - [3] make the poll `edit_constraint_poll_generic` be as strict as the operators -- dont use **context** to get the constraint, but something like **edit_constraint_property_get** - [4] make the operators be more graceful and let them act on bones on hidden layers -- let **edit_constraint_property_get** actually use the same **context** This patch implements [4], so poll an doperators are now in sync. - prevents reported crash - also enables operators for bone constraints on hidden layers - also enables drag and drop reordering of constraints on hidden layers This might be a candidate for 2.90.1? (if it is, take care to include prior "Refactor getting constraints" refactoring commit) Note: Adding constraints also doesnt work for bones on inactive layers [that was the case in 2.79 as well -- it is also using `BKE_pose_channel_active`] Maniphest Tasks: T80464 Differential Revision: https://developer.blender.org/D8805
2020-09-09Refactor getting constraintsPhilipp Oeser
This is the refactoring part of D8805 (should be no functional changes). - exposes pose-related part of former 'get_constraints()' from interface_templates.c to new ED_object_pose_constraint_list - rename ED_object_constraint_list_from_context --> ED_object_constraint_active_list Also clarify comments on both of these. ref T80464 ref https://developer.blender.org/D8805
2020-09-09UI: improve search results by using fuzzy and prefix matchingJacques Lucke
Blender does string based searching in many different places. This patch updates four of these places to use the new string search api in `BLI_string_search.h`. In the future we probably want to update the other searches as well. Reviewers: Severin, pablovazquez Differential Revision: https://developer.blender.org/D8825
2020-09-09BLI: new string search api that supports fuzzy and prefix matchingJacques Lucke
This adds a generic string search library in `BLI_string_search.h`. The library has a simple to use C api that allows it's users to filter and sort a set of possible search results based on some query string. Reviewers: Severin Differential Revision: https://developer.blender.org/D8825
2020-09-09Fix T80626: Crash adding custom-data layers after reloading the fileCampbell Barton
Regression in a48d78ce07f4f which caused the meshes CustomData to be written before it's layer values were updated for writing.
2020-09-09Fix T80613: Assert in UI_but_number_precision_setJulian Eisel
-1 is a valid value to pass as RNA float precision. We let the UI code figure out an appropriate precision then. So don't fail the assert if -1 is passed.
2020-09-09Fix T80596: Convert to Curve from Mesh crashes BlenderSebastian Parborg
The point cache code needs a non NULL rbw pointer. This could have been avoided if there was a sanity check in the convert function, so added a check there as well.
2020-09-09Cleanup: use bool instead of intJacques Lucke
2020-09-09Cleanup: use bool instead of intJacques Lucke
2020-09-09Cleanup: use bool instead of intJacques Lucke
2020-09-09Correct error in last commitCampbell Barton
2020-09-09Cleanup: access context argument instead of bpy.contextCampbell Barton
2020-09-09Fix "Select" option being ignored when linking collection instancesCampbell Barton
Also check 'BASE_SELECTABLE' before selecting which was only done for collections.
2020-09-09Cleanup: spellingCampbell Barton
2020-09-09Fix T80604: BLI_polyfill_calc exceeds stack size allocating pointsCampbell Barton
On systems with 512kb stack this happened at around 13k points. This happened at times with grease-pencil, although callers that frequently use complex polygons should be using BLI_polyfill_calc_arena.
2020-09-09UI: Rename "VCol" to "Vertex Colors"Aaron Carlisle
2020-09-09Cleanup: GPU: Replace multiple checks by GLContext::debug_layer_supportClément Foucault
2020-09-08Cleanup: Use bool instead of intHans Goudey
2020-09-08Revert "BKE: Fix compiling with clang-tidy and readability-non-const-parameter"Clément Foucault
This reverts commit 637a5c964a01f5e8733e972cb8a30341eb91058e. I commited the previous commit because I wasn't building with openvdb. Compiling with openvdb fix the clang-tidy errror.
2020-09-08Revert "Revert "RNA Manual Mapping: Update Mappings""Clément Foucault
This reverts commit de5930333bcd85ede44d6cd1e117b00e5051b728.
2020-09-08Revert "RNA Manual Mapping: Update Mappings"Clément Foucault
This reverts commit f14d24729ff32edffd71b646712e59b640fcddd9. I commited the previous commit because I wasn't building with openvdb. Compiling with openvdb fix the clang-tidy errror.
2020-09-08GLSamplers: Add debug object labelClément Foucault
This makes it easier to see what each sampler is supposed to be.
2020-09-08Fix T79538 Grease Pencil: Fill texture doesn't tile anymoreClément Foucault
This was caused by rBe749643793809248dfc6ffd078be04aec3eeab82 which removed the texture repeat from Image texture.
2020-09-08BKE: Fix compiling with clang-tidy and readability-non-const-parameterClément Foucault
2020-09-08RNA Manual Mapping: Update MappingsAaron Carlisle
2020-09-08UI: Tooltip grammar fixAaron Carlisle
2020-09-08UI: 3D View: Move Live Unwrap to toolbarAaron Carlisle
The menus should be for operators, tool settings belong in the toolbar
2020-09-08Hide tools with missing icons under experimentalPablo Dobarro
This removes from the UI all tools with missing icons and hides them under a "Tools with missing icons" experimental option. We agree on not making available by default tools in master without icons. Having this experimental flag will allow to commit new tools as soon as the technical design and implementation is finished so development can continue, without adding broken icons to the UI. Reviewed By: Severin Differential Revision: https://developer.blender.org/D8831
2020-09-08Cleanup: reduce variable scopes in node_draw.cJacques Lucke
2020-09-08Alembic Export: support instanced object dataSybren A. Stüvel
Add support for object data instancing. This is used when the objects are instances, for example when duplicated by a particle system, or instanced by the duplication system (collection-duplicating empties, vertex/face duplis, etc.) Since Alembic already deduplicates data, this doesn't make the resulting Alembic files any smaller. They will be faster to write, though, when there is a lot of instanced geometry, as the deduplication system won't have to do any comparisons. This instancing support is still limited, in the sense that only object data is instanced and all transforms are still written explicitly. A future improvement could be to support instancing entire collection hierarchies. Blender's Alembic importer has no understanding of these Alembic instances yet, and will thus happily duplicate the data on import. The USD Alembic plugin seems to have problems understanding the instancing. There might also be other software with similar issues. Because of this, instancing can be turned off in the exporter (it's on by default).
2020-09-08UI: Aesthetic tweaks to Select All by Type operatorPablo Vazquez
* Match menu items with Add Menu (order and naming e.g. Font -> Text) * Use Icons * Remove ellipsis from the name (policy is to use `...` only when triggering a window/popup) No functional changes. Thanks @HooglyBoogly for the help!
2020-09-08Cleanup: Alembic export, split `ABCHierarchyIterator::get_alembic_parent()`Sybren A. Stüvel
Split `ABCHierarchyIterator::get_alembic_parent()` into two functions: - For a given export path, find the Alembic object - Ensure that that object is usable as parent object (Alembic uses a specific 'top' object as parent to indicate "no parent"). The new function is `public` as it will be used in an upcoming feature, and is required to be public then. No functional changes.
2020-09-08Cleanup: Alembic export, split function into twoSybren A. Stüvel
Split the `ABCHierarchyIterator::create_data_writer()` function into two functions. This is to prepare for the creation of writers not just by object type, but also by goal, for example writers that reference other Alembic data instead of writing their own (i.e. instancing). No functional changes.
2020-09-08GLBackend: Fix gl error inside the mip rendering workaround detectionClément
This was caused by an incorrect mipmap size. Also add debug checks for good mesure.
2020-09-08GLContext: Fix clang warning about using overrideClément
2020-09-08GLFrameBuffer: Fix mass renaming issueClément
The context might be partialy freed, so use gpu::Context instead of GLcontext.
2020-09-08Cleanup: reduce variable scopes in drawnode.cJacques Lucke