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-03-18Cleanup: Resolve HKEY conflictRay Molenkamp
Both the MS headers and blender headers define the HKEY which gives all kind of inclusion order issues. This diff renames all *KEY constants to EVT_*KEY to resolve this conflict. Reviewed By: brecht , dfelinto Differential Revision: http://developer.blender.org/D7164
2020-03-18GPencil: Remove background to Dopesheet buttonsAntonio Vazquez
This was missing in previous commit.
2020-03-18Objects: add Volume object type, and prototypes for Hair and PointCloudBrecht Van Lommel
Only the volume object is exposed in the user interface. It is based on OpenVDB internally. Drawing and rendering code will follow in another commit. https://wiki.blender.org/wiki/Source/Objects/Volume https://wiki.blender.org/wiki/Reference/Release_Notes/2.83/Volumes Hair and PointCloud object types are hidden behind a WITH_NEW_OBJECT_TYPES build option. These are unfinished, and included only to make it easier to cooperate on development in the future and avoid tricky merges. https://wiki.blender.org/wiki/Source/Objects/New_Object_Types Ref T73201, T68981 Differential Revision: https://developer.blender.org/D6945
2020-03-18GPencil: Invert Dopesheet icons to same order than properties panelAntonio Vazquez
2020-03-16Fix T61234 Mirroring Grease Pencil keyframes in the Dopesheet failsSybren A. Stüvel
`ANIM_animdata_update()` did not sort grease pencil frames. A pre-existing comment stated this wouldn't be necessary as `posttrans_gpd_clean()` already does this. However, this is only applicable when the change is performed via the transform system. The mirror operator doesn't call `posttrans_gpd_clean()`, invalidating the assumption in the comment. I moved the sorting code into `BKE_gpencil_layer_frames_sort()`, which is now called from both `ANIM_animdata_update()` and `posttrans_gpd_clean()`.
2020-03-16UI: fix backdrop and alignment in anim channelsSybren A. Stüvel
This patch fixes various problems of alignment and element backdrops for the animation channels drawing, mainly in the Graph editor but also for grease pencil and mask layers in the Dope Sheet. Reviewed By: billreynish, sybren Differential Revision: https://developer.blender.org/D5204
2020-03-13Cleanup: pass const args (mostly Scene & RenderData)Campbell Barton
2020-03-12Fix T66505: Dope Sheet shows empty Grease Pencil/Annotation layersSybren A. Stüvel
The behaviour of GP layers is the same as annotation layers: they show in the dope sheet regardless of whether they have frames or not. This is easily resolved by adding some extra filtering.
2020-03-12Cleanup: simplified Grease Pencil animdata filterSybren A. Stüvel
Part of the function was following an "if-ok: do-this" pattern, and then mid-function switched to a "if-bad: skip" pattern. The function now just uses the latter. No functional changes.
2020-03-11GPencil: Add missing Layer buttons in Dopesheet header and remove unneeded ↵Antonio Vazquez
options Update Dopesheet header to include missing buttons, remove Scene Active only buttton and also removed duplicated search box. The removed options come from old 2.7x version and they are not required now. Reviewed By: mendio, pepeland Differential Revision: https://developer.blender.org/D7107
2020-03-11Cleanup: spellingCampbell Barton
2020-03-10Fix T65076: Missing EasingType implementation on the DopesheetSybren A. Stüvel
EasingType was implemented rBdaccaa713b6e for the GraphEditor (but never made it to the Dopesheet). If you can select Easing Mode in the DopeSheet, then you should also be able to select the associated Easing Type. Thanks @lichtwerk for the initial implementation. Maniphest Tasks: T65076 Differential Revision: https://developer.blender.org/D6094
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06Animation: improved error handling when adding/deleting keyframesSybren A. Stüvel
There are two ways in which adding/deleting keyframes can fail, but only one of those was handled. The other would be shown as a successful add/delete of -2 keyframes.
2020-03-06Cleanup: Animation, renamed and clarified 'success' variableSybren A. Stüvel
The `ANIM_apply_keyingset()` returns a value that indicates the number of changed channels (if nonnegative) or an error state (negative). In the places where the return value was actually used, this value was stored in a badly named variable.
2020-03-06Cleanup: keyframing return argumentsCampbell Barton
- Use 'int' for counters instead of short. - Use 'bool' instead of a counter when only a change is being detected. - Use typed enum for keying set flags. - Include in comments when a negate error code may be returned.
2020-03-06Cleanup: remove unused 'eInsertKeyFlags' from delete API callCampbell Barton
There is no need for an insertion flag in a delete function.
2020-03-06Cleanup: keyframe API naming, high level keyframe APICampbell Barton
- Split 'verify_fcurve' into two functions: ED_action_fcurve_ensure which adds the f-curve if needed. ED_action_fcurve_find which returns NULL when not found. Callers of ED_action_fcurve_find had unused 'group' argument which has been removed. - Rename verify_adt_action to ED_id_action_ensure It had an argument to add data which was always true, remove this instead of splitting in into a separate function.
2020-03-05Cleanup: Clarified commentSybren A. Stüvel
No functional changes.
2020-03-05Cleanup: redundant castsCampbell Barton
2020-03-03Fix T74292: Dope sheet (Mask mode) keyframe editing misses updateSybren A. Stüvel
2020-02-27Fix channel lists ignoring collection visibilitySybren A. Stüvel
The dope sheet, NLA editor, and other similar animation editors were ignoring the temporariy visibility flag of collections. As a result, an editor that's supposed to show animation data of visible objects only was still showing such data of objects that were hidden by hiding their collection. This was observed while fixing T71743.
2020-02-25UI: Add theme option for time markers lineMichael Soluyanov
This patch adds the ability to set colors and alpha of dashed line of Time Markers. That way themes can avoid contrast issues and communicate selection better. See screenshots in D6877. Bumps subversion. Reviewed By: William Reynish, Julian Eisel Differential Revision: https://developer.blender.org/D6877
2020-02-19Cleanup: assign Main, use existing assignmentsCampbell Barton
Avoid accessing inline since it's often used multiple times. In some cases it was already defined.
2020-02-17Fix T73909: Crash deleting grease pencil layer from dope sheetCampbell Barton
2020-02-15Cleanup: mixed camel/snake caseCampbell Barton
2020-02-12Fix T73740: Auto-key "Only Available" de-selects f-curvesCampbell Barton
This was especially bad with "Only Selected Curve Keyframes", effectively making f-curves un-editable on each insertion.
2020-02-11UI: improve graph editor channels drawingAlessio Monti di Sopra
The channel color squares are no longer positioned under the visibility icon, since contrast is poor. Instead they are thinner and drawn on the left side, before the visibility icon. If the curve is hidden, the color gets less opaque. Differential Revision: https://developer.blender.org/D5882
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2020-02-10Cleanup: spellingCampbell Barton
2020-02-05Cleanup: Remove unused function: give_node_material()Antonio Vazquez
2020-02-05T73589: Code Quality: Renaming on BKE_material.hAntonio Vazquez
Old Name New Name ========= ========= init_def_material BKE_materials_init BKE_material_gpencil_default_free BKE_materials_exit test_object_materials BKE_object_materials_test test_all_objects_materials BKE_objects_materials_test_all give_matarar BKE_object_material_array give_totcolp BKE_object_material_num give_current_material_p BKE_object_material_get_p give_current_material BKE_object_material_get assign_material BKE_object_material_assign assign_matarar BKE_object_material_array_assign give_matarar_id BKE_id_material_array give_totcolp_id BKE_id_material_num assign_material_id BKE_id_material_assign clear_matcopybuf BKE_material_copybuf_clear free_matcopybuf BKE_material_copybuf_free copy_matcopybuf BKE_material_copybuf_copy paste_matcopybuf BKE_material_copybuf_paste BKE_material_init_gpencil_settings BKE_gpencil_material_attr_init BKE_material_add_gpencil BKE_gpencil_material_add BKE_material_gpencil_get BKE_gpencil_material BKE_material_gpencil_default_get BKE_gpencil_material_default BKE_material_gpencil_settings_get BKE_gpencil_material_settings
2020-01-14Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-14Cleanup: move property auto-keyframing to a generic API functionCampbell Barton
Prepare to call this from gizmos.
2020-01-10Cleanup: ARegion.sizex/y should not be used to access region sizeJulian Eisel
This should only be used to change and recalculate region sizes in a DPI independent way. To get the size with DPI applied, ARegion.winx/y should be used instead. Added note on this in comment.
2020-01-05Fix T72682: Regression when moving markers while holding ctrlJacques Lucke
In 2.79 when moving a marker with `G` while holding `ctrl` the marker would snap to one-second movements. This was (probably accidentally) removed when the Timeline Editor was removed in rB5374865523faf253. Reviewers: mano-wii Differential Revision: https://developer.blender.org/D6527
2020-01-05GPencil: Add missing update in previous commit of task T72897Antonio Vazquez
2020-01-05Fix T72897: Move Channels operator moves Grease Pencil Layers wronglyAntonio Vazquez
This operator was pending of fix.
2020-01-03Fix T71495: Some Textures with AnimData not visible in DopesheetSybren A. Stüvel
T71495 describes two problems with animation of textures not showing up in the dope sheet: 1. textures connected to force fields 2. textures of brushes This patch resolves the first case. An alternative would be to switch to iteration of dependencies using `BKE_library_foreach_ID_link()`. This is a good idea to do at some point, but adding these few lines was considerably easier & safer to do.
2020-01-02Fix T57111: Particle texture keyframes missing from Graph EditorSybren A. Stüvel
The entire particle system was skipped when the particle system itself did not have any animation data. This caused the animation data on the texture to be skipped.
2019-12-21GPencil: Hide dopesheet slider options for AnnotationsAntonio Vazquez
2019-12-05Cleanup: Removes double notificationAntonio Vazquez
2019-12-05Fix T72182: Fade Layers Option does not work when activating a layer from ↵Antonio Vazquez
Dope Sheet or Outliner The layer was activated, but the datablock was not tagged to recalc GPU cache.
2019-12-04Make curve decimation only take into account the selected curve pointsSebastian Parborg
Previously the decimation would take the whole curve into account when decimating and not just the selected part. This also contains various smaller bug fixes for the fcurve decimation. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D6286
2019-12-04GPencil: Fix error in previous patchAntonio Vazquez
By error, a previous version of the patch was used and there was a small change in the order of the columns in dopesheet.
2019-12-04GPencil: Add Opacity y Onion switch to DopesheetAntonio Vazquez
Add new icons and panels Grease Pencil Dopesheet to manage layers without having the properties panel visible. Also, the icons are in the same order in Dopesheet, Layers and Material list to keep consistency. As the number of columns for icons is limited to 3 and we also need use a factor, I have impleted the change using slider area. Also, the slider option is enabled by default for 2D Template. See T72026 for more info. Reviewed By: mendio, pepeland, billreynish Differential Revision: https://developer.blender.org/D6328
2019-11-30UI: allow to hide markers region per editorAlessio Monti di Sopra
Instead of having the option to show marker lines, make the marker region optional. - Added a Show Markers entry in the View menu of the animation editors. - If the markers region is not active then the Marker menu gets hidden. - Removed marker menu from the driver editor and don't allow to use marker operators.
2019-11-22UI: Changes to Graph Editor selection and transformJulian Eisel
When introducing "drag-all-selected" support all over Blender, we figured this wouldn't work well with the Graph Editor selection/transform behavior. Hence, William and I worked on the following changes, although we used this chance to improve the behavior in general too. For more info see T70634. * Handles now always move with the key, regardless if they are selected or not. * Selecting the key doesn't select the handles anymore, their selection is separate. * Multiple keys and handles can now be dragged. * Dragging a handle moves all selected handles **on the same side**. * Tweak-dragging any handle can never affect any keyframe location, only handles. * G/R/S should behave as before. * Changing the handle type with a key selected always applies the change to both handles. * Box selection with Ctrl+Drag now allows deselecting handles (used to act on entire triple only). * Box selection //Include Handles// option now only acts on visible handles, wasn't the case with Only Selected Keyframes Handles enabled. * Box selection //Include Handles// is now enabled by default in all bundled keymaps. The changes have been tested for some days by the animators here in the Blender Animation Studio. Some changes are based on their feedback. Also, this improves/adds comments for related code. Differential Revision: https://developer.blender.org/D6235 Reviewed by: Sybren Stüvel, William Reynish
2019-11-21Add curve decimate in the graph editorSebastian Parborg
Added a animation curve decimate operator in the graph editor Reviewed By: Sybren Differential Revision: http://developer.blender.org/D4841