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-04-08Text Editor: don't force other views to follow the cursorCampbell Barton
While the existing behavior worked as intended, it wasn't possible to have two views on the same file at different locations. Since there isn't much use in having two views open at the same location allow one view to be at a different scroll location. UI edit-source and selecting a text data block now need explicit calls to scroll to the cursor location. Resolves T87284
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2020-12-13UI: Remove Unused 'U.wheellinescroll' PropertyYevgeny Makarov
Remove 'U.wheellinescroll' preference, currently hidden and unused. Differential Revision: https://developer.blender.org/D9616 Reviewed by Brecht Van Lommel
2020-11-23Fix T82849: Assert When Unlinking "Edit Source" Text Data-block.Bastien Montagne
Simplify and sanitize handling of usercounts for Text IDs generated trhough `BKE_text_load_ex`.
2020-11-06Cleanup: use ELEM macro (>2 args)Campbell Barton
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-03Fix C operators can't set default display or sort type for File BrowserJulian Eisel
`WM_operator_properties_filesel()` allows C operators to set a display or sort type for the File Browser to use. But the File Browser would always override that because of an invalid `_is_set()` check. (The operators don't actually set the value, they only set the property's default value.) The only operator affected by this is "Recover Auto Save". It is supposed to show a vertical list ordered chronologically. It used settings from the previous File Browser usage before this patch. Operators using the File Browser should generally use `FILE_DEFAULTDISPLAY`/`FILE_SORT_DEFAULT` now, except if they have a reason not to. See comments at their definition. ---- This makes it so operators that set a different display or sort type don't change the sort or display type for the next File Browser operation. So using "Recover Auto Save" entirely isolates display and sort type from other operations. Differential Revision: https://developer.blender.org/D8598 Reviewed by: Bastien Montagne
2020-10-30Text: support "Text to 3D Object" for read-only dataCampbell Barton
Add poll function for read-only text data, for operators that don't require the text to be editable.
2020-10-29UI: use "Save As" when saving un-saved image/text filesYevgeny Makarov
Now the behaviors are consistent for blend, image and text files: - If the file is not writable, will report it. - If the file is new (without a path), save as will be used. - If the file was deleted, will try to recreate it. Ref D6755
2020-10-24UI: Capitalization CorrectionsYevgeny Makarov
Approximately 141 changes of capitalization to conform to MLA title style. Differential Revision: https://developer.blender.org/D8392 Reviewed by Julian Eisel
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-09-09Cleanup: reduce variable scopeJacques Lucke
2020-08-17Cleanup: move Python script execution into BPY_extern_run.hCampbell Barton
This commit renames 'execute' to 'run' because: - This follows Python's "PyRun" which these functions wrap. - Execution functions can use either exec/eval modes, making naming awkward (for future API refactoring).
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
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-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
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-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.
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-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-01UI: "text not found" message in text editor, change type from ERROR to WARNINGYevgeny Makarov
Differential Revision: https://developer.blender.org/D5736
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-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-01Text: toggle comment operatorCampbell Barton
2019-08-01Cleanup: use doxy sections for text operatorsCampbell Barton
2019-07-19Fix new Text ID usercount handling in add/load cases.Bastien Montagne
Text datablocks should always have a 'single user' flag set, and they usually do not have any user (since neither text editor itself, nor Freestyle usage are text users - the second is odd btw...), the only one am aware of is the script node (e.g. for OSL). Add text case was simply not doing anything, so added. Load text case was doing things in inversed logic (setting user count to zero in BKE, then setting 'real user' flag in ED code). Made it the other way around (BKE ID creation code should not care about usercount usually, this is up to higher-level code to decide what to do (operators, RNA...). Note: tried to check all cases, but there might very well be some more hidden bugs here...
2019-07-17Undo System: replace with simpler binary diffing buffer storageCampbell Barton
Applying/undoing incremental changes didn't fit well when mixed with periodic snapshots from mem-file undo. This moves to a much simpler undo system. - Uses array storage with de-duplication from `BLI_array_store`. - Loads the buffer into existing text data, for better performance on large files. - Has the advantage that Python operators can be supported since we don't depend on hard coded undo operations. Solves T67045, T66695, T65909.
2019-07-11Text: buffer from text, optional length return argCampbell Barton
No functional changes (currently unused).
2019-05-28WM: support X/Y axis cursor wrappingCampbell Barton
Operator flags to wrap on a single axis. D4865 by @Gvgeo with updates. Resolves T64585
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.