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-07-03Cleanup: Editors/Space/Text, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/space_text` module. No functional changes.
2020-06-27Docs: correct invalid doxygen params & referencesCampbell Barton
2020-06-24Text: add replace all operatorCampbell Barton
D8032 by @Poulpator with minor edits
2020-06-23Cleanup: move text.c comments to the struct/flag declarationsCampbell Barton
Also update/correct some of the comments.
2020-06-23Cleanup: rename 'name' to 'filepath' for DNA typesCampbell Barton
Using 'name' for the full path of a file reads badly, especially when id.name is used in related code.
2020-06-22UI: report when reloading unsaved textCampbell Barton
Address confusion from T78114.
2020-06-11UI: Adjust names for Find/Replace Set SelectionAaron Carlisle
This is really doing two operation so using the ampersand makes more sense. Also selection sounds better than selected. This also adjusts the name in the text Edit menu which was an issue raised in T68738
2020-04-14Cleanup: remove text editor 'select' option that did nothingCampbell Barton
2020-04-14Revert "Cleanup: remove unused text.selection_set select option"Campbell Barton
This reverts commit 9af0cdcd9349b6c0fd1cc0e57a58254e21e1bd3b. Removed this feature because of confusion caused by incorrect description.
2020-04-05Cleanup: macro hygiene, parenthesize argumentsCampbell Barton
2020-04-03Cleanup: Rename ScrArea variables from sa to areaJulian Eisel
Follow up of b2ee1770d4c3 and 10c2254d412d, part of T74432. Now the area and region naming conventions should be less confusing. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-25Cleanup: use 'r_' prefix for output argumentsCampbell Barton
Also pass some args as 'const'.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
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-15Cleanup: redundant checksCampbell Barton
In some cases moved the checks into asserts, to ensure changes in the future don't cause the checks to become necessary again.
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-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 T68749: BPY: Deprecate height of popupJeroen Bakker
`invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694
2020-02-11Fix T73695: line highlight jitters with smooth scrollKai Jægersen
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-10Fix T73696: Text editor scroll glitchKai Jægersen
Scrolling a short text buffer could show the cursor offset.
2020-02-03Text: make "Text" tab active when searchingYevgeny Makarov
2020-01-17Cleanup: bad brace placement for manually formatted blocksCampbell Barton
2020-01-17Fix T72964: Text editor Python syntax highlighting for numeralsPeter Lönnebring
Less common notation for numbers wasn't highlighted eg: 0b0, 0o0, 0x0, 1.0e0, 1.0E-1, 100_000j
2019-11-27Cleanup: move space text vars into a runtime structCampbell Barton
Also use more descriptive names.
2019-11-24Cleanup: remove unused text.selection_set select optionCampbell Barton
This was meant to set the selection end instead of the cursor however it hasn't been working for years and seems quite obscure.
2019-11-24Cleanup: text editor variable namesCampbell Barton
2019-11-24Text Editor: smooth scrollingCampbell Barton
Add smooth scrolling support for vertical scrolling. This is only active while scrolling so we don't need to support pixel-level offsets for operators, interactions.
2019-11-22Keymap: use tab key for indent or auto-completeCampbell Barton
Only indent when there aren't characters before the cursor. This resolves the conflict with Ctrl-Space for view maximize. D6239 by @wbrbr for text editor, based console support on this.
2019-11-22Cleanup: BKE_suggestions -> BKE_text_suggestionsCampbell Barton
The term suggestions on it's own is too ambiguous, use BKE_text prefix.
2019-11-21Cleanup: clang-formatCampbell Barton
Also remove unused vars.
2019-11-20UI: Text Editor Visual ChangesHarley Acheson
Various small changes to Text Editor, mostly to do with scaling, alignment, and theme support. Differential Revision: https://developer.blender.org/D6268 Reviewed by Campbell Barton
2019-10-04Cleanup: formatting for text highlighterCampbell Barton
2019-10-03Fix T69216: "assert" not highlighted in text editorAnthony Eriksson
Workaround limitations of formatting code by putting longest names first. Differential Revision: https://developer.blender.org/D5613
2019-10-01UI: "text not found" message in text editor, change type from ERROR to WARNINGYevgeny Makarov
Differential Revision: https://developer.blender.org/D5736
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-09-20Fix T69486: Reloading file in text editor marks file as modifiedPedro Reis
Differential Revision: https://developer.blender.org/D5847
2019-08-30Cleanup: spellingCampbell Barton
2019-08-28Fix T68971: Copy As New Driver from Material node creates a bad reference.Alexander Gavrilov
NodeTree structures of materials and some other data blocks are effectively node group datablock objects that are contained inside the parent block. Thus, direct references to them are only valid while blender is running, and are lost on save. Fix Copy As New Driver to create a reference that goes through the owner datablock, by adding a new ID flag to mark private pseudo-datablocks. Also fix functions that return full paths to structures and properties, e.g. used in python tooltips. Functions for paths from ID to struct or property can't be changed because of Animation Data related code. Reviewers: mont29 Differential Revision: https://developer.blender.org/D5559
2019-08-15Cleanup: fix compiler warningsBrecht Van Lommel
2019-08-14Text editor: syntax highlighting + line numbers on by defaultSybren A. Stüvel
The most common use of the text editor seems to be for scripting. Having line numbers and syntax highlighting enabled by default seems sensible. Syntax highlighting is now enabled by default, but is automatically disabled when the datablock has a non-highlighted extension. Highlighting is enabled for filenames like: - Text - Text.001 - somefile.py and is automatically disabled when the datablock has an extension for which Blender has no syntax highlighter registered. Reviewers: billreynish, campbellbarton Subscribers: brecht, billreynish Differential Revision: https://developer.blender.org/D5472
2019-08-11Text: support comment without selectionCampbell Barton
D5451 by @Poulpator with fixes.
2019-08-06Cleanup: move utf8 offset conversion into BLI_string_utf8Campbell Barton
There isn't anything specific to text data with these functions.
2019-08-05Text: merge toggle comments into a single operatorCampbell Barton
This allows users to map comment/un-comment to be mapped to keys.
2019-08-04Text Editor UIWilliam Reynish
Tweak Text Editor to fit better with the rest of Blender 2.8: - Move sidebar to the right - Add proper context menu - Move view toggles to the View menu - Change the indentation option to be an enum between spaces and tabs - Several layout tweaks Patch by @tintwotin / Peter Fog with additional tweaks by me. Differential Revision https://developer.blender.org/D5028 Reviewers: Brecht, Campbell
2019-08-02Cleanup: clang-format, also typo fix.Campbell Barton
2019-08-02Fix text editor undo sync when mixed with other undo systemsCampbell Barton
Undo rewrite broke test_undo.text_editor_edit_mode_mix. Relatively harmless since it's only out of sync by one action.
2019-08-01Text: toggle comment operatorCampbell Barton
2019-08-01Cleanup: use doxy sections for text operatorsCampbell Barton