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
2020-06-29UI: Add shortcuts for modifier panelsHans Goudey
The shortcuts act on the modifier with its panel under the mouse. The following shortcuts are enabled by default: - Remove modifier: X, Delete - Apply modifier: Ctrl A - Duplicate modifier: Shift D More shortcuts can be added in the keymap. Each panel can now store a custom data RNA pointer, and a new function is added to get the custom data for the panel under the cursor. This custom data could be used to refactor the "List Panel System" to generalize it and integrate it further with RNA. The same functionality will be added in further commits where it applies to constraints, grease pencil modifiers, and effects. Differential Revision: https://developer.blender.org/D8031
2020-06-28GPencil: Cleanup - replace loop with LISTBASE_FOREACHAntonio Vazquez
2020-06-26Fix Edit Voxel Size label rotation and scale in rotated objectsPablo Dobarro
Previously, the text rotation was always calculated in object space, so the text rotation always had the object rotation applied. Now the rotation is calculated in world space, so it always aligns correctly to the view. Same applies to text scale not taking into account the object position. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8068
2020-06-23Sculpt Vertex Colors: Initial implementationPablo Dobarro
Sculpt Vertex Colors is a painting system that runs inside sculpt mode, reusing all its tools and optimizations. This provides much better performance, easier to maintain code and more advanced features (new brush engine, filters, symmetry options, masks and face sets compatibility...). This is also the initial step for future features like vertex painting in Multires and brushes that can sculpt and paint at the same time. This commit includes: - SCULPT_UNDO_COLOR for undo support in sculpt mode - SCULPT_UPDATE_COLOR and PBVH flags and rendering - Sculpt Color API functions - Sculpt capability for sculpt tools (only enabled in the Paint Brush for now) - Rendering support in workbench (default to Sculpt Vertex Colors except in Vertex Paint) - Conversion operator between MPropCol (Sculpt Vertex Colors) and MLoopCol (Vertex Paint) - Remesher reprojection in the Voxel Remehser - Paint Brush and Smear Brush with color smoothing in alt-smooth mode - Parameters for the new brush engine (density, opacity, flow, wet paint mixing, tip scale) implemented in Sculpt Vertex Colors - Color Filter - Color picker (uses S shortcut, replaces smooth) - Color selector in the top bar Reviewed By: brecht Maniphest Tasks: T72866 Differential Revision: https://developer.blender.org/D5975
2020-06-23Preferences: New experimental settings for particle system and hairJacques Lucke
This replaces the cmake options `WITH_NEW_OBJECT_TYPES` and `WITH_NEW_SIMULATION_TYPE` with two experimental userpref settings: * `use_new_particle_system`: Enables the point cloud type and the simulation editor. * `use_new_hair_type`: Only displays the add-operator in the add menu for now. Note, in the current state you can't do anything productive with the new particle system or the new hair type. Features will be added step by step in the upcoming weeks and months. Reviewers: brecht Differential Revision: https://developer.blender.org/D8096
2020-06-23Transform: default to median center instead of boundsCampbell Barton
When neither bounds or median is selected, snapping the cursor to the selection was using bounds which often doesn't give useful results. Resolves T78135
2020-06-21GPencil: Change effect tooltips for new Shader operatorsAntonio Vazquez
Instead to use ShaderFx, use Effect and also fixed some wrong cases using Modifier word.
2020-06-19UI: ShaderFx Drag and Drop, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for grease pencil shader effects. It also moves their drawing to a callback in ShaderFxTypeInfo in line with the extensible architecture refactoring goal T75724. The implementation is basically exactly the same as for the modifier patch (9b099c86123fc82). Thanks to Matias Mendiola (@mendio) for helping to develop the layout changes. Differential Revision: https://developer.blender.org/D7985
2020-06-19UI: Grease Pencil Modifier Drag and Drop, Layout ChangesHans Goudey
This patch implements the list panel system D7490 for grease pencil modifiers. It also moves their drawing to a callback in GpencilModifierTypeInfo in line with the extensible architecture refactoring goal T75724. This also adds the "set_error" function for grease pencil modifiers, which hadn't been copied from mesh modifiers yet. The implementation is basically exactly the same as for the modifier patch (9b099c86123fc82). Thanks to Matias Mendiola (mendio) for providing mockups for many of the layout changes. Differential Revision: https://developer.blender.org/D7978
2020-06-19UI: Drag and Drop Constraints, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for constraints. In this case the panels are still defined in Python. The layouts are also updated to use subpanels and the a more organized single column layout. There may be more tweaks necessary for the layouts. Reviewed By: Severin, billreynish, Mets Differential Revision: https://developer.blender.org/D7499
2020-06-19LibOverride: Cleanup: remove unused parameter.Bastien Montagne
2020-06-19Cleanup: use doxy sectionsCampbell Barton
2020-06-19Cleanup commented separator.Pablo Vazquez
2020-06-18UI: Place "New Collection" item above list in Move/Link to Collection menuPablo Vazquez
This way "New Collection" is always assigned the same shortcut (N). Whereas previously it would be automatically assigned the leftover key from the list of available collections. Nice side effect is that since N is next to M in most keyboard layouts, moving to a new collection is super fast by hitting M then N. {F8630575, size=full} Paper-cut pointed out by DerekWatts on [devtalk](https://devtalk.blender.org/t/blender-ui-paper-cuts/2596/4211) (thanks!): {F8630492, size=full} Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D8067
2020-06-18Cleanup: redundant parenthesisCampbell Barton
2020-06-17Refactor duplicate of data-blocks.Bastien Montagne
Main change from user side, besides that all pointers should now be properly remapped to new IDs, is that linked objects are no longer preserved when doing a full copy of scenes. Will open a task to check whether we actually still want that behavior (and re-code it in a more correct way then). This is the main part of work done here, it aims at uniformizing and sanitizing that 'deep copy' process for supported IDs (currently scenes, collections and objects). Note that there will be more follow up commits after that one, but this should be the most risky and changing one.
2020-06-17Fix T63411: Crash adding meta-ball with a small radiusCampbell Barton
Change how the radius, changing the size of meta plane, sphere & cube. Previously the size of these primitives would be kept the same, with only the radius outside the primitive being scaled. This led to small scale adding a lot of polygons instead of scaling the primitive down as users would expect. Also change behavior not to change the resolution when adding to an existing meta-ball.
2020-06-17Cleanup: name mesh join functions using ED_{type} prefixCampbell Barton
2020-06-17Cleanup: warningCampbell Barton
2020-06-16Cleanup: use explicit enum type for duplicate option of `BKE_object_duplicate`Bastien Montagne
Using enum type itself in implementations, and uint in headers (as using enums types in headers is a pain when enum are not defined and used in a single same header file...).
2020-06-16Cleanup: get rid of `BKE_collection_copy`.Bastien Montagne
We want to get rid of those for all ID types ultimately, but that one was only used in one place, being the only one calling `BKE_collection_duplicate` without hierarchical duplicate and parent collection pointer, effectively using the full power of the complex deep duplication code for a mere `BKE_id_copy` call... This will allow for further cleanup in duplicate code.
2020-06-16GPencil: Convert and Bake mesh animation to grease pencil strokesAntonio Vazquez
This patch adds two options: - Convert a mesh to grease pencil strokes. - Bake the mesh animation into grease pencil strokes. Both are related and must be included in the same patch. Related to tasks: T77629 and T77630 Notice: The conversion is done for mesh edges and it's not considering any visibility clipping. All edges are exported, no matters if it's visible or not. Example of Convert a Mesh to Grease Pencil strokes: {F8606028} This conversion was inspired by the technique used by @luamono in this tweet: https://twitter.com/luamono/status/1239983662176841730 Example of Bake Animation (the video is a little outdate, but the basic functionality is the same, only small changes in UI): {F8606032} Reviewed By: mendio, pepeland Maniphest Tasks: T77629, T77630 Differential Revision: https://developer.blender.org/D7983
2020-06-15Various UI messages fixes...Bastien Montagne
2020-06-15UI: Do not use term 'Subsurf'Aaron Carlisle
So not to be confused with subsurf scatter Differential Revision: https://developer.blender.org/D8005
2020-06-12LibOverride: Remove 'auto override' option.Bastien Montagne
Now all overrides are handled that way. Performances of the process look decent enough, even with production characters... If performance issues still arise, we'll investigate other solutions. This should also make T73154 obsolete now.
2020-06-11Fix bad poll function for constraints in liboverrides.Bastien Montagne
2020-06-10Cleanup: Remove no more used `ED_object_single_users`.Bastien Montagne
This utils was only used for scenes' full copy, and was using old deprecated ways to deal with ID relations and such. Good riddance!
2020-06-10UI: More specific modifier move to index operator descriptionHans Goudey
2020-06-09Voxel Size Edit: Fix text not readable when zooming in the viewportPablo Dobarro
Previously the scale of the text was using object space, so when working with scaled objects or small meshes the size of the text was wrong. Now it calculates a scale in screen space, so the text size should be much more predictable Reviewed By: sergey, Severin Differential Revision: https://developer.blender.org/D7941
2020-06-09Fix Edit Voxel Size label in previewPablo Dobarro
The format string was wrong so it was rendering an extra % character Reviewed By: sergey Differential Revision: https://developer.blender.org/D7942
2020-06-08Fix crash running "Edit Voxel Size" operator outside of a main 3D View regionJulian Eisel
Accessed `RegionView3D` data from context, which of course would only be set if actually executed from a main 3D View region.
2020-06-05Remove context check from constraint and shaderfx edit pollHans Goudey
This mirrors 1f78e86070 from 2018 for mesh modifiers. Differential Revision: https://developer.blender.org/D7940
2020-06-05UI: Drag and Drop Modifiers, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for modifiers. It also moves modifier drawing to a callback in ModifierTypeInfo in line with the extensible architecture refactoring goal T75724. This adds a PanelRegister callback and utilities for registering panels and subpanels. It also adds the callbacks for expansion saving and drag and drop reordering described in D7490. These utilities, callbacks, and other common UI elements shared between modifiers live in MOD_ui_common.c. Because modifier buttons are now in panels, we can make use of subpanels for organization. The UI layouts also use the single column layout style consistently used elsewhere in Blender. Additionally, the mode-setting buttons are aligned and ordered consistently with the outliner. However, the large number of UI changes in this patch may mean that additional polishing is required in master. Thanks to William Reynish (@billreynish) who did a fair amount of the layout work and to Julian Eisel (@Severin) for consistent help. Differential Revision: https://developer.blender.org/D7498
2020-06-05Cleanup: use ED_object_ prefix for constraint functionsCampbell Barton
- ED_object_constraint_list_from_constraint was get_constraint_lb - ED_object_constraint_list_from_context was get_active_constraints - ED_object_constraint_active_get was get_active_constraint - ED_object_constraint_active_set was ED_object_constraint_set_active
2020-06-05Code Cleanup: fcurve function namingJeroen Bakker
2020-06-05Cleanup: spellingCampbell Barton
2020-06-04Fix T77073: Objects cannot be activated after collection excludeNathan Craddock
When excluding a collection containing the active object in either texture paint or particle edit mode, the object could not be reactivated when the collection was re-enabled. This is because the object's mode was left in TEXTURE_PAINT or PARTICLE_EDIT, and the activation code did not have cases to handle these modes. This moves the code that is run when toggling out of texture paint or particle edit modes to functions so activation can properly toggle off the respective interaction mode.
2020-06-03Object: refactor mode switchingCampbell Barton
Functionality here has become confusing over time, this removes duplicate, similar functions, preferring to set the mode instead of toggle, enter, exit. Mode switching utility function behaved differently regarding undo, 'ED_object_mode_toggle' for example didn't skip the undo push where 'ED_object_mode_set' did. Some callers chose these functions based on the intended undo behavior, even when toggling didn't make sense. There was also ED_object_mode_generic_enter which was similar to ED_object_mode_set, instead of the reverse of ED_object_mode_generic_exit. Simplify object mode switching internals: - Replace ED_object_mode_generic_enter with ED_object_mode_set. - Remove ED_object_mode_toggle as nearly all callers needed to check the current mode so toggling would set the mode argument correctly. - Use ED_object_mode_set for the object mode switching operator to simplify logic. - Add ED_object_mode_set_ex which has an argument to disable undo, needed when loading undo data needs to set the mode. - Remove unused ED_object_mode_exit.
2020-06-03Cleanup: remove ED_gpencil_setup_modes from object mode setCampbell Barton
Grease pencil mode switching functions already call this.
2020-06-02Library Overrides: Don't move collections to Scene Collection when overridingJulian Eisel
When using the "Make Library Override" operator on instance collections, keep the overriden collection in the parent collection of the instance empty. Previoulsy the collection would be added to the scene collection, which was confusing and not what users expected. It was placed there for a reason after all. Part of T76555. Reviewed by: Andy Goralczyk, Bastien Montange. Differential Revision: https://developer.blender.org/D7626
2020-06-02Library Overrides: Unlink instance empty after "Make Library Override"Julian Eisel
Unlink (delete if single-user) collection instance empty once an override is added to the collection through the "Make Library Override" operator. It isn't used as a collection instance anymore then so the emtpy is an annoying left over that has no purpose. Part of T76555. Reviewed by: Andy Goralczyk, Bastien Montange. Differential Revision: https://developer.blender.org/D7626
2020-06-02Merge branch 'blender-v2.83-release'Campbell Barton
2020-06-02Cleanup: code comments for mode switchingCampbell Barton
Comment on mode switching cases that are supported, including the issue from recent regression T77217 which is easy to miss since it's not used in the default key-map.
2020-06-01Merge branch 'blender-v2.83-release'Campbell Barton
2020-06-01Fix T77217: Object mode toggle doesn't workCampbell Barton
Toggling object mode to the previous wasn't working, also resolves a case when toggling modes would cause an extra, unnecessary mode switch. Own regression in 5159b8e1eadb3.
2020-05-29Cleanup: spelling, correct reference to 'Mesh.mcol'Campbell Barton
2020-05-28Object: add scale argument to creation operatorsCampbell Barton
Needed for to create objects of a specific size.
2020-05-27Merge branch 'blender-v2.83-release'Nathan Craddock
2020-05-27Fix: A few missing outliner selection sync tagsNathan Craddock
Add selection syncing for object add named (e.g. drag and drop from outliner to 3D view), outliner right click (a sync when the context menu is cancelled), and for object selection from Python.
2020-05-25Cleanup: typoJacques Lucke