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
2019-03-18UI: clarify "Remap Relative" tooltipCampbell Barton
Resolves T62612
2019-03-16Fix ID user counting issues with NodeCustomGroup.Miguel Porces
User counting now happens before init() and after free() methods, so that the ID users are in a valid state when Python might modify them. ID user counting was moved into node.c and simplified. Patch by Miguel with further refactoring by Brecht. Ref D4370.
2019-03-15Tool System: use categories for tool identifiersCampbell Barton
Tools that come with Blender use 'builtin' or 'builtin_brush' prefix.
2019-03-15Tool System: split UI label from tool identifiersCampbell Barton
Prepare for exposing tool registration to the Python API. - Generated tools can use their own prefix so naming collisions won't happen between hard coded & generated tools. - Add-on authors can use the add-on name as a prefix. Currently the names match, renaming will happen next.
2019-03-13Cleanup: rename uiBlock.mx,my to bounds_offsetCampbell Barton
Use a name that related to block bounds calculation (mx/my are typically used for mouse x,y).
2019-03-08Fix T60978: crash toggling window fullscreen on macOS.Brecht Van Lommel
GHOST event handling does not need a window in the context, and restoring it to the previous value is problematic if the window was deleted in the meantime.
2019-03-08Cleanup: remove unused test break code for handling cancels.Brecht Van Lommel
2019-03-08Cleanup: make modal event double click handling more straightforwardCampbell Barton
2019-03-08WM: fix double click handling in modal keymapsCampbell Barton
Model keymaps wasn't matching double-click events with press as is done in regular keymap handling.
2019-03-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-03-07Fix gizmos not responding to theme color updatesCampbell Barton
Re-create gizmos when changing theme colors, since theme colors don't change often this allows gizmos to setup their colors on initialization.
2019-03-07Tool System: use set/add/subtract for all lasso select operatorsCampbell Barton
2019-03-07Fix T62280: driver functions added in load_post broken after recent changes.Brecht Van Lommel
Evaluate the dependency graph a bit later still. This kind of worked before because it was using the drive namespace from the previously loaded .blend file but that's of course wrong.
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-03-05Fix T61063, T62195: Python scripts should run before depsgraph evaluation.Brecht Van Lommel
This was changed (accidentally?) in d192d723123a, now go back to behavior more similar to 2.7. Python scripts should be able to set up drivers or do other changes that will then be taken into account when evaluating the scene for the first time. The more tricky thing is that Python scripts now run before ED_editors_init, but given what happens in there it seems safe.
2019-03-05Tool System: use set/add/subtract for all circle select operatorsCampbell Barton
This applies changes from the 3D view circle select to other operators.
2019-03-04Outliner: better support for paintcurves ('Blender File' view)Philipp Oeser
- paintcurves were hitting an assert in outliner_add_element() - missing outliner update when adding a paintcurve - paintcurves were not showing an icon [they dont have a dedicated icon, took the one used elsewhere] Reviewers: brecht Differential Revision: https://developer.blender.org/D4445
2019-03-04Cleanup: typo in commentPhilipp Oeser
spotted by @miclack, thx!
2019-03-01WM: add gesture variable to detect first executionCampbell Barton
Needed for circle select to replace the current selection.
2019-03-01WM: improve support for binding actions to modifier keysCampbell Barton
Previously a modifier key-map type only worked when the same key was enabled as a modifier as well. This allows for users to assign an action to double-tap-shift for eg.
2019-03-01Cleanup: Use braces in event matching logicCampbell Barton
Also no need to map the event type for inactive keys.
2019-02-28UI: rename Quit Prompt to Save PromptCampbell Barton
Eventually this should be used to prompt when loading a new file too.
2019-02-28UI: change behavior for quit promptCampbell Barton
Remove confirmation popup menu, just exit. Note that this option is mainly for developers or people reviewing blend files, see D4406 for discussion on reason for keeping this feature while simplifying how it works.
2019-02-27Cleanup: Main struct member namesCampbell Barton
Rename latt to lattice and don't use plural names.
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-26Cleanup: indentation, trailing spaceCampbell Barton
2019-02-23Cleanup: use function instead of extern variableCampbell Barton
Quiet undeclared variable warning.
2019-02-21UI: better widget drawing with thick line width.Harley Acheson
When the line width was larger than the UI scale, there was not enough space for thicker widget outlines to draw properly. Now widgets are made a little larger to accommodate the thicker outlines. Differential Revision: https://developer.blender.org/D4368
2019-02-21UI: improve corner splitting feedback by showing custom cursors.Harley Acheson
* Two cursors for horizontal and vertical split. * Four cursors for each join direction. * One cursor to indicate when splitting is not possible. Differential Revision: https://developer.blender.org/D4264
2019-02-20Fix File > Save not showing red highlight when saving over existing files.Brecht Van Lommel
Don't disable the save over popup through the keymap, just remove it entirely from the code so that the file browser interprets the property correctly.
2019-02-20Cleanup: rename keymap handler callbacks for clarityCampbell Barton
Now there are two callbacks, the name 'keymap_callback' is too vague.
2019-02-20WM: support dynamic keymap handlersCampbell Barton
Add getter callback support for 'WM_HANDLER_TYPE_KEYMAP' type handlers this is needed for key-maps which change based on the active tool. Replaces 'sneaky_handler' hack which temporarily inserted a handler.
2019-02-20Cleanup: rename generic handler -> handler_baseCampbell Barton
Avoids having type specific handler names.
2019-02-20Cleanup: simplify handler type conditionalCampbell Barton
Each handler type now has it's own block (fileselect was an exception).
2019-02-20Cleanup: rename wmEventHandler_* base -> headCampbell Barton
Makes it more clear it's the header/start of the struct.
2019-02-20Cleanup: use iterator macros for event handlersCampbell Barton
2019-02-19Fix T61683: Linking the instance of a collection crashes Blender.Bastien Montagne
Do not instance linked object immediately in scene, this was never a good idea and is doomed to fail nowadays, with complex relations between objects, collections and scenes. Instead, this commit refactors a bit linking code to add loose objects to current scene *after* everything has been imported, and ID pointers have been properly remapped to new ones - i.e. once new linked data is supposed to be fully valid, just like we were already doing with collections. As a bonus, it means we do not have to pass around scene, view3d etc. to `BLO_library_link_named_part_ex()` and co.
2019-02-19Playanim: Fix heap use after free on exitSergey Sharybin
Was caused by the wrong de-initialization order, here is an ASAN log just in case P916.
2019-02-19Fix T61594: Frame playback is blankSergey Sharybin
Viewport and scissor were never initialized prior to window move/resize.
2019-02-19Cleanup: return specific handler typesCampbell Barton
2019-02-19Cleanup: remove unused default handler typeCampbell Barton
2019-02-19WM: move keymap handler to it's own typeCampbell Barton
Illuminate dead code, using wmEventHandler_KeymapFn from gizmo handler type where it was never set.
2019-02-19WM: move dropbox handler to it's own typeCampbell Barton
2019-02-19WM: move operator handler to it's own typeCampbell Barton
2019-02-19WM: move UI handler to it's own typeCampbell Barton
2019-02-19WM: move gizmo handler to it's own typeCampbell Barton
2019-02-19WM: move wmEventHandler.type to a booleanCampbell Barton
Currently it's effectively a boolean for file-select handlers. Prepare for refactoring event handlers into their own types (keymap, operator, gizmo, ui & dropbox) to help make logic easier to follow.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-16Cleanup: rename SPACE_IPO -> SPACE_GRAPHCampbell Barton
2019-02-15Fix T60905: Crash using smooth toolCampbell Barton
Tools were relying on gizmos drawing to initialize their gizmos, now tool gizmos are initialized immediately.