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
2021-03-25Fix T86867: Node Editor: Avoid deselect-all triggering on every box-Philipp Oeser
select In 'Set/Replace' mode this is not a problem, but 'Extend' or 'Subtract' modes were useless with the current behavior. The problem here is that 'node.select' fires before 'node.select_box' (which is fine) but deselects immediately on click. This issue has come up before in other editors, see {T70457} {rB395dfff103e1} {rBa8ea1ea1b7d5} Now delay deselection in empty space to mouse release (same as done in before mentioned report). also related: ref T57918 ref T63994 Maniphest Task: T86867 Differential Revision: https://developer.blender.org/D10801
2021-03-25Fix T86852: Allow Font Style Changes to Affect Spreadsheet Text SizeHarley Acheson
Replacing a hard-coded font size with font style widget size so it can be set by user. Differential Revision: https://developer.blender.org/D10819 Reviewed by Dalai Felinto
2021-03-25GPencil: Fix compiler warning when HARU and PUGIXML are disabledAntonio Vazquez
The function only must be included if Haru or Pugixml is enabled.
2021-03-25Fix T86796: moving the cursor in the UV Editor does not take aspect intoPhilipp Oeser
account UV coords are scaled by aspects (see UVsToTransData). This also applies for the Cursor in the UV Editor which also means that for display and when the cursor coords are flushed (new 'recalcData_cursor_image' was added for this), these need to be converted each time. Maniphest Tasks: T86796 Differential Revision: https://developer.blender.org/D10817
2021-03-25Make moving the cursor in UV Editor a 2d edit transformPhilipp Oeser
This flags moving the cursor in the Image Editor T_2D_EDIT with the following benefits: - dissallowing e.g. Z constraints - improving the header display: -- it should not use scene units -- now respects if we are moving in pixel coords or not part of upcoming fix for T86796 ref D10817
2021-03-25Fix for T86613: Renaming in outliner doesn't trigger rename eventErik Abrahamsson
When subscribing to name-changes through the API, the event doesn't trigger if the object is renamed in the outliner. Fixed by publishing the RNA changes. Reviewed By: lichtwerk Ref D10732
2021-03-25Fix T86921: Executing "Operator Cheat Sheet" Crashes BlenderPhilipp Oeser
This was only happening without an active object. The "Operator Cheat Sheet" operator collects info about all operators, and as part of that executes the callbacks to create dynamic enums. The callback to enumerate the geometry operators (introduced in rB370d6e50252b) attribute domains depends on a context object. If this isn't available, we just have to return `DummyRNA_NULL_items`. Maniphest Tasks: T86921 Differential Revision: https://developer.blender.org/D10814
2021-03-25Revert "Cleanup: Fix unused-private-field warning."Ankit Meel
This reverts commit 43c48965d7cf87dd00ccf8714d2f6d08ffa4c474. It created a new warning on GCC: -Wattribute (ignored attribute) as GCC doesn't warn about unused private fields.
2021-03-25Geometry Nodes: rename attribute domainsJacques Lucke
This patch renames two domains: * `Polygon` -> `Face` * `Corner` -> `Face Corner` For the change from `polygon` to `face` I did a "deep rename" where I updated all (most?) cases where we refere to the attribute domain in code as well. The change from `corner` to `face corner` is only a ui change. I did not see a real need to update all code the code for that. It does not seem to improve the code, more on the contrary. Ref T86818. Differential Revision: https://developer.blender.org/D10803
2021-03-25UI: rename node editor sidebar categoriesJacques Lucke
* `Node` -> `Group` * `Item` -> `Node` Differential Revision: https://developer.blender.org/D10804
2021-03-24GPencil: Fix wrong file extension when exporting SVGAntonio Vazquez
Due a code cleanup it was using .PDF all times.
2021-03-24Cleanup: Fix unused-private-field warning.Ankit Meel
2021-03-24Cleanup: Remove unecessary enum funcsHans Goudey
The separator can be added directly in the enum items rather than in a callback. Differential Revision: https://developer.blender.org/D10806
2021-03-24UI: Use correct property split ratio for node socket buttonsHans Goudey
This makes the buttons drawn on nodes for unconnected string and color sockets draw with the correct 40% ratio for the label split rather than the old 50% ratio not used elsewhere in Blender anymore. The benefit is a cleaner look, because the button edges line up better with others, and a bit more space to type in attribute names.
2021-03-24Fix (unreported) Outliner: missing override tree items for collections in ↵Bastien Montagne
Viewlayer view. Probably lost at some point in recent refactor moving the whole tree building towards a more modular, C++ code.
2021-03-24Fix T86884: Don't remove the "line art object add" enum itemSebastian Parborg
We would not add the "object line art" enum to the operator enum list, if there were no active object in the scene. This would make it impossible to call this operator from python code as the enum would we hidden when we were not in a viewport context. Always make the operator available, having no active object is not a strict requirement for the operator to work, so expose it always.
2021-03-24GPencil: New modules for Import and ExportAntonio Vazquez
This patch adds support to export and import grease pencil in several formats. Inlude: * Export SVG * Export PDF (always from camera view) * Import SVG The import and export only support solid colors and not gradients or textures. Requires libharu and pugixml. For importing SVG, the NanoSVG lib is used, but this does not require installation (just a .h file embedded in the project folder) Example of PDF export: https://youtu.be/BMm0KeMJsI4 Reviewed By: #grease_pencil, HooglyBoogly Maniphest Tasks: T83190, T79875, T83191, T83192 Differential Revision: https://developer.blender.org/D10482
2021-03-24Fix T86894: Geometry nodes drag and drop creates a duplicate nodeCharlie Jolly
Added a condition to the poll so that it ignores drag and drop on the button. The Paste Name operator is just not implemented. Doesn't work for shading nodes either. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D10769
2021-03-24Fix T86722: Missing updates after geometry nodes drag and dropCharlie Jolly
Add missing call to ED_node_tag_update_nodetree which solves the missing update on initial drag. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D10769
2021-03-24Fix T86895: bpy.ops.curve.select_all(action='INVERT')Dalai Felinto
The operator should not assume v3d is valid.
2021-03-24Cleanup: Use const in region queriesJulian Eisel
2021-03-24Cleanup: Move button context based operator poll into utility functionJulian Eisel
Using the button context for operators is useful for other cases as well (where the operator isn't the button operator itself). For example we'll need this for the asset view UI template, where there will be additional operators that should be able to act on button context.
2021-03-24Cleanup: remove stdio.h header from MEM_guardedalloc.hCampbell Barton
This was included for `FILE *` which isn't used in the header. Ref D10799
2021-03-24Cleanup: use new BLI_assert_unreachable macroCampbell Barton
2021-03-23Fix T86753: Connected Proportional editing with individual origins using ↵Germano Cavalcante
different orientation than set The problem happened when the selection only allowed "single_islands" (only vertices are selected, no edges or faces). The result of `is_zero_v3(v->no)` was erroneously being compared to `0.0f` This commit corrects the wrong condition and optimizes it by adding a earlier return when the islands don't need to be calculated. (It also improves the code's readability by joining some variables in the `struct TransIslandData`).
2021-03-23Fix T86073 : Ctrl clicking 3 times without selecting any of the verts in ↵Germano Cavalcante
NurbsPath leads crash. Crash occurs at `assert(builder->index_len < builder->max_index_len)`. Non-bezier nurbs were being created with abnormal values causing the causing edge count in the draw manager to be incorrect. This commit also deduplicates and adds descriptions to the code. Thanks @PratikPB2123 for pointing out where the error is.
2021-03-23Outliner: Do not crash when drawing unknown view type.Bastien Montagne
Instead default to Viewlayer view.
2021-03-23Spreadsheet: show comma separators in number of rowsJacques Lucke
2021-03-23FIX: Incorrect link drawing after link cutting toolFabian Schempp
Sorting of links on multi-input sockets where not recalculated after using the knife operator. Added call to resort function before cutting operator finishes. Reviewer: Jacques Lucke Differential Revision: https://developer.blender.org/D10783
2021-03-23Fix crash transforming sequencesCampbell Barton
Regression in 3d9ee83d88186248fb66823662a04d1a0429e1ae
2021-03-23Cleanup: de-duplicate gpencil logic to ensure materialsCampbell Barton
- Rename: `BKE_gpencil_object_material_get_index_name`, to `BKE_gpencil_object_material_index_get_by_name` Matching `BKE_gpencil_layer_get_by_name`. - Move logic to ensure named materials into a new function: `BKE_gpencil_object_material_ensure_by_name`
2021-03-23WM: don't set the area when toggling full-screenCampbell Barton
The stated reason for this no longer applies.
2021-03-22Fix T86822: context.collection not available in Object/Object Data PropertiesSebastian Parborg
We need to return the global context collection if it is not found in the data path. Also fix pinning of the collection tab.
2021-03-22Cleanup: Collection check return type in button_contextSebastian Parborg
2021-03-22Fix T86666: Lasso and Circle select tools selecting objects behind clip_minGermano Cavalcante
Although it works well in most cases, the algorithm to detect if a point is within the limits of the camera does not work well in othographic mode. This commit also adds the option `V3D_PROJ_TEST_CLIP_FAR` (currently unused). Differential Revision: https://developer.blender.org/D10771
2021-03-22Tracking: Fix movie file prefetch freezing interfaceSergey Sharybin
The issue was caused by the prefetch code having LOCK_MOVIECLIP lock acquired while reading frames from the movie files. The need of the lock was coming from the fact that `clip->anim` can not be accessed from multiple threads, so that was guarded by a lock. The side effect of this lock was that the main thread (from which drawing is happening) did not have any chance passing through it in the cache code because the prefetch happens so quickly. The solution is to create a local copy of the clip with its own anim handler, so that read can happen without such lock. The prefetch is slower by an absolute number in seconds (within 10% in tests here), but it is interactive now.
2021-03-22GPencil: Hide Interpolate Only Selected in Draw ModeAntonio Vazquez
This option is only valid in Edit mode. Also changed the space between options to improve UI. Reviewed by: @mendio
2021-03-22UI: Remove text for add and remove buttons in cryptomatte nodeHans Goudey
The text is unecessary and it's always cut off anyway.
2021-03-21Cleanup: fix compiling with older compiler on macosJacques Lucke
We cannot use `std::variant` yet, because not all of the compilers we support have a working version of it yet. For now, I just replaced it with multiple `std::option` which is good enough, because currently `CellValue` is only used for the cells that are actually drawn in the spreadsheet.
2021-03-21Fix failure to set transform rotate around singleCampbell Barton
Regression in 201ab7c54025afc42570ce3df3d2bb7f37fe36be
2021-03-21Cleanup: remove redundant NULL checksCampbell Barton
2021-03-21Cleanup: use static local variablesCampbell Barton
2021-03-21Cleanup: spelling, doxygen comment formattingCampbell Barton
2021-03-20Fix T86745: trace sequence keyframe offsetFalk David
The offset when creating the keyframes was set to `frame_target + i` but `i` starts iterating from the current frame number. The fix uses just `i` as the frame number. Reviewed By: antoniov Maniphest Tasks: T86745 Differential Revision: https://developer.blender.org/D10772
2021-03-20Join curves: compensate for different bevel depthsPhilipp Oeser
When joining curves, the resulting curve will inherit the bevel depth of the active curve, but the radii would stay the same which leads to changed appearance when joining. Now compensate for this taking the different bevel depths into account (if present). Was a feature request here (and I also think we had reports about this -- which were usually turned down as not-a-bug): https://blender.community/c/rightclickselect/bhhbbc/ Differential Revision: https://developer.blender.org/D10752
2021-03-20Fix issues introduced strip loading refactoringRichard Antalik
- Adding effect strip resulted in strip with no name - Adding sound strip attempted to read `fit_method` RNA property, that did not exist, causing error messages in console These issues were introduced in bbb1936411a5.
2021-03-20Fix T86355: Added effect strip has wrong lengthRichard Antalik
SEQ_add_effect_strip used SeqLoadData.image.end_frame to set end frame. This was mistake introduced in last refactoring patch. Use effect data, not image data, when adding effect strips. Reviewed By: sergey Differential Revision: D10633
2021-03-20VSE: Preview images when moving strip handlesPeter Fog
Add option to override current frame whem transforming strip handles. Option can be found in View menu of VSE preview, or in timeline when using backdrop. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10424
2021-03-19Geometry Nodes: Add geometry instances data to the spreadsheetHans Goudey
This patch adds data about instances generated by geometry nodes to the spreadsheet. The transform data is decomposed into position, rotation, and scale, and there is a name column to display the name of the instanced object or collection. This data is implemented specifically for the spreadsheet, because we're not sure that we want to expose this data as attributes for the use elsewhere. Differential Revision: https://developer.blender.org/D10770
2021-03-19Cleanup: rename x1/x2/y1/y2 to x/y/width/heightJacques Lucke