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
2022-08-26Cleanup: use booleansCampbell Barton
2022-08-26Cleanup: quiet GCC array bounds warningCampbell Barton
2022-08-26makesrna: type check bool/int/float/enum get/set callbacksCampbell Barton
While converting types from callbacks isn't a bug, it's unlikely we ever want to do this on purpose and can hide mistakes such as silently converting floating point values to ints as happened with Sequencer.frame_start.
2022-08-26Cleanup: use matching function signatures for RNA callbacksCampbell Barton
Use matching int/float/boo types for RNA callbacks.
2022-08-26Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-26Fix Sequence.frame_start being rounded to int when assignedCampbell Barton
2022-08-26Cleanup: reduce variable scopeCampbell Barton
2022-08-26Cleanup: spelling in comments, formatCampbell Barton
2022-08-25Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-25Fix T100255: Make RigidBodyWorld (and effector_weights) collections refcounted.Bastien Montagne
Those collections were so far mainly just tagged as fake user (even though a few places in code already incremented usercount on them). Since we now clear the fakeuser flag when linking/appending data, ensure that these collections are preserved by making these usages regular ID refcounting ones. Reviewed By: brecht Differential Revision: https://developer.blender.org/D15783
2022-08-25Revert "LibOverride: Preserve viewlayers when creating overrides of ↵Bastien Montagne
collecitons." Commit is not working as expected in some cases, as revealed by liboverride testcase entering infinite loop. Code needs some more thinking. This reverts commit ee7bd79b54a32d64fe0337695d438ad34990d121.
2022-08-25LibOverride: Preserve viewlayers when creating overrides of collecitons.Bastien Montagne
Usually, when overriding collections, the linked reference ones are removed from the ViewLayer, and the overrides replace them. This change to `layer_collection_sync` code makes it so that in case there is a free viewlayer hierarchy matching the linked collection, it gets re-used for the override one, instead of re-creating everything from scratch. To achieve this, resync process is split into two steps, first regular collections are processed, then the override ones. This should ensure an override does not steal the layers of its reference if the later is still instantiated in the view layer.
2022-08-25Merge branch 'blender-v3.3-release'Philipp Oeser
2022-08-25Fix T100599: dont reset parent inverse setting parent type the samePhilipp Oeser
Since rBb100bdca25b1 the parent inverse was always reset in ED_object_parent (also for just changing the parent type). This does make sense (since there is no point keeping it when e.g changing from "Bone" to "Object" or "Vertex" to "Object", for this to really make sense it would have to be properly recalculated anyways which does not happen afaict). The reported issue was that setting the prop to the same value as it was before (e.g. from "Object" to "Object") would still reset the parent inverse which was really unexpected since from a user standpoint, nothing has changed here. So in case the value does not really change, we now just early out and skip `ED_object_parent`. Maniphest Tasks: T100599 Differential Revision: https://developer.blender.org/D15771
2022-08-25Cleanup: remove redundant calculation in bmo_poke_execCampbell Barton
Mistake in [0] calculated the mean-face-center which wasn't used. 0: 23344bca6c5d1de330169a04ed8d21145fc60053
2022-08-25Cleanup: rename mat3_to_quat_is_ok to mat3_to_quat_legacyCampbell Barton
Update comment, noting why this is kept.
2022-08-25Keyframing: replace mat3_to_quat_is_ok with mat4_to_quatCampbell Barton
Added [0] which notes in most cases results are the same but in some cases the result seems better. While true at the time of writing since then mat3_to_quat has been improved and used for nearly all matrix to quaternion conversion. 0: 876cfc837e2f065fa370940ca578983d84c48a11
2022-08-25BLI_math: ensure non-negative matrices for mat3_to_quat calculationsCampbell Barton
Making the callers responsible for this isn't practical as matrices are often passed indirectly to a functions such as mat3_to_axis_angle, BKE_object_mat3_to_rot & BKE_pchan_mat3_to_rot. Or the matrix is combined from other matrices which could be negative. Given quaternions calculated from negative matrices are completely invalid and checking only needs to negate matrices with a negative determinant, move the check into mat3_to_quat and related functions. Add mat3_normalized_to_quat_fast for cases no error checking on the input matrix is needed such as blending rotations.
2022-08-25Cleanup: remove outdated, unhelpful commentsCampbell Barton
2022-08-25Fix matrix/quaternion conversion with negative scaled camerasCampbell Barton
2022-08-25Cleanup: Add asserts to curves data-block creationMattias Fredriksson
Ref D14481
2022-08-25Cleanup: Improve commentsMattias Fredriksson
Add to comments in curves header, fix typo in attribute header. Ref D14481
2022-08-24Cleanup: Deduplicate RNA mesh element index retrievalHans Goudey
Reuse the subtraction, which simplifies adding assertions and refactoring to remove the custom data pointers.
2022-08-24Cleanup: Move outliner types to namespace, avoid C-style type definitionJulian Eisel
With C++ we should transition towards namespaces to avoid naming collisions. Having the namespace in place is the first step for that transition. Plus, the `typedef` isn't necessary for struct/class/enum definitions in C++, so avoid the verbosity it adds.
2022-08-24Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-24Cleanup warning about missing pointer casting.Bastien Montagne
2022-08-24Cleanup: Fix typo in commentHans Goudey
Added by mistake in 6718afdc8a32.
2022-08-24Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-24LibOverride: Fix (unreported) crashes in some cases, preserve active object ↵Bastien Montagne
on Clear, general cleanup. Inconsistencies in update/tagging code between different code doing the same 'Clear. liboverride operation lead to crashes in some cases. Unify deg tagging and WM notifiers accross the three editor-level codepaths performing the common Make/Reset/Clear operations. Preserve if possible the active object accross Clear operation. Several cleanup/rename/re-arangement of code to make it more consistent.
2022-08-24Cleanup: rename new IDTemplate operator to create overrides to `make`.Bastien Montagne
Matches other operators' names and UI labels better.
2022-08-24BLI_math: assert mat3_normalized_to_quat doesn't use a negative matrixCampbell Barton
Add an assert to ensure callers don't pass in negative matrices as the resulting quaternion is invalid.
2022-08-24Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-24Fix Quaternion.rotate(matrix) with negative matricesCampbell Barton
Rotating a quaternion by a negative matrix gave an invalid result. Follow up fix for T94231 which negated negative matrices too.
2022-08-24Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-24Fix T100606: Apply object transform fails with delta quaternion rotationCampbell Barton
Apply transform failed to clear delta quaternion & axis-angle rotation.
2022-08-24Merge branch 'blender-v3.3-release'Philipp Oeser
2022-08-24Fix T100590: Crash when changing active image texture nodePhilipp Oeser
Mistake in own rBc76d7f7bde35. Happened when no image was set in the Image Editor already (which is now checked for). Maniphest Tasks: T100590 Differential Revision: https://developer.blender.org/D15761
2022-08-24Cleanup: use determinant_m3(m) < 0 to implement is_negative_m3/m4Campbell Barton
Use a more direct method of checking if a matrix is negative instead of using cross & dot product. Also replace some determinant_m3() < 0 checks with is_negative_m3.
2022-08-24Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-24Fix T94231: Matrix.to_quaternion() returns invalid rotationCampbell Barton
The result of mat3_normalized_to_quat isn't valid for negative matrices. Isolate the fix to the Matrix.to_quaternion() instead of changing mat3_normalized_to_quat to prevent unintended side effects elsewhere.
2022-08-24Merge branch 'blender-v3.3-release'Campbell Barton
2022-08-24Fix error from 21ea4995585931ad54f51c1878c06c526c3355a5Campbell Barton
Was not using the absolute index for comparison, breaking the id_management test.
2022-08-24Cleanup: formatCampbell Barton
2022-08-23Fix T100494: Broken sculpt hide status undo/redoHans Goudey
Caused by 2480b55f216c31 using the undo step indices instead of the indices of vertices in the mesh, causing the hide values to be swapped around randomly in the mesh.
2022-08-23Fix: Write hide status attributes for undo stepsHans Goudey
We don't convert to the old mesh format when writing undo steps to avoid overhead. So we can't skip writing the hide attributes then.
2022-08-23Fix T100482: Face Set visibility reset after savingHans Goudey
The face hide attribute wasn't created in order to store the visiblity from the face sets, it was only updated if it already existed.
2022-08-23Cleanup: Move paint.c to C++Hans Goudey
2022-08-23Cleanup: Use utility to write palette color listHans Goudey
2022-08-23Cleanup: Avoid using invalid attribute domainHans Goudey
The number of attribute domains isn't an attribute domain, so storing ATTR_DOMAIN_NUM in a variable with an eAttrDomain type isn't correct. In the cases it was used, the value wouldn't be accessed anyway.
2022-08-23Depsgraph: use more fine grained update tags for scenesBrecht Van Lommel
Ref D15710, this avoids unnecessary sequencer updates for some operations.