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-26LibOverride: fix bad ID relationships handling during resync.Bastien Montagne
Purely local IDs would not always be used as proper barriers when generating override hierarchy data, leading to imporperly trying to resync override IDs from other hierarchies, which would break/cause issues in case they would be duplicate overrides of the same linked data. Reported by Pablo from Sprite team, thanks.
2021-03-26LibOverride: Fix mistake in recent commit.Bastien Montagne
We do not want to re-generate auto-overrides until everything that needed to be resynced has been resynced. Otherwise it's a waste of time and guaranteed loss of some override properties. Mistake in rB9947f2095610 earlier today.
2021-03-25Cleanup: Pass instance group result vector as an argumentHans Goudey
This will allow retrieving the instance groups from multiple geometry sets and avoiding needing vectors of vectors to store the results. This is useful when retrieving instances from a multi-input socket of geometries.
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-25LibOverride: Silence noisy warnings in console.Bastien Montagne
That one skiped the move to CLOG a few weeks ago, could spam a lot in the console in some cases.
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-25BLI: simplify using DefaultHashJacques Lucke
2021-03-25BLI: fix Set.lookup_key_or_addJacques Lucke
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-25LibOverride; Fix missing re-creation of auto-generated override rules after ↵Bastien Montagne
resync. While not useful for the override system itself, this is rather important for user feedback.
2021-03-25Fix T83390: Remove temporary, for-one-release deprecation hintsSybren A. Stüvel
Revert "Point users to new location of "Show Group Colors" option", commit rB6ed6741ee35930bf81fad9a5eb6bb17eea168725. These deprecation hints were intended for one release only, and thus can be removed now.
2021-03-25Geometry Nodes: change order of domains in drop downJacques Lucke
This has been requested in D10803.
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-25Fix T86853: Critical bug in write code of CacheFile ID.Bastien Montagne
CacheFile writing code would not write generic ID data (call for it has been missing since the initial commit, rB61050f75b13e). While potentially affecting other areas (mostly CustomProperties/IDProperties), this was a critical failure for liboverrides. Also added some workaround code to allow opening broken files (though the override of the CacheFile data-block will be lost).
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: Add override keyword.Jeroen Bakker
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 broken compilation after recent GPencil commit.Bastien Montagne
rBa8a92cd15a52 was adding external libraries includes to `INC`, which is reserved to internal project includes. `INC` does not allow duplicates, and when using system libs both PugiXML and Haru headers are under the same path.
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 build error and warnings in new grease pencil IO codeHans Goudey
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-24Fix T86875: "Show on Cage" crash for geometry nodes primitivesHans Goudey
Without `calc_object_remap` turned off in the conversion to and from BMesh for the primitive nodes, the `CD_ORIGINDEX` custom data layer has incorrect values. By using a different function to do the conversions, we can avoid this problem. Thanks to Jacques for finding the fix here. Differential Revision: https://developer.blender.org/D10805
2021-03-24GPencil: Fix unreported crash when apply Lattice modifierAntonio Vazquez
This error was produced because now it is possible to have several Lattice modifiers and the Bake was removing the lattice data of all modifiers. Now the data is only recalculated and removed for the current modifier. Also some cleanup of comments.
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-24Tweak default ID types processing order, step 17: Group and comments.Bastien Montagne
Regroup ID type indices by categories, and add some comments about reasoning of current order.
2021-03-24Tweak default ID types processing order, step 16: Palettes.Bastien Montagne
Move Palettes type with other weird, not-really-data ID types (like PaintCurves and Brushes), higher in the process. Those preset-like types may use a lot of other ID types, but should only be used by UI-related (and Scene, for tool settings) types.
2021-03-24Tweak default ID types processing order, step 15: ShapeKeys.Bastien Montagne
Move shape keys type just after all obdata types, since they are some sort of sub-geometry data.
2021-03-24Tweak default ID types processing order, step 14: Fonts.Bastien Montagne
Move Font type toward the end of the list, this is a file-wrapper type with typically no dependency to any other ID.
2021-03-24Tweak default ID types processing order, step 13: Texts.Bastien Montagne
Move Texts type toward the end of the list, this is a file-wrapper type with typically no dependency to any other ID.
2021-03-24Tweak default ID types processing order, step 12: Sounds.Bastien Montagne
Move Sound type toward the end of the list, this is a file-wrapper type with typically no dependency to any other ID.
2021-03-24Tweak default ID types processing order, step 11: Worlds.Bastien Montagne
Move World type with the other shading types.
2021-03-24Tweak default ID types processing order, step 10: LineStyles.Bastien Montagne
Move LineStyles (Freestyle) type with the rest of the shading types.
2021-03-24Tweak default ID types processing order, step 09: Particles.Bastien Montagne
Move Particles next to the other physics/simulation types, after obdata types.
2021-03-24Tweak default ID types processing order, step 08: CacheFiles.Bastien Montagne
Move them with the rest of the simulation types.
2021-03-24Tweak default ID types processing order, step 07: MovieClips.Bastien Montagne
Move them with the other shading/image types, just before Images.
2021-03-24Tweak default ID types processing order, step 06: Brushes.Bastien Montagne
Move Brushes type with other weird, not-really-data ID types (like Palette and Brushes), higher in the process. Those preset-like types may use a lot of other ID types, but should only be used by UI-related (and Scene, for tool settings) types.
2021-03-24Tweak default ID types processing order, step 05: PaintCurve.Bastien Montagne
Move PaintCurve type with other weird, not-really-data ID types (like Palette and Brushes), higher in the process. Those preset-like types may use a lot of other ID types, but should only be used by UI-related (and Scene, for tool settings) types.
2021-03-24Tweak default ID types processing order, step 04: Screen.Bastien Montagne
Move Screen data type higher in the list, just after the other UI-related types, and before Scenes.
2021-03-24Tweak default ID types processing order, step 03: Mask.Bastien Montagne
Move it with the rest of the image/shading related types.
2021-03-24Tweak default ID types processing order, step 02: Simulations.Bastien Montagne
This is a fairly low-level ID type, so it needs to be higher in the list, for now put it just before the shading-related types.