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-01Fix T78601: User count errors when reading home-fileCampbell Barton
Calling: bpy.ops.wm.read_homefile(use_empty=True) exposes invalid user-counts in versioning code. Simplified logic for assigning materials in versioning code. Caused by 29f3af9527259.
2020-09-01Fix errors ensuring grease pencil paletteCampbell Barton
- Direct assignment caused ID user counts to be invalid. - The first palette would always be used, even when the named palette searched for was found. Also pass 'const' string to `hex_to_rgb`, avoid casting to 'non-const'.
2020-08-31Cleanup: Comment formatting in unit.cHans Goudey
2020-08-31Cleanup: reduce variable scopeJacques Lucke
2020-08-31Cleanup: reduce variable scope and use LISTBASE_FOREACHJacques Lucke
2020-08-30Object: add ED_object_array_in_mode_or_selectedCampbell Barton
Use this utility function for render-shading & weight paint modes. This adds support for edit-mode & pose-mode where all objects in the mode are used in this case instead of the selected objects.
2020-08-30BKE_layer: add BKE_view_layer_array_selected_objects_paramsCampbell Barton
Useful for similar situations as BKE_view_layer_array_from_bases_in_mode_params without depending on the active objects mode.
2020-08-30Cleanup: pass v3d as const to view layer utilitiesCampbell Barton
2020-08-29Cleanup: spellingCampbell Barton
2020-08-29Cleanup: remove paranoid 'MDeformVert.totweight < 0' checkCampbell Barton
This was added in 1cb7267a9f9f1, however the behavior before this would have failed on negative values already. Also negative values here would fail in many other places.
2020-08-28Revert "tmp"Hans Goudey
This reverts commit b78a439e9071f83baf296d52c0c1a458aecd2938. This was committed by mistake, and including BLI_winstuff.h on non-windows platforms results in an error.
2020-08-28tmpGermano Cavalcante
2020-08-28Cleanup: Fix build error with msvcRay Molenkamp
`ssize_t` is not a standardized type (it's a posix type) given the line in question here is calculating the size of a memory allocation there's no logical way this should ever be negative. I do not know this code too well and was unsure if `mdverts->totweight` could ever be < 0, so I protected it with a clamp, just in case.
2020-08-28Merge branch 'blender-v2.90-release' into masterBastien Montagne
2020-08-28Fix T80104: Crash on making material local.Bastien Montagne
Problem is again with the embedded data, we want to make those local together with their owner ID, but sometimes we are actually dealing with copies here, which are inheritently already local. Code did not considered that possibility before, leading to access to a NULL `lib` pointer. This should also be back-ported to 2.83 LTS release. Maniphest Tasks: T80104 Differential Revision: https://developer.blender.org/D8731
2020-08-28Refactor: move Lattice .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-08-28Refactor: move Mesh .blend I/O to IDTypeInfo callbacksJacques Lucke
I'm also adding `BKE_id_blend_write`, so that it can be accessed outside of `readfile.c`.
2020-08-28Fix building without bullet supportSebastian Parborg
The new BKE_rigidbody_is_affected_by_simulation function was in side the WITH_BULLET ifdef guard.
2020-08-28Merge branch 'blender-v2.90-release' into masterBastien Montagne
2020-08-28Fix Rigidbody depsgraph passive and constraint transform relations.Sebastian Parborg
We need to have transforms from passive objects if they are animated or driven by parent relations. This is not immediately obvious as the object transform matrix will still be available, it is just one frame behind in some cases. Fixed dependency cycles if there is a constraint between two rigid bodies. Because bullet keeps track of its simulated bodies, we do not need to supply objects transforms as bullet should already have them. I need combine these two fixes because otherwise we will get depsgraph warnings that nodes are missing that it expects to be there. Reviewed By: Sergey, Jacques Differential Revision: http://developer.blender.org/D8732
2020-08-28Fix T80078: Overrides: Crash with animated IK control on linked armature.Bastien Montagne
Issue was with our dear posebones again... when applying overrides we keep the same address/pointer for the IDs themselves, (which avoids us the need to remap their usages), but their inner data is often re-allocated. Therefore, we need once again to go over armature objects and invalidate their posebone pointers. This should also be back-ported to Blender LTS 2.83. Maniphest Tasks: T80078 Differential Revision: https://developer.blender.org/D8734
2020-08-28Refactor: move CustomData .blend I/O to blenkernelJacques Lucke
This is part of T76372.
2020-08-28Refactor: move defvert .blend IO to blenkernelJacques Lucke
This is part of T76372.
2020-08-28Cleanup: improve function namesJacques Lucke
With this change, the three .blend read operations: data reading, lib reading and expanding are more grouped together.
2020-08-28IDTypeInfo: add .blend file io callbacksJacques Lucke
This is part of T76372. It adds the `blend_write`, `blend_read_data`, `blend_read_lib` and `blend_read_expand` which correspond to the various steps when reading and writing .blend files. Having these callbacks allows us to decentralize the blenloader code a lot more. This has the affect that code related to any specific ID type is less scattered. Reviewers: mont29 Differential Revision: https://developer.blender.org/D8670
2020-08-27GPencil: Don't convert color to sRGBAntonio Vazquez
The color is linear, so the conversion is breaking the real color.
2020-08-26Logging: change error to warningJacques Lucke
This is in preparation for https://developer.blender.org/D8665.
2020-08-26Cleanup: remove G.debug_value check for old mesh-deform behaviorCampbell Barton
Added in 2007, it doesn't seem useful to support alternate behavior.
2020-08-26Cleanup: remove unused UvVertMap.flagCampbell Barton
2020-08-26Cleanup: add SEQ_ALL_BEGIN, SEQ_CURRENT_BEGIN to .clang-formatCampbell Barton
These were missed in 70500121b457d which caused reformatting.
2020-08-26Cleanup: spellingCampbell Barton
2020-08-25Merge branch 'blender-v2.90-release'Philipp Oeser
2020-08-25Fix T80016: Shape key animation is linked when duplicating objectRed Mser
Fix T80016 Caused by a typo in rB7b1c406b5431ce65d84ddb5f2c53977c25c18373 Reviewed By: mont29, dfelinto Maniphest Tasks: T80016 Differential Revision: https://developer.blender.org/D8693
2020-08-25Sculpt: Cloth Snake Hook BrushPablo Dobarro
This implements Snake Hook as a deform type for the cloth brush. This brush changes the strength of the deformation constraints per brush step to avoid affecting the results of the simulation as much as possible. It allows to grab the cloth without producing any artifacts in the surface and create more natural looking folds than any of the other deformation modes. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8621
2020-08-25Fix T80008: Smooth brush not deforming mesh boundaries correctlyPablo Dobarro
In 2.83 and previous versions there was a bug that was causing boundary vertices to be detected incorrectly that was preventing the smooth brush to work on boundaries if there was a pole on them. In 2.90 the boundary vertex detection was fixed, but it was still using a simplified version of the algorithm without any boundary smoothing. This patch implements a similar smoothing algorithm to what I think it was the intention of 2.83 and previous versions, but working correctly. Reviewed By: sergey Maniphest Tasks: T80008 Differential Revision: https://developer.blender.org/D8680
2020-08-24Merge branch 'blender-v2.90-release'Pablo Dobarro
2020-08-24Fix T80039: Do not subdivide with Multires is mesh has no facesPablo Dobarro
This skips the subdivision operation if the mesh has no loops, avoiding the crash. Reviewed By: sergey Maniphest Tasks: T80039 Differential Revision: https://developer.blender.org/D8696
2020-08-21Cleanup: rename iterators over sequences to be more clear about what they do.Bastien Montagne
No functional changes expected.
2020-08-21Merge branch 'blender-v2.90-release' into masterBastien Montagne
2020-08-21Fix critical bug in foreach ID looper of Scene data-block.Bastien Montagne
Since stone age of lib_query, the code would iterate over the current list of active sequences (from a meta strip e.g.), and not over the whole list of those. This is a critical issue as it means in some cases (editing a meta strip typically), some ID pointers would be missed/ignored by this foreach looper, which is now at the center of most of our ID management code. This caused a bug here at the studio, leading to loss of all sound IDs used by sound strips when editing and undoing inside a meta strip, since ID refcounting would not happen properly on strips using sounds outside the meta-strip context during file reading of the undo steps. To be backported to 2.83. Differential Revision: https://developer.blender.org/D8671
2020-08-21Cleanup: spellingCampbell Barton
2020-08-21Cleanup: use doxy sections for fcurve.cCampbell Barton
2020-08-21Refactor: move animdata code from blenloader to blenkernelJacques Lucke
2020-08-21Refactor: move nla code from blenloader to blenkernelJacques Lucke
2020-08-21Cleanup: remove LodLevelJacques Lucke
This was part of the game engine and is not used anymore. Reviewers: brecht Differential Revision: https://developer.blender.org/D8666
2020-08-21Refactor: move fcurve/fmodifier code from blenloader to blenkernelJacques Lucke
This is part of T76372.
2020-08-21Blenloader: move IDProperty read/write code to blenkernelJacques Lucke
This is part of T76372.
2020-08-21Cleanup: split `BKE_scene_get_depsgraph()` into two functionsSybren A. Stüvel
Split the depsgraph allocation into a separate function `BKE_scene_ensure_depsgraph()`. Parameters are only passed to those functions that actually need them. This removes the the "if that boolean is `false` this pointer is allowed to be `NULL`" logic and more cleanly decouples code. No functional changes.
2020-08-21Cleanup: Reduce nesting of `scene_get_depsgraph_p()`Sybren A. Stüvel
Reduce nesting by flipping conditions and returning early. It's now much clearer that it's actually a linear function (rather than a nested one). No functional changes.
2020-08-21Fix crash when accessing `view_layer.depsgraph` through BPYJulian Eisel
For the sanity checks to work we don't actually need to check other scenes. So this function can be simplified so that it does not require a `Main *`. Mistake in 5cc08510e0a6.