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-06-28GLRefactor: partially remove gl calls from source/blender/editors.Ray Molenkamp
This translates the gl calls to the new GPU_ wrappers from D3501. Given it's tedious and repetitive work, this patch does as much as it can with search + replace, the remainder of the gl calls will need to be manually dealt with on a case by case basis. This fixes 13 of the 28 failing editors when building without opengl. For the list of substitutions see D3502 Reviewers: brecht Differential Revision: https://developer.blender.org/D3502
2018-06-11Cleanup: add simplified panel callbacksCampbell Barton
2018-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-06-04Cleanup: strip trailing space in editorsCampbell Barton
2018-06-01Merge branch 'master' into blender2.8Campbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-04-21Cleanup: Get rid of context in editor 'new' callbackJulian Eisel
Requiring context means we can't easily create new editors to replace deprecated ones in versioning code. Think it's reasonable to give editors access to scene and area data for their initial setup though. They mostly need it for setting "the view", as in, scrolling values. Also did minor cleanup in top-bar creation function.
2018-04-16Merge branch 'master' into blender2.8Campbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-02-09Merge branch 'master' into blender2.8Bastien Montagne
2018-02-09Fix (unreported) crash when duplicating a FileBrowser window in preview draw ↵Bastien Montagne
mode. We did not clear preview or smoothscroll timers pointers in copy code...
2018-01-29Fix more filebrowser not refreshing correctly after new message bus system.Bastien Montagne
This does not affect current blender2.8, but is mandatory for asset engine branch. Bottom line being, we also need to 'survey' changes in actual SpaceFileBrowser struct, not only its FileSelectParams sub-struct.
2018-01-29Fix filebrowser not refreshing correctly after new message bus system.Bastien Montagne
Generic ED_area_do_msg_notify_tag_refresh callback only tags area for refresh, not redraw. This was not updating view e.g. when changing ordering options in top region, until you'd mouse-over main filelisting region... So now, always tag area for redraw in filbrowser's refresh callback.
2017-12-04WM: message bus replacement for property notifiersCampbell Barton
Use dynamically generated message publish/subscribe so buttons and manipulators update properly. This resolves common glitches where manipulators weren't updating as well as the UI when add-ons exposed properties which hard coded listeners weren't checking for. Python can also publish/scribe changes via `bpy.msgbus`. See D2917
2017-10-16Workspace: Move engines to workspace and Properties Editor cleanupDalai Felinto
Engine is not stored in WorkSpaces. That defines the "context" engine, which is used for the entire UI. The engine used for the poll of nodes (add node menu, new nodes when "Use Nodes") is obtained from context. Introduce a ViewRender struct for viewport settings that are defined for workspaces and scene. This struct will be populated with the hand-picked settings that can be defined per workspace as per the 2.8 design. * use_scene_settings * properties editor: workshop + organize context path Use Scene Settings ================== For viewport drawing, Workspaces have an option to use the Scene render settings (F12) instead of the viewport settings. This way users can quickly preview the final render settings, engine and View Layer. This will affect all the editors in that workspace, and it will be clearly indicated in the top-bar. Properties Editor: Add Workspace and organize context path ========================================================== We now have the properties of: Scene, Scene > Layer, Scene > World, Workspace [Scene | Workspace] > Render Layer > Object [Scene | Workspace] > Render Layer > Object > Data (...) Reviewers: Campbell Barton, Julian Eisel Differential Revision: https://developer.blender.org/D2842
2017-07-19Merge branch 'master' into blender2.8Campbell Barton
2017-07-18Fix T52109: Folder search won't work when selecting animation output folder.Bastien Montagne
Text search would not run in case there was no 'type' enabled in filter buttons. Now instead consider that no types enabled == all types enabled.
2017-05-02Add scene argument for notifiersCampbell Barton
From workspaces branch
2016-10-03Fix missing operator-type registrationJulian Eisel
Removed in a7dbc0704f217a, but only should've removed default keymap entry.
2016-04-29Cleanup: warnings. spellingCampbell Barton
2015-12-03Fix T46918: - Cleanup - FileBrowser - get rid of useless operators and ↵Bastien Montagne
update a bit keymap. Looks like FILE_OT_hidedot was actually the only one to remove here. Also, added more common parentdir/previousdir/nextdir shortcuts, and R for reload.
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-04File Selector, support filepath droppingGaia Clary
This adds support for dropping a filepath on an open file-selector to set that path.
2015-08-23Fix T45882: Sudden shutdown if the filebrowser is part of the area layout.Bastien Montagne
There is no guarantee in sfile's listener that FileList has already been created...
2015-08-19Final 'FileBrowser First Stage' merge.Bastien Montagne
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser. From user perspective, it: * Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender! * Makes short/long display 'fixed' size (among four choices, like thumbnails mode). * Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories). * Consequently, adds datablocks types filtering. * Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared). * Generates thumbnails way faster. From code perspective, it: * Is ready for asset engine needs (on data structure level in filebrowser's listing). * Simplifies and makes 'generic' file listing much lighter. * Separates file listing in three different aspects: ** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct. ** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.). ** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one. * Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items. * Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs). * Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too). Revision: https://developer.blender.org/D1316 Thanks to Campbell & Sergey for the reviews. :)
2015-07-01Cleanup: Use bool instead of intJulian Eisel
2015-06-11File Browser Arrow Keys NavigationJulian Eisel
Adds support for selecting/deselecting files in File Browser using the arrow keys. All directions (up, down, left, right) are possible. When to Select, When to Deselect? Standard behaviour is selecting, however if we move into a block of already selected files (meaning 2+ files are selected) we start deselecting Possible Selection Methods Simple selection (arrow-key): All other files are deselected Expand selection (Shift+arrow key): Add to/remove from existing selection ill-Expand selection (Ctrl+Shift+arrow key): Add to/remove from existing selection and fill everything in-between From which file do we start navigating? From each available selection method (Mouse-, Walk-, All-, Border Select), we use the last selected file. If there's no selection at all we use the first (down/right arrow) or last (up/left arrow) file. (Ideally, the view would automatically be set to the new selection, but this behaviour overlaps with an other patch I've been working on, so prefer to do that separately) (Also tweaks color for highlighted file for better feedback) D1297, Review done by @campbellbarton, thx a lot :)
2015-04-07Revert Sticky Keys (and everything related to that)Julian Eisel
Our current keymap doesn't give us enough room to make such changes in the event system. To fix small issues caused by this, we would need to do drastic changes in Blender's keymaps and internal handling. It was worth a try, but it didn't work. I can write down a more descriptive statement in a few days, but for now I need a break of this stuff.
2015-04-03Sticky Keys backendJulian Eisel
Design task: T42339 Differential Revision: D840 Initial implementation proposal: T41867 Short description: With this we can distinguish between holding and tabbing a key. Useful is this if we want to assign to operators to a single shortcut. If two operators are assigned to one shortcut, we call this a sticky key. More info is accessible through the design task and the diff. A few people that were involved with this: * Sean Olson for stressing me with this burden ;) - It is his enthusiasm that pushed me forward to get this done * Campbell and Antony for the code and design review * Ton for the design review * All the other people that gave feedback on the patch and helped to make this possible A big "Thank You" for you all!
2015-02-17Quick fix/hack for too small 'operator' panel in filebrowserBastien Montagne
Real issue is that temp area used to draw modal filebrowser is never saved, so non of UI 'edits' (like UIList resize, regions resize, panels reorder, etc.) are ever saved. Should be addressed, but no time for that currently.
2015-02-16Fix T43684: File Browser is unusable on Windows Machines (do not ↵Bastien Montagne
BLI_is_dir() in draw loop!) Did not had any issue on linux, but looks like on some windows can slow things as Hell. Or maybe just the presence of some network FS? Anyway, not a good idea, so now fsmenu entries' valid status is stored and only evaluated on startup (reading of bookmarks & co) and when opening file browser (refresh, like for system bookmarks).
2015-02-11FileBrowser Bookmarks: fix issue with invalid bookmarks.Bastien Montagne
Reported by maxon through IRC, thanks. Invalid (inexistant) bookmarks would not be selectable, hence not removable. First, made invalid bookmarks grayed out in lists, so that user knows when there are some. Then, added a new 'cleanup' operator that removes all invalid bookmarks. This solution may not be completely satisfaying, but should do the work for now. I do not want to add back those ugly 'X' delete buttons for each entry in list, so better solution would be to make UIList able to select several items at once...
2015-02-11Fix crasher in own UIList bookmarks commit.Bastien Montagne
Immediate crash in merged asset-experiments branch, no idea why it did not show in master too?
2015-02-11FileBrowser: Editable Bookmarks.Bastien Montagne
Bookmarks are now editable (i.e. you can rename them, and reorder them). They are also listed in regular UILists, so you can filter/sort them as usual too. Also, FileBrowser 'T' side area is changed to something similar to 3DView one, in this case because we need op panel to remain at the bottom, and later because we'll more than likely need tabs here! Thanks to Campbell and Sergey for reviews. Differential Revision: https://developer.blender.org/D1093
2015-01-05FileBrowser: small tweak to new search feature: clear that string when ↵Bastien Montagne
changing dir. In 99% of cases, you do not want to keep the same filter when changing dir, and having to reset it by hand is *very* annoying!
2015-01-04FileBrowser: Cleanup: rename some (really ugly) enum names.Bastien Montagne
2015-01-03FileBrowser: add search field in header bar.Bastien Montagne
Not much to add, pretty straightforward...
2015-01-01SpaceFile: Tweak thumbnail to avoid restarting the job needlessly.Bastien Montagne
2015-01-01SpaceFile: Refactor sorting and filtering of filelist.Bastien Montagne
New code shall be more easy to maintain and extend. Sorting is now handled quite the same as filtering, and all filtering parameters are now packed into a sub-struct to help extending it later. Also done some optimizations in filelist refresh, and sorting/filtering area. Now we should avoid re-sorting and re-filtering too often, also removed calls to those in read_xxx funcs. Note thumbnail job is still started basically on each call to `file_refresh()`, will be addressed in next commit.
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-23Refactor: BLI_path_util (part 2)Campbell Barton
Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util
2014-11-23Refactor: BLI_path_util (split out app directory access)Campbell Barton
This module is intended for path manipulation functions but had utility functions added to access various directories.
2014-07-31Partial fix of T40824,Antony Riakiotakis
Fill selection for file browser moves to ctrl-shift click due to collision with emulate middle mouse button option
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-01-12UI: More consistency for T/N sidebars. Logic Editor Properties are on the ↵Thomas Dinges
right now as well, and File Browser Bookmark sidebar uses "T" key, as its on the right.
2013-12-20Fix bookmarks not appearing in file browser after "copy previous settings".Brecht Van Lommel
2013-11-29File Browser: autocomplete keeps focus in the file field when entering a folder.Brecht Van Lommel
There is a bunch of internal refactoring going on too: * No longer use operators to handle these directory and file fields, only makes things more complicated than they should be. * Handle autocomplete partial/full match deeper in the UI code * Directory field still does not keep focus, that's for another time to fix, you can already do pretty quick keyboard only navigation with the file field. Reviewed By: elubie Differential Revision: http://developer.blender.org/D29
2013-11-22Fix T37485: autocomplete while appending and autocomplete folder behaviour.Henrik Aarnio
This adds functionality to tab-autocomplete folders in the file browser file field, and the ability to autocomplete .blend files and their sub folders while linking. If only one match of a blend or a folder is found, it is opened, which applies to wildcards in the file field now. Reviewed By: elubie, brecht Differential Revision: http://developer.blender.org/D20
2013-10-08make bookmake name consistent was: FILE_OT_bookmark_add/FILE_OT_delete_bookmarkCampbell Barton