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
2018-07-02Cleanup: use bool for poll functionsCampbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-28Fix T55662: Crash on text autocompleteCampbell Barton
Regression from undo system upgrade.
2018-06-15Fix (unreported) Text Editor: scrollbar exiting earlyPhilipp Oeser
caused by recent clickdrag changes
2018-06-05Cleanup: use new accessors to blendfile path (Main.name).Bastien Montagne
2018-06-04Fix T55260: load Text File with Python from GUI Button results in 0 UserBastien Montagne
Let's just always ensure user_one when loading text from operator...
2018-06-04Cleanup: strip trailing space in editorsCampbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-05-31Cleanup: Remove G.main from some editor files.Bastien Montagne
2018-04-19Undo: add missing flag for text deleteCampbell Barton
2018-04-05Undo: split text undo steps out of the data-blockCampbell Barton
This moves undo storage into a separate struct which is passed in from the undo system.
2018-04-05Fix crash w/ empty text undo operationsCampbell Barton
2018-04-03Cleanup: editor BKE_main includesCampbell Barton
2018-04-01Cleanup: remove global headerCampbell Barton
2018-03-31Undo: unified undo system w/ linear historyCampbell Barton
- Use a single undo history for all operations. - UndoType's are registered and poll the context to check if they should be used when performing an undo push. - Mode switching is used to ensure the state is correct before undo data is restored. - Some undo types accumulate changes (image & text editing) others store the state multiple times (with de-duplication). This is supported by checking UndoStack.mode `ACCUMULATE` / `STORE`. - Each undo step stores ID datablocks they use with utilities to help manage restoring correct ID's. Needed since global undo is now mixed with other modes undo. - Currently performs each undo step when going up/down history Previously this wasn't done, making history fail in some cases. This can be optimized to skip some combinations of undo steps. grease-pencil is an exception which has not been updated since it integrates undo into the draw-session. See D3113
2018-03-25Text: line break always returned cancelledCampbell Barton
Harmless but incorrect.
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-01-19Util function to determine number of digits from an integerDalai Felinto
2017-11-06Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.Bastien Montagne
This makes code closer to id_override/assent-engine ones, which introduce a new type of linked data, and hence reserve ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-08-10Tweak and extend POV syntax hilghting.Bastien Montagne
*Changed categories of some keywords *reordered some longer keywords that didn't appear *Activated another color (reserved builtins) by Leonid *added some HGPOV and UberPOV missing keywords Patch by Maurice Raybaud (@mauriceraybaud). Thanks to Leonid for additions, feedback and Linux testing. Related diffs: D2754 and D2755. While not a regression, this is new feature and would be nice to have it backported to final 2.79.
2017-06-15Further improvements of text editor for POV-RayBastien Montagne
*tryed "#" as preprocessor used in POV-Ray for language keywords best behaviour was to have it as a punctuation symbol *moved "finish" to its proper category *changed order of some POV-Ray ini files keywords to have them work better *added a few keywords from latest pov version *Fixed C-style closing of multiline comments (*/) Reviewers: campbellbarton, mont29 Reviewed By: campbellbarton, mont29 Subscribers: mont29 Differential Revision: https://developer.blender.org/D2707
2017-06-02Cleanup: styleCampbell Barton
2017-05-23Fix some POV keywords not colored correctly.Bastien Montagne
We need to ensure longer keywords are catched first, when there are shorter subsets of them in keywords list as well!
2017-05-23Make msvc2015 happy again.Bastien Montagne
Looks like that wanabe compiler does not support more than a few tens of if/else conditions...
2017-05-22Add PovRay syntax hilghting.Bastien Montagne
Since we already have a rather advanced PovRay exporter, makes sense to also nicely display generated 'code'. Patch by Maurice Raybaud (@mauriceraybaud), thanks! Cleanup (mostly styling) by @mont29.
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-03-09Remove (ifdef) draw_documentation from text_draw.cDalai Felinto
This was no longer supported.
2017-01-13Fix missing user when opening text from ID UI widget.Bastien Montagne
Own mistake in recent fix for Text data-block usercount (rBa9163f7d2). Reported by @sergey over IRC, thanks.
2017-01-04Fix (IRC reported) bad handling of Text data-block user count.Bastien Montagne
Reported on IRC by dfelinto, thanks. Root of the issue was that opening a new text file would create datablock with one user, when Text editor is actually a 'user one' user. This was leaving Text datablocks in inconsitent user count, and generating asserts in BKE_library area. Also changed a weird piece of code related to that extra user thing in main remapping func.
2016-09-19UI Messages: Consistent spelling of term "data-block"Julian Eisel
Was using a bunch of different spellings, mostly "data-block" though, so went with that one (would have been my #1 choice anyway ;) )
2016-08-04UI: Correct tooltips for properties region toggle OPJulian Eisel
Now all consistent and using term "properties region" instead of "properties panel". Ideally we had a more generic operator for all those. Fixes T49006.
2016-07-06Replace of (id->lib != NULL) check by meaningful macro.Bastien Montagne
Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly, to easily change it (see work done in asset-engine branch). Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer, and not a check whether ID is linked or not. Will have a closer look at it later. Reviewers: campbellbarton, brecht, sergey Differential Revision: https://developer.blender.org/D2082
2016-06-27Fix (unreported) wrong ID type check in Text editor's ID remap callback.Bastien Montagne
2016-06-25Cleanup: get rid of BKE_text_unlink(), replace by usage of generic ↵Bastien Montagne
BKE_libblock_... API.
2016-06-22ID-Remap - Step one: core work (cleanup and rework of generic ID datablock ↵Bastien Montagne
handling). This commit changes a lot of how IDs are handled internally, especially the unlinking/freeing processes. So far, this was very fuzy, to summarize cleanly deleting or replacing a datablock was pretty much impossible, except for a few special cases. Also, unlinking was handled by each datatype, in a rather messy and prone-to-errors way (quite a few ID usages were missed or wrongly handled that way). One of the main goal of id-remap branch was to cleanup this, and fatorize ID links handling by using library_query utils to allow generic handling of those, which is now the case (now, generic ID links handling is only "knwon" from readfile.c and library_query.c). This commit also adds backends to allow live replacement and deletion of datablocks in Blender (so-called 'remapping' process, where we replace all usages of a given ID pointer by a new one, or NULL one in case of unlinking). This will allow nice new features, like ability to easily reload or relocate libraries, real immediate deletion of datablocks in blender, replacement of one datablock by another, etc. Some of those are for next commits. A word of warning: this commit is highly risky, because it affects potentially a lot in Blender core. Though it was tested rather deeply, being totally impossible to check all possible ID usage cases, it's likely there are some remaining issues and bugs in new code... Please report them! ;) Review task: D2027 (https://developer.blender.org/D2027). Reviewed by campbellbarton, thanks a bunch.
2016-06-14Text Editor: auto-complete removed entire word on undoCampbell Barton
2016-04-29Cleanup: warnings. spellingCampbell Barton
2016-04-19Fix T48198: Missing plus sign to open the tool shelf in text editorJulian Eisel
Did not happen when using screen layout saved in default startup.blend
2016-03-10Text Editor: Auto indent for backspace/deleteCampbell Barton
Editing with spaces + auto-indent didn't delete indentation as expected.
2016-03-05Cleanup: unnecessary comma useCampbell Barton
2016-02-07Cleanup: line widthCampbell Barton
2016-01-09Text Editor: Autocomplete suggestion wrap-aroundCampbell Barton
D1716 by @someonewithpc
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-12-31Cleanup: Py API namingCampbell Barton
Use BPY_execute_* prefix for all Python execution commands
2015-12-01Fix minor order of init error w/ text drawCampbell Barton
2015-12-01minor error in recent text-draw commitCampbell Barton
2015-12-01Text Editor: store font id in a drawing contextCampbell Barton
2015-11-28Cleanup: 'area' vs 'region'Julian Eisel
Apparently this is the result of some sloppiness during 2.5 project and since then it confused people who were trying to understand the area-region relation (myself included). Sorry if this causes merge conflicts for anyone, but at some point we really had to do it :/
2015-11-10Text Editor: use line-number color for marginCampbell Barton
also use stipple so you can see the cursor behind it.