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 T99872: Crash Loading Embedded Fonts - 3.3blender-v3.3-releaseHarley Acheson
Ensure kerning cache exists when loading embedded fonts --- When loading embedded fonts from memory the font->kerning_cache is not created and so we get a crash if the font does support kerning. This was not caught because the loading of packed fonts was not actually doing anything in VSE until {523bc981cfee}. We have since consolidated `blf_font_new` and `blf_font_new_from_mem` into a single function so that they cannot get out of sync like this any more. So this fix is specific to Blender 3.3. But we can add this as a candidate for corrective release 3.2.3 Reviewed By: brecht Maniphest Tasks: T99872 Differential Revision: https://developer.blender.org/D15704
2022-10-26Fix T99997: Calling teleport without waiting for the previous event disables ↵Pratik Borhade
gravity During teleport event, gravity is disabled and WalkMethod is stored in `teleport.navigation_mode` which is used later to reset the status after execution. Calling teleport events consecutively will change the initial WalkMethod value. So update it only on the first call. Also remove `else condition` as it stops the previously running teleport when the new teleport call fails to find a hit point. Reviewed by: dfelinto, mano-wii Differential Revision: https://developer.blender.org/D15574
2022-10-26Fix T101903: Crash when deleting library in some cases.Bastien Montagne
Remapping in batch deletion could end up calling viewlayer resync code on partially invalid BMain (some IDs still in Main using IDs removed from Main). Think this code can actually be further optimized, but this fix should be safe enough for 3.3 (and potentially 2.93). Thanks to Jeroen (@jbakker) for the initial investigation.
2022-10-26Fix T99450: Animated Holdout not updating on frame changeLukas Stockner
Problem here was that layer_collection_objects_sync wasn't called when the holdout property is updated due to frame change, so the changed visibility flag was never applied to ob->base_flag. Turns out there's no real reason to handle the per-object holdout property through the layer system. So, instead of merging both the layer holdout and object holdout into base_flag and checking that from the render engines, only handle the layer holdout (which can't be animated, so no issue here) through base_flag and explicitly also check the object holdout in the render engines.
2022-10-26Fix T101262: Crash in spreadsheet selection filter with empty domainHans Goudey
The BMesh selection virtual array was empty. There are a few different places we could add an "empty" check here, but at the top of the function is the simplest for now.
2022-10-26Fix T101679: Duplicate objects are created when 'Make' override is called on ↵Bastien Montagne
existing override in 3DView When the active selected object in the 3DView is already a local liboverride, only perform the 'clear system flag' process on selected objects, there is no point in trying to create an override out of it.
2022-10-26ImageEngine: Clamp image data to fit half float range.Jeroen Bakker
When image data exceeds half float ranges values are set to +/- infinity that could lead to artifacts later on in the pipeline. Color management for example. This patch adds a utility function `IMB_gpu_clamp_half_float` that clamps full float values to fit within the range of half floats. This fixes T98575 and T101601.
2022-10-26Fix T101709: Proportional editing being disabled in NLA Editor redo panelGermano Cavalcante
Do not save the "use_proportional_edit" property if it is not supported. This prevents it from being automatically disabled. And hide "use_proportional_edit" in `SPACE_NLA`
2022-10-26Fix T101721: Knife project crashesCampbell Barton
The crash was caused by [0] however knife-project functionality has been incorrect since [1] which would loop over each edit-mode object and run the knife project function which operated on all edit-mode objects too. - Resolve the crash by postponing face-tessellation recalculation until the knife tool has cut all objects - Objects occluding each other is now supported (an old TODO and something that was never supported). [0]: 690ecaae208d5f72217c165621d0d036e4029e86 [1]: 6e77afe6ec7b6a73f218f1fef264758abcbc778a
2022-10-26GPencil: Fix unreported Close Stroke operator did not select new pointsAntonio Vazquez
When use the close stroke, the new created points were not addedd to the selection.
2022-10-26Fix T101685: OBJ importer does not assign proper material if "usemtl" is ↵Aras Pranckevicius
before "o" The importer logic was wrongly resetting "current material name" upon encountering a new object ("o" command). However as per OBJ specification, this is incorrect: > Specifies the material name for the element following it. Once a > material is assigned, it cannot be turned off; it can only be > changed. Fixes T101685. Test coverage for this was added in svn tests repo.
2022-10-26FIX T101275: Regression in NLA causes Actions to be ignored by Context menu ↵Nate Rupsis
(I.e influence, etc) Reviewed By: sybren Differential Revision: http://developer.blender.org/D16154
2022-10-26Fix T101547: Add update notifiers in dopesheet and timeline selection operatorsAmelie Fondevilla
Updates the function checking if a container can have grease pencil layer keyframes, to account for dopesheet in main mode, and timeline. Reviewed By: Sybren A. Stüvel Differential Revision: http://developer.blender.org/D16132
2022-10-26Refactor: adding function to check if an animation container has grease ↵Amelie Fondevilla
pencil layer keyframes. Used in action_select to refactor the selection operators. No functional changes. Reviewed By: Sybren A. Stüvel Differential Revision: http://developer.blender.org/D16168
2022-10-26Fix T100953: Zooming with NDOF is inverted in the camera viewCampbell Barton
Use convention for applying zoom in other 2D views.
2022-10-17DRW: fix use of potentially uninitialized variableGermano Cavalcante
Bug introduced in rB6774cae3f25b. This causes undefined behavior in `DRW_state_draw_support()` making overlay depth drawing unpredictable.
2022-10-17Fix T101618: Freeze when reloading a library in certain situationPhilipp Oeser
Freeze happened when reloading a library while having an Object property with a custom getter function defined in Python. Just piggybacking on rB62eb21e3ce87, this just applies the same fix (use the BPy_BEGIN/END_ALLOW_THREADS macros) to relading from RNA/py. All credit goes to @brecht and @mont29. Maniphest Tasks: T101618 Differential Revision: https://developer.blender.org/D16167
2022-10-17Fix T101492: UV stitch crash (more than 32 objects selected)Philipp Oeser
Crash happened when adjusting operator props in Adjust Last Operation panel. When there are more than 32 objects selected in muti-object-editmode, we are running into RNA array limit (`objects_selection_count` is defined as an RNA array (which can only hold 32 entries, see `RNA_MAX_ARRAY_LENGTH`), leading to reading random memory errors. While there might be ways to make this work with more than 32 selected objects (e.g. by instead using a collection, or investigate supporting dynamic sized arrays for run-time RNA), this patch only cancels the operator with a report message (instead of crashing). Maniphest Tasks: T101492 Differential Revision: https://developer.blender.org/D16115
2022-10-17LineArt: Fix "No intersection" flicker.YimingWu
The flicker was caused by the failure for checking both triangles for flags. Now fixed.
2022-10-17Fix T101517: GPencil strokes snap to origin in a Scale value is on 0Antonio Vazquez
The problem was the conversion to object space converted the points to zero. Now, the new function `zero_axis_bias_m4` is used in order to add a small bias in the inverse matrix and avoid the zero points. A known math issue is the stroke can be offsetted if the scale is set to 1 again. In this case apply the scale to reset to 1. Differential Revision: https://developer.blender.org/D16162
2022-10-17Fix T101591: mathutils.geometry.intersect_line_line 2D vector errorCampbell Barton
Uninitialized stack memory was used when intersecting 2D vectors.
2022-10-17New math function to add small bias to zero axisAntonio Vazquez
In some situations the zero axis can produce problems and need to add a small bias. This function adds a small bias using the orthogonal result of the others valid axis. Reviewed By: fclem Differential Revision: https://developer.blender.org/D16158 6d
2022-10-17Fix T101405: Deleting a baked action results in an error.Bastien Montagne
RNA code to create new actions did not properly remove the extra user set by default, as done in other `new` callbacks of other ID types. NOTE: Mask ID had the same issue, also fixed in this commit. NOTE: At some point this needs to be properly fixed, default super-low level ID creation code should simply not add a 'default' user, this is extremely bad design and forces higher-level code to do all kind of extra work to get rid of it half of the time, in very unclear and confusing ways and places.
2022-10-17Fix T101306: crash when calling Delete command for Library OverridePhilipp Oeser
Was not passing user_data to id_override_library_delete_hierarchy_fn. Also correct a wrong assert. Greenlit by @mont29 in T101306. Should also go into 3.3 LTS.
2022-10-17Fix T101447: Hold split not working correctlyRichard Antalik
Caused by incorrect conflict resolution in commit 302b04a5a3fc0e76.
2022-10-17Fix T100330: Remove Render Slot not working for first slotLukas Stockner
This bug was caused by the weird ownership logic for render results. Basically, the most recent render result is owned by the Render, while all others are owned by the RenderSlots. When a new render is started, the previous Render is handed over to its slot, and the new slot is cleared. So far, so good. However, when a slot is removed and happens to be the one with the most recent render, this causes a complication. The code handles this by making another slot the most recent one, along with moving its result back to the Render, as if that had always been the most recent one. That works, unless there is no most recent render because you haven't rendered anything yet. Unfortunately, there is no way to store "there hasn't been a render yet", so the code still tries to perform this handover but can't. Previously, the code handled that case by just refusing to delete the slot. However, this blocks users from deleting this slot. But of course, if there hasn't been a render yet, the slots will not contain anything yet, so this entire maneuver is pointless. Therefore, the fix for the bug is to just skip it altogether if there is no Render instead of failing the operation. Technically, there is a weird corner case remaining, because Renders are per-scene. Therefore, if a user renders images in one scene, switches to a different scene, deletes a slot there and then switches back, in some situations the result in the deleted slot might end up in the next slot. Unfortunately this is just a limitation of the weird split ownership logic and can't just be worked around. The proper fix for this probably would be to hand over ownership of the result from the Render to the RenderSlot once the render is done, but this is quite complex. Also fixes a crash when iuser->scene is NULL.
2022-10-17Fix T101499: Do not allow unlinking objects from linked collections.Bastien Montagne
2022-10-17Bump version cycle for Blender 3.3.2 candidatePhilipp Oeser
2022-10-04Bump version cycle for Blender 3.3.1 release.v3.3.1Thomas Dinges
2022-10-04Fix T101233: Crash on deleting the object in outliner due to null pointer accessPratik Borhade
After rB188f7585a183 deleting the object results in crash due to null pointer access if collections are filtered out Reviewed by: mont29 Differential Revision: https://developer.blender.org/D16031
2022-10-04Fix T101510: Incorrect context for running data unlink from template IDJulian Eisel
There was already a fix for this, but it got broken again with c973d333da31.
2022-10-04Fix T101559: Rain Test Animation demo crashes Blender 3.3Bastien Montagne
Update to liboverride creation code to add support of keeping active object forgot to consider case when there is no known/given view layer. NOTE: similar fix to rBc3003b4346fd5c5 in master.
2022-10-03Fix T101564: GPencil: Selecting imprecise if transforms are animatedAntonio Vazquez
The check was doing with the original point and must be the evaluated point.
2022-10-03Fix T101548: GPencil new lines in Multiframe editing appear as OnionAntonio Vazquez
The problem was the eval data update only occurs for the actual frame and in this case must be for all frames.
2022-10-03Fix T101487: New OBJ importer handles UVs incorrectly when some faces of an ↵Aras Pranckevicius
object don't have UVs The UV data filling logic was incorrectly just skipping over loop entries that don't have a UV coordinate, instead of assigning the default zero UV for them. This was a problem only for meshes where some faces did have UVs, but some other faces did not (T101487).
2022-10-03Scew Modifier: Remove eager normal calculationHans Goudey
The screw modifier calculated normals eagerly (whether or not the next modifier actually used them). However, this was incorrect and set invalid normals. It isn't necessary because they can be calculated later anyway. The potential performance improvement isn't worth the complexity or maintenance burden. Fixes T101075 Differential Revision: https://developer.blender.org/D16073
2022-09-30Fix missing Outliner updates when adding nodetreesPhilipp Oeser
When e.g. grouping nodes into nodegroups, these would not show up immediately in the Outliner (Blender File / Data API view). Now send (unique combination, not used elsewhere) notifiers (and listen for these in the Outliner). Differential Revision: https://developer.blender.org/D16093
2022-09-30Fix T101341: make nodegroups active input/output non-animatablePhilipp Oeser
Active UI list index is usually not animatable. Here specifically, the active list index is oly used for operators acting on a specific (active) socket. Note other props here were already made non-animatable in rB1d3b92bdeabc. Maniphest Tasks: T101341 Differential Revision: https://developer.blender.org/D16077
2022-09-30Fix T101347: Curve draw fails to project to cursor depth in ortho viewsCampbell Barton
ED_view3d_win_to_3d_on_plane with do_clip enabled wasn't working in non-camera orthographic views as it didn't take into account the ray origin being centered to the view. Resolve by testing viewport clipping after the ray has been projected.
2022-09-30GPencil: Fix unreported memory leak in Fill inverseAntonio Vazquez
There was a memory leak when use inverted fill.
2022-09-30Fix T101231: Console flooded with warnings when fluid type is DomainGermano Cavalcante
Although rB67e23b4b2967 turned the problem more recurrent, the warning messages in the console always appear when `BKE_fluid_cache_free_all` is called. This is because of a bug in `BLI_filelist_dir_contents` as this function calls `BLI_strdupcat` instead of `BLI_join_dirfile` NOTE: Other places in Blender avoid this problem by making sure to add a `SEP_STR` to the end of the directory. Differential Revision: https://developer.blender.org/D16043
2022-09-30Fix: GPencil animated layer transforms evaluate wrong when identityPhilipp Oeser
Due to (optimization) checks in in `BKE_gpencil_prepare_eval_data` & `BKE_gpencil_update_layer_transforms`, updates were skipped if animation reached exact identity transforms. Now check if the matrix has changed additionally to gain proper updates. Unsure if this is the cheapest way to check for the animated state of layer transforms tbh, but I see similar checks elsewhere. Fixes T101164. Maniphest Tasks: T101164 Differential Revision: https://developer.blender.org/D16018
2022-09-30Fix curves sculpting in deformed space when using Subdivide nodePhilipp Oeser
Needs a call to remember_deformed_curve_positions_if_necessary, missed in rB1f94b56d7744. Thx @JacquesLucke for the solution! Differential Revision: https://developer.blender.org/D16078
2022-09-30Fix typo and and incorrect property initializationGermano Cavalcante
Error in rB236fda7faf58
2022-09-30Fix T101343: useless Snapping menu in transform operatorsGermano Cavalcante
Changes: - Use the "snap_elements" property only for operators that support snapping to geometry. - Remove unused properties: - "use_snap_to_same_target", - "snap_face_nearest_steps"). - Fix property with wrong name "use_snap_selectable_only" -> "use_snap_selectable" - Fix use of dependent property flags. - Remove redundant initialization of variables - Simplify `poll_propety`. Only the "use_snap_project" is not hidden. >>! In rBc484599687ba it's said: > These options are needed for Python tools to control snapping without requiring the tool settings to be adjusted. If that's the case, there doesn't seem to be any need to display them in the redo panel. Therefore: - Hide snapping properties in redo panel. Many properties have been added that can be independent of ToolSettings. Therefore: - Save snapping properties in the operator itself. For Redo.
2022-09-30Fix T101370: GPencil Grab Sculpt crash after bake transform animationAntonio Vazquez
The problem was the duplicated strokes had wrong pointers to the original stroke.
2022-09-30Fix T101317: GPencil separate Active layer freezes blenderAntonio Vazquez
The error occurs only when the layer is empty.
2022-09-30Fix T101109: Animation on nodes problems when dealing with Node GroupsPhilipp Oeser
Whenever animation on nodes was transfered to/from nodegroups (grouping/ ungrouping/separating) via BKE_animdata_transfer_by_basepath, it was possible to create new nodes with the same name (in the formerly same path -- see report for an example of this) and animation from the original node was still performed on them. Issue went away after save/ reload. In order to fully update the action, a depsgraph is now performed on the action (similar to what is done when renaming for example). Maniphest Tasks: T101109 Differential Revision: https://developer.blender.org/D15987
2022-09-30Fix T101046: missing DEG update changing bone layers in editmodePhilipp Oeser
Following {T54811} (and {rBbb92edd1c802}), DEG updates have been added to the various operators. This has also been done for the layers operators (see {rBf998bad211ae}, `ARMATURE_OT_bone_layers` has been marked done in T54811). However, instead of `ARMATURE_OT_bone_layers`, the update tagging actually happened for `POSE_OT_bone_layers`. Now do this for `ARMATURE_OT_bone_layers` as well (keep it for `POSE_OT_bone_layers`, dont think this is wrong there either). Maniphest Tasks: T101046 Differential Revision: https://developer.blender.org/D15969
2022-09-30Fix T100141: Header Alignment of New EditorsCampbell Barton
Revert part of [0] which changed logic for scaling 2D regions when the window resize. This re-introduces T72392 which can be fixed separately. [0]: 6243972319289d86c70ce9946d10909e7eddfdaf