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-12-10Cleanup: spelling in commentsCampbell Barton
2021-12-08Cleanup: move public doc-strings into headers for 'editors'Campbell Barton
Ref T92709
2021-12-07Fix: Remove line from common invokeChristoph Lendenfeld
The line that sets the factor_prop in graph_slider_ops.c has been left in the common invoke function by accident. Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D13477 Ref: D13477
2021-12-07Cleanup: renames in graph_slider_opsChristoph Lendenfeld
rename percentage_prop to factor_prop rename remove_ratio to factor remove "graphkeys" prefix from functions Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D13476 Ref: D13476
2021-12-04Create generic modal functions from GRAPH_OT_decimateChristoph Lendenfeld
This patch extracts the modal functions from GRAPH_OT_decimate and makes them generic so they can be reused by future operators Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9326 Ref: D9326
2021-11-20Merge branch 'blender-v3.0-release'Germano Cavalcante
2021-11-20Fix error in rBfb0ea9Germano Cavalcante
There is no need to multiply the "dash_width" by `UM.pixel size` since the "viewport_size" is already being divided by the DPI. Ref {rBfb0ea9}
2021-11-19Merge branch 'blender-v3.0-release'Germano Cavalcante
2021-11-19Fix T85855: F-curves too thin on MacGermano Cavalcante
Use the `GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR` shader instead of `GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR`. This is just a partial solution as "protected" fcurves still use the dashed shader. Differential Revision: https://developer.blender.org/D13290
2021-11-05Merge branch 'blender-v3.0-release'Pablo Vazquez
2021-11-05UI: Use arrow icon on context pathsPablo Vazquez
The current `ICON_SMALL_TRI_RIGHT_VEC` uses dark hard-coded colors ([`0.2`, `0.2`, `0.2`]) which makes it impossible to theme and hard to see in dark contexts. Use `ICON_RIGHTARROW` to match the Outliner's breadcrumbs. This icon uses `TH_TEXT` so it's visible as long as the rest of the text is. ##### Master (Properties editor background made red on purpose to be able to see the triangle icon) {F11713038, size=full} #### This patch {F11713039, size=full} Reviewed By: #user_interface, Severin, HooglyBoogly Maniphest Tasks: T92771 Differential Revision: https://developer.blender.org/D13106
2021-11-05Cleanup: use doxy sections in graph editor moduleCampbell Barton
2021-11-05Cleanup: move code in graph_slider_opsChristoph Lendenfeld
Future operators can use the same code, so it is moved up to disassociate it from decimate No functional changes Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D12489 Ref: D12489
2021-11-05Cleanup: renames in graph_slider_opsChristoph Lendenfeld
This patch renames: * tDecimateGraphOp to tGraphSliderOp * dgo to gso (to match with the struct rename) * decimate_reset_bezts to reset_bezts to indicate it can be used by other functions No functional changes Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D12490 Ref: D12490
2021-11-02Merge branch 'blender-v3.0-release'Bastien Montagne
2021-11-02Fix lots of missing messages i18n handling in `uiItemL` calls.Bastien Montagne
Also fix several wrong usages of `IFACE_` (as a reminder, error/info messages should use `TIP_`, not `IFACE_`).
2021-10-31Fix: Build error on all platformsRay Molenkamp
Types were used before being declared.
2021-10-31Cleanup: Extract function to store bezt arraysChristoph Lendenfeld
The code to store an original bezt array previously lived in `graphkeys_decimate_invoke`. Since future graph slider operators will need this function as well, it has been extracted. No functional changes. Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D12487 Ref: D12487
2021-10-31Cleanup: Extract keyframe filter to constantChristoph Lendenfeld
An int flag is used to filter animation channels for operators to work on. The flag was duplicated multiple times. This patch removes the duplication by creating a constant Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D12486 Ref: D12486
2021-10-20Cleanup: use an array for wmEvent cursor position variablesAaron Carlisle
Use arrays for wmEvent coordinates, this quiets warnings with GCC11. - `x, y` -> `xy`. - `prevx, prevy` -> `prev_xy`. - `prevclickx, prevclicky` -> `prev_click_xy`. There is still some cleanup such as using `copy_v2_v2_int()`, this can be done separately. Reviewed By: campbellbarton, Severin Ref D12901
2021-10-14Fix T91743: Unify behavior of 'Auto Set Preview Range'Philipp Oeser
This is available in the DopeSheet, GraphEditor, and NLA Editor. Currently: - Dopesheet advertises to take selection into account... -- ...but doesnt - which might be a mistake in rBe3842d1ca4dd - Graph Editor does not mention selection... -- ...and also does not take it into account - NLA does not mention selection... -- ...but takes it into account Now: - make them **all** take selection into account (you can still do a quick 'Select All' prior to get the full range -- better than not being able to set this based on selection) - mention this for all in the tooltip - also reword to 'Set Preview Range to Selected' since using the term 'Auto' impilies this would change on selection change. Maniphest Tasks: T91743 Differential Revision: https://developer.blender.org/D12651
2021-10-12Cleanup: spelling in commentsCampbell Barton
2021-09-28Cleanup: remove unused variableVitor Boschi da Silva
As the title says Reviewed By: lichtwerk, campbellbarton Differential Revision: https://developer.blender.org/D12665
2021-09-28Fix Drivers Editor showing playhead on the X AxisPhilipp Oeser
Currently the Drivers Editor shows this (the blue thing can be dragged to change frame): {F10647661} But the Drivers Editors X axis is the output of the driver [which can be further tweaked by the curve] not time(frame). So it seems better to not mix them here, it is just confusing to have two different units on one axis. Especially since what we really want to look at in X (the drivers output value) can be in a totally unrelated range compared to frames, so e.g. we might be interested in a drivers range from 0.0 to 1.0 and a framerange of 100 to 200, so putting this on one axis just does not make sense. Better to use a separate timeline for this. Note 2.79 also did not do this. Maniphest Tasks: T91157 Differential Revision: https://developer.blender.org/D12392
2021-09-28Fix Drivers Editor not hiding vertical part of cursorPhilipp Oeser
When "Show Cursor" is unchecked, the Drivers Editor would still display the vertical line representing the cursor x. Probably overseen in {rB65072499c65a} (historically the vertical line could represent either the current frame of the cursor X in drawing, but this is now much more separate). There is no point in seeing part of the cursor in the Drivers Editor if this is disabled. Also correct outdated comments. ref. T91157 Maniphest Tasks: T91157 Differential Revision: https://developer.blender.org/D12391
2021-09-18Audaspace: added audio file streams functionality.Jörg Müller
On the blender side this commit fixes importing video files with audio and video streams that do not share the same start time and duration. Differential Revision: https://developer.blender.org/D12353
2021-09-17UI: enable the depend-on-cursor flag for some operatorsCampbell Barton
- Bend (Transform). - Extrude to Cursor. - Lasso Select (related operators such as node-cut links, mask.. etc). - Rip Mesh / UV's. - Vertex/Edge Slide.
2021-09-07Animation: Implement generic slider in graph_slider_opsChristoph Lendenfeld
This patch implements the generic slider from `ed_draw.c` to the `GRAPH_OT_decimate` operator This draws a useful UI and enables precision mode and stepping Overshoot is disabled The status message is moved to the workspace footer Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9361 Ref: D9361
2021-09-02Cleanup: spelling in commentsCampbell Barton
2021-08-26Cleanup: use C style comments for descriptive textCampbell Barton
2021-08-25Cleanup: skip saving selection properties set in the keymapCampbell Barton
Having settings such as "extend" saved between executions causes keymaps that don't include this setting to remember the value between execution. No longer store this setting for selection operations & remove redundant values from the key-maps, see: T90275.
2021-08-12Cleanup: use C++ style comments for disabled codeCampbell Barton
2021-07-29Fix T89976: Mirror Keys By Value performs wrong scale conversionSybren A. Stüvel
In the graph editor, Mirror Keys by Value would convert the value to mirror over, to account for different units for linear & rotational properties. The conversion was done in the different direction, though, resulting in values that were too large by a factor of (180/pi)^2.
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton
2021-07-16Cleanup: remove redundant parenthesesCampbell Barton
2021-07-15UI: Flip driver editor debug linesRed Mser
In driver editor, vertically flip the value debug lines to align them with the timeline header values. This makes it easier to read the values. Also set the line width explicitly, which was incorrect in some cases. Differential Revision: https://developer.blender.org/D8877
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-06-28Cleanup: repeated terms in code comments & error messagesCampbell Barton
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-23Cleanup: reformat trailing comments that caused line wrappingCampbell Barton
2021-06-18Fix undefs from previous commitGermano Cavalcante
2021-06-18Fix T89210: Box selection can fail in graphics editorGermano Cavalcante
Test the intersection of segment instead of point.
2021-06-15Screen: clear runtime structures on file-read & data-copyCampbell Barton
Clear the runtime data structs instead of individual members, this simplifies adding new runtime members as there are at least two places they would need to be cleared. Resolves error in D8883.
2021-06-13Cleanup: redundant initializationCampbell Barton
These were limited to obvious cases. Some less obvious cases were kept as refactoring might make them necessary in future.
2021-06-09Cleanup: spelling in commentsCampbell Barton
2021-06-08Animation: Allow selection of FCurve + its keysMaxime Casas
Selection of an FCurve with box/circle select now selects the entire curve and all its keys: - Box selecting a curve selects all the keyframes of the curve. - Ctrl + box selecting of the curve deselects all the keyframes of the curve. - Shift + box selecting of the curve extends the keyframe selection, adding all the keyframes of the curves that were just selected to the selection. - In all cases, if the selection area contains a key, nothing is performed on the curves themselves (the action only impacts the selected keys). Reviewed By: sybren, #animation_rigging Differential Revision: https://developer.blender.org/D11181
2021-04-01Fix T87037: Add tooltip for "Paste Flipped"Falk David
The "Paste Flipped" operator was missing its own tooltip. This patch adds the tooltip by implementing the `get_description` callback for `GRAPH_OT_paste` and `ACTION_OT_paste`. Reviewed By: sybren Maniphest Tasks: T87037 Differential Revision: https://developer.blender.org/D10859
2021-03-09Graph Editor: FCurve Show Extrapolation ToggleWayde Moss
Adds toggle to graph editor (View->Show Extrapolation). When disabled, then fcurves only draw over the keyframe range. For baked fcurves and ghost fcurves, the range is all sampled points. It is intended for frequent use so anybody could assign hotkey or add to quick favorites that's why GE-View is the best place for it. Show Extrapolation is the default. Reviewed By: sybren, Stan1, looch Differential Revision: http://developer.blender.org/D10442
2021-03-08Cleanup: use ofs instead of offs as an abbreviation for offsetCampbell Barton
Used for local structs/variables, since `ofs` is by far the most widely used abbreviation.