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-11-09Fix T102306: buildtime shader compilation option fails under WaylandCampbell Barton
libdecor (for window decorations) was crashing on exit with the shader builder, avoid the crash by calling the "background" system creation function which doesn't initialize window management under Wayland.
2022-11-09Cleanup: add function attributes to BLI_sprintfCampbell Barton
Quiet warning, suggesting to use attributes with GCC.
2022-11-09Fix T101848: Zeroed matrix converted to a quaternion results in rotationCampbell Barton
Re-order checks to ensure a zeroed matrix results in a quaternion without rotation. Also avoid some redundant calculation where the 'trace' was calculated but not used, flip the scaling value early on instead of negating the quaternion after calculating it.
2022-11-09Hide ratio when using error margin mode in decimate keyframes operatorColin Basnett
This fixes a bug in the function that determines what properties to show on the Decimate Keyframes operator. Before the fix, the "Remove" (i.e., `factor`) slider was visible no matter what "Mode" was being used. This meant that the slider was visible and modifiable when it had no effect, creating confusion. Reviewed By: sybren Differential Revision: https://developer.blender.org/D16318
2022-11-08Fix VSE: Effect strip flickers when moving left handleRichard Antalik
The issue was caused by refactoring, see 7afcfe111aacc8bc. Function `SEQ_transform_fix_single_image_seq_offsets` modified offsets after handle was moved, but this was not done correctly. Remove function mentioned above and move strip start when moving left handle of strips that have only single frame of content by design (image, text, color, ...).
2022-11-08Geometry Nodes: Add preferred domain to many field inputsHans Goudey
The preferred domain is used to decide which domain the viewer node should use when set to "Auto" domain. This commit adds it to some curve input nodes and the curve and mesh topology nodes. This makes debugging node setups with these nodes a bit faster and less frustrating.
2022-11-08Fix T102358: Sample curve node all curves factor mode incorrectHans Goudey
The "all curve" sampling is implemented as two functions internally. The first finds which curve each "global" sample should be on. Then the second is the regular evaluation and sampling in that curve. The first operations creates lengths, but they were processed as factors when passed to the second function.
2022-11-08Fix Cycles error with runtime compilation when there is no path to OptiX SDKGon Solo
If no OPTIX_ROOT is set, nvcc fails to compile because there is a stray "-I" in the arguments. Detect if the include path is empty and act accordingly. Differential Revision: https://developer.blender.org/D16308
2022-11-08Fix T102328: Incorrect strip state after copyingRichard Antalik
Effect strip start position was translated twice. This is caused by recent refactoring, see 7afcfe111aacc8bc. Don't change `seq->start` of attached effect strips during translation and only rely on `seq_time_update_effects_strip_range` function.
2022-11-08Fix T102003: Spline parameter length wrong for NURBSHans Goudey
The node has always be a bit confusing for the NURBS case, since it uses the distance between control points since the evaluated/control point mapping isn't obvious, but it also went above 1, which wasn't correct. Instead, retrieve the total length from the point lengths calculated in the previous step. The results should be the same for other curve types.
2022-11-08Geometry Nodes: Fix alignment of exposed properties in the modifierLeon Schittek
The spacing and alignment of the properties in the geometry nodes modifier could vary depending on the type of the socket or whether the input can accept attributes. Wrapping each property in its own `row` layout allows us to make the spacing and alignment between them consistent. Reviewed By: Hans Goudey Differential Revision: http://developer.blender.org/D16417
2022-11-08Fix T102318: crash smoothing vertex weights in editmodePhilipp Oeser
Not quite sure why {rBd37d17019c52} forcefully set the Mesh to NULL if in editmode, but this caused the attribute lookup to fail/crash. Now only use the attribute if we have the mesh (reducing the scope where it is used), bmesh editmode case does not rely on it. Maniphest Tasks: T102318 Differential Revision: https://developer.blender.org/D16406
2022-11-08Fix: improve CD_ASSIGN handling when adding custom data layerJacques Lucke
Previously, the code would incorrectly free the passed in custom data layer even when `CD_ASSIGN` was not used. Now the function actually supports assigning the data to the layer. This only fixes the case for custom data layer types that only support a single layer like `CD_MEDGE`. Informally reviewed by Hans Goudey.
2022-11-08Fix T101894: only do FCurve-select if no keys have been touched previouslySybren A. Stüvel
Change the behaviour of circle select on FCurves: - Before any key is touched, the behaviour is as it was (key included in circle-select area → select it; otherwise → select entire curve) - If any key has been touched, an internal option (`use_curve_selection`) is flipped and selecting the entire curve is disallowed. This ensures that once a key changes selection state, it's no longer possible to select the entire curve. This allows dragging over keys and subsequently drag over a keyless part of the curve. Reviewed By: RiggingDojo, troopy28 Maniphest Tasks: T101894 Differential Revision: https://developer.blender.org/D16307
2022-11-08Cleanup: fix compiler warning with openjpeg 2.5Brecht Van Lommel
2022-11-08Fix T102312: anchored brush texture overlay draws in wrong placePhilipp Oeser
Rotation and scale was done around the wrong center (always around mouse position) in paint_draw_tex_overlay [on the other hand, paint_draw_cursor_overlay already got the center right]. Now make the center dependent on UnifiedPaintSettings "draw_anchored". Maniphest Tasks: T102312 Differential Revision: https://developer.blender.org/D16418
2022-11-08Fix T85870: ColorRamp Keyframes crash BlenderJulian Eisel
The color-band needs to do some special, rather awkward updating of the UI state when certain values are changed. As @lichtwerk noted in the report, this was done to the wrong buttons. Now lookup the proper buttons, and don't assume that `uiItemR()` only adds a single button (which often isn't the case).
2022-11-08Fix deprecation warnings about printf() on macOSSergey Sharybin
The new Xcode 14.1 brings the new Apple Clang compiler which considers sprintf unsafe and geenrates deprecation warnings suggesting to sue snprintf instead. This only happens for C++ code by default, and C code can still use sprintf without any warning. This changes does the following: - Whenever is trivial replace sprintf() with BLI_snprintf. - For all other cases use the newly introduced BLI_sprintf which is a wrapper around sprintf() but without warning. There is a discouragement note in the BLI_sprintf comment to suggest use of BLI_snprintf when the size is known. Differential Revision: https://developer.blender.org/D16410
2022-11-08Fix T100988: flickering when using sculpt brush in drag dot modeJacques Lucke
Differential Revision: https://developer.blender.org/D16305
2022-11-08Fix T102242: Underline shortcut keys not working/appearing in sub-menuJulian Eisel
Upon closer inspection, looks like `UI_BLOCK_NUMSELECT` was previously set for all code paths and 99e5024e97f1 removed it from one.
2022-11-08Cleanup: format, remove commented code & unused variableCampbell Barton
2022-11-08Workaround crash generating Python API documentationCampbell Barton
Avoid accessing freed memory from dynamically allocated EnumPropertyItem arrays. Rely on the memory being held by the iterator which isn't the case when it was converted to a tuple.
2022-11-08Fix invalid function signatures for PySequenceMethods callbacksCampbell Barton
Function casts hid casting between potentially incompatible type signatures (using int instead of Py_ssize_t). As it happens this seems not to have caused any bugs on supported platforms so this change is mainly for correctness and to avoid problems in the future.
2022-11-07Fix T102329: assert when cutting node tree linkJacques Lucke
2022-11-07Fix T101526: assert due to wrong node tree owner idJacques Lucke
2022-11-07 Fix T101533: Wrong DoF when a non-camera object is the active cameraMiguel Pozo
Make sure non-camera data is not casted to a Camera pointer. Solution suggested by Damien Picard (@pioverfour).
2022-11-07Fix T100872: restrict Python API on built-in nodesJacques Lucke
Differential Revision: https://developer.blender.org/D16304
2022-11-07Fix T102324: reverse curve node breaks crazy space editingJacques Lucke
2022-11-07Fix T102311: crash when opening node add menu with assetsJacques Lucke
2022-11-07Fix T102053: snap fails with instances of geometry nodesGermano Cavalcante
As instances are often generated geometries, we cannot rely on the data provided by `DupliObject::ob`. Use `DupliObject::ob_data` when possible. This required a major refactor in the code as the output variables are now gathered in context and easier to access.
2022-11-07Fix potentially uninitialized memory usageGermano Cavalcante
`nearest_world_tree_co` allows null parameter, so the `index` variable isn't really needed and doesn't even need to be initialized.
2022-11-07Transform: remove SnapData cache for meshesGermano Cavalcante
All cache needed is already stored in `Mesh.runtime`.
2022-11-07Fix Curves Smooth modifier appears to be able to act on control pointsPhilipp Oeser
This is not the case though, the modifier act explicitly on mesh edges, if no tesselated mesh is provided, it would simpy early out and do nothing. Now always disable the "Apply on Spline" option with a tip that this modifier can only smooth the tesselated curve (not the underlying curve control points). Similar to rB1a6b51e17502. Fixes T102060. Maniphest Tasks: T102060 Differential Revision: https://developer.blender.org/D16386
2022-11-07Fix File Browser Move Bookmark malfunction if no item is selectedPhilipp Oeser
The operator was acting on non selected items (wasnt checking SpaceFile bookmarknr for being -1) which could end up removing items even. Now sanatize this by introducing proper poll (which returns false if nothing is selected). Fixes T102014. Maniphest Tasks: T102014 Differential Revision: https://developer.blender.org/D16385
2022-11-07Fix T102238: double free when storing attribute on empty geometryJacques Lucke
2022-11-07Fix T102316: blank color-space menu drop-downsCampbell Barton
Regression in [0] needs further investigation (building docs may crash again). This effectively reverts [0], however de-duplicating the color-space enum can be kept. [0]: 037b771e1af53b0f87b73a9fe01e8e660267ec81
2022-11-06Fix T102153: crash when muting node group with active viewerJacques Lucke
2022-11-06Fix T102144: missing validation of spline resolutionJacques Lucke
2022-11-06Fix T102292: deadlock in geometry nodes evaluation with task isolationJacques Lucke
As described in the comment on `BLI_task_isolate`, deadlocks can happen when isolation is used with threading primitives that separate spawning tasks from executing them. All threads are waiting the tasks to complete but no thread is able to continue working due to task isolation. The fix is to not pass lazy-threading hints through task isolations. This way isolated regions can't create new tasks in a scheduler further up the call stack. This may lead to minor slowdowns because less threading may be used. It's generally possible to get rid of the slowdown again by sending the lazy-threading hint before entering the isolated region.
2022-11-06Geometry Nodes: fix missing curve cacheJacques Lucke
2022-11-05Fix crash building Python API docsCampbell Barton
Color space conversion item-function missed checking the context was NULL to return a static array. This caused freed memory access when building docs.
2022-11-05Cleanup: quiet unused argument warningCampbell Barton
2022-11-04Fix T99641: Assert hit when splitting video sequencer area horizontallyRichard Antalik
Don't draw channels region when height is 0.
2022-11-04Fix T102232: bridge edge loop crashCampbell Barton
Many connected edge loops could result in two edge loops sharing vertices. This is more of a workaround, the reason for two edge loops sharing vertices could be prevented some other way. Add this check since it's a straightforward solution, furthered investigation noted as a TODO.
2022-11-04Fix T102216: Change `min_ff` to `max_ff` in the return of `BlendType max`Evan Wilson
BlendType max incorrectly returns the minimum in BLI_color_mix.hh This differential fixes it to return the maximum. Maniphest Tasks: T102216 Ref D16364
2022-11-04Fix T102218: Baked f-curves display incorrectly when normalizedColin Basnett
This fixes T102218, where baked f-curves would display incorrectly when normalized. This bug was a result of the code making no effort to determine the y-range of baked f-curves, so it fell back to a default that looked horrible. I've added specific handling for finding the y-range of each f-curve (I extracted this functionality out to a new function, `fcurve_scene_coord_range_get`, for organization purposes). In addition, a minor optimization was made to eliminate redundant range-checks when in preview range mode. {F13838304} Reviewed By: sybren Maniphest Tasks: T102218 Differential Revision: https://developer.blender.org/D16363
2022-11-04Fix missing call to AttributeWriter::finish with paint vertex selectionCampbell Barton
2022-11-04PyDoc: Make rst files more readableAaron Carlisle
This commit reduces the amount of white space generated and keeps parameter documentation of a single line. This makes the resulting rst files easier to read in the case of debugging. This was useful while looking into T97464
2022-11-04Cleanup: quiet unused argument warningCampbell Barton
2022-11-04Fix T101686: WPaint + Pose select fails with GPU depth-picking disabledCampbell Barton
Regression in [0], however the primary purpose of that code was to cycle away from the active object (behavior which was intentionally removed, see: T96752). This broke weight-paint + pose-selection (Ctrl-LMB) when the GPU depth picking preference was disabled. Causing selection to pick the mesh object instead of the pose bones. This de-selected the armature, making the pose bones unselectable instead of selecting the pose bone as intended. Adding the old code back (restricting it to weight-paint mode) fixes the bug but reintroduces fairly involved logic unnecessarily. Instead, prioritize bone selecting when in weight-paint & pose mode (previously this was only done in pose-mode). [0]: b1908f2e0b23988627772f6a6d968d8351dca6d7