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-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
2019-08-01Cleanup: use braces, unused variable, unused enumCampbell Barton
2019-07-31Fix several undefined-behaviour-sanitizer warningsLukas Stockner
Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4222
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-07-11Fix T66658: Undo steps gets out sync with text/edit-modeCampbell Barton
2019-07-11Undo System: add is_final argument (no functional changes)Campbell Barton
This is needed step out of undo steps which accumulate changes, larger changes could be made to handle this but better not make them at this point.
2019-07-10Undo System: ensure the text ID for each undo step is usedCampbell Barton
In practice this wasn't causing errors, however it could be an issue in the future.
2019-05-31Cleanup: style, use braces in source/ (include disabled blocks)Campbell Barton
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.
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-05-08Fix heap buffer overflow in tabs to spacesSergey Sharybin
Need to count string terminator.
2019-05-07Theme: set dark grey for line number backgroundCampbell Barton
This color is also used for the right margin, so use a color that contrasts with the background. Also use 2x width line.
2019-05-03Cleanup: warningsCampbell Barton
Quiet extra-semi-stmt & missing-variable-declarations
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-25Text editor: convert tabs to spaces on pasteBruno Boaventura Scholl
If the Tabs as Spaces settings is enabled for the text block. This avoids issues with inconsistent indentation when pasting Python code from another source. Differential Revision: https://developer.blender.org/D4512