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-02-19Cleanup: sync vertex-paint and sculpt from 2.8Campbell Barton
Sync API changes from 2.8 to master.
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-07-01Fix ED_OT_undo_redo operatorAleksandr Zinovev
2017-03-14WM: free operators when repeatingCampbell Barton
Needed since the active operator isn't ensured to be the last.
2016-12-29Add new operator, ED_OT_undo_redo, to allow py tools to trigger that action.Bastien Montagne
Patch D2430 by @raa, thanks.
2016-11-15Implement grouped undo option for operatorsDalai Felinto
This option makes an operator to not push a task to the undo stack if the previous stored elemen is the same operator or part of the same undo group. The main usage is for animation, so you can change frames to inspect the poses, and revert the previous pose without having to roll back tons of "change frame" operator, or even see the undo stack full. This complements rB13ee9b8e Design with help by Sergey Sharybin. Reviewers: sergey, mont29 Reviewed By: mont29, sergey Subscribers: pyc0d3r, hjalti, Severin, lowercase, brecht, monio, aligorith, hadrien, jbakker Differential Revision: https://developer.blender.org/D2330
2016-05-09Fix T48388: Undo history sculpt mode not visibleCampbell Barton
2016-04-25Refactor BKE_blender into separate headersCampbell Barton
- BKE_blender_version.h (only version defines & versionstr). - BKE_blender_copybuffer.h (currently only used for view3d copy/paste). - BKE_blender_undo.h (global undo functions). - BKE_blendfile.h (high level blend file read/write API).
2015-11-23Cleanup: shadowing (editors)Campbell Barton
2015-10-28Cleanup: warning/styleCampbell Barton
2015-10-28Fix T46471: Sculpt strokes doesn't mark file as modifiedSergey Sharybin
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-04-18Cleanup: API naming use BKE_undo_ prefixCampbell Barton
2015-02-06cleanup: styleCampbell Barton
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-18Make it possible to use preview/viewport render job kill without contextSergey Sharybin
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-09-16Fix T41818: Missing refresh on Undo for nodes (mask example)Sergey Sharybin
Added a special notifier now NC_WM|ND_UNDO in order to deal with such cases and now compositor/image will refresh when undo happens. There are much more ways to fail compo to update the resul, like undoing while it's not visible and so, but as mont29 said -- let's at least fix obvious crap in the workflow.
2014-06-23Add ED_paint.h, split out ED_sculpt.hCampbell Barton
also rename some functions to match our convention
2014-06-14UI: Add support for popups to refresh their layput (D578)Campbell Barton
This is needed for popups to chance state once activated, currently it makes use of operators `check` callback, after values are modified, as the file selector does already.
2014-05-14Fix T37796, Mesh lost after exiting sculpt mode and undoing.Antony Riakiotakis
Issue here is that upon entering sculpt mode, the mesh (and the object mode) is stored in global undo. Now made the code similar to edit mode, but since we don't really have any operator to push, this is just ignored for now. I have tried just disabling the sculpt toggle operator undo flag but this didn't work due to the nature recursive of the operator calls
2014-05-13Fix T39196, Dynamic Topology Undo Applied to Wrong MeshAntony Riakiotakis
Undoing nodes that do not belong to the current object will cause the saved bmesh log entry to be reverted instead. This entry can belong to another object though. This is easy to fix by enforcing name matching (this was borrowed by edit mode but can definitely be improved) between current object name and undo node name and deleting older entries. However there are complications. Deleting dyntopo entries in this way can leave a brush stroke as first dyntopo log entry. This can present issues if we attempt to delete that entry since it's deleted mesh elements may now have had their ids (which would still be valid at the time) cleaned up. This can result in crashing if we attempt to resculpt on the mesh. To fix this I have disabled releasing the deleted entries. This entanglement between bm_log and undo is quite volatile but I hope the system works better now. Also minor cleanup, fix unneeded check warning
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-15Fix T39234: popup menus behave poorly when they have not enough width for ↵Bastien Montagne
all their columns. Issue fixed by: * Not having constant width for all columns, but adapt each to its content's width; * Adapting undo's menu height to undo list length (so that we never have more than three columns). It is still possible to get issues in extreme cases (small screen, high DPI size, long op names everywhere...), but this should now be rare corner cases. Also fixes a minor glitch with undo menu (first column had one item less than the others...).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-14Some corrections to previous commit. Undo stack could return 0 or returnAntony Riakiotakis
global undo even if not set in preferences.
2014-03-14Fix T39156 part 2: Add support for image paint operations in undoAntony Riakiotakis
history operator (Ctrl + Alt + Z). This will only show paint operations now while in an image paint mode. The caveat is that user can delete previous paint operations too (even on images not on the canvas currently) so it needs some care. This is consistent with regular undo behaviour though. Sculpting also suffers from lack of Undo history support, this will be added in a separate commit.
2014-02-15UI: fix for glitch where active button became inactive on undoCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2013-07-10Fix #36075: editing shading nodes could still crash blender internal renderedBrecht Van Lommel
draw mode. This happens because it uses node data structures in threads, now it does same as preview render, which is to immediately stop the render thread when e.g. deleting nodes.
2013-07-09Fix #35979, #35937, #35739: undo crashes and missing updates with blenderBrecht Van Lommel
internal viewport rendering. Lots of tweaks here, mainly: * Stop 3D viewport render and free database before undo. * Accumulate update flags rather than replace them each time it rerenders, to avoid previous updates getting lost. * Don't check against Render struct view parameters for changes, those are set in the job thread which might not run before the next update call.
2013-06-25Include DNA_scene_types before ED_object instead of forward enum declarationSergey Sharybin
Forward enum declaration is a bad idea, especially for C++ which requires enum specification to dteermine which data type to use to store it. Alternative would be to not use enum as an arument and pass it as int, but actually would rather be strict on typing -- using explicit enum as parameter type helps understanding the code and prevents possible mistakes when using the function.
2013-04-05Bug fix #34866Ton Roosendaal
Global undo/redo now clears the local undo editmode stack entirely. Error goes back to the 2.3 days, when undo was added. Global undo refreshes the entire internal database, so all ID pointers get invalid. This cases editmode undo storage to fail, if it uses ID pointers as well. The error was that for any Mesh undo stack, a single global undo would make the mesh stack corrupt. Back in edit mode, on undo you'd lose assigned texture images, or get bad crashes. The downside is that people expect this to work... it's a fun feature to maintain stacks separately. Having this instable is not acceptable though. Needs quite some redesign work to solve it (like Dalai's kill-the-tface project :)
2013-03-13code cleanup: use const events for modal and invoke operators.Campbell Barton
2013-02-26revert some changes from own commit r54850 which broke undo for toggle ↵Campbell Barton
buttons, also make toggle buttons auto-key.
2013-01-30Add active region for operator execution.Campbell Barton
This means you can for example, uv unwrap in quad-view and change settings in the toolbar without defaulting back to the first quad-view region available. This may be displayed to the user later, for now this is set on executing registrable operators.
2013-01-30fix [#33740] Incorecct UV mapping from camera viewCampbell Barton
Bug was in fact that the options for this operator couldn't be accessed (unless you knew to press f6), now the redo panel sets the window area before polling. Now other operators that use the window region will show settings too.
2012-12-30Disable fall through to global undo from paint/sculpt undoNicholas Bishop
Undoing/redoing in sculpt and other paint modes should only use the mode-specific undo, not global undo. It is now consistent with edit mode and avoids tricky interaction between the two systems.
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-09-12fix [#31019] [Minor] Freshly added nodes aren't getting undo pushCampbell Barton
also noticed ED_undo_push was checking USER_GLOBALUNDO unnecessarily
2012-09-10code cleanup: use single define for undo string size, was 64 mostly, but 512 ↵Campbell Barton
in the UI.
2012-08-15add wm job types they are not used yet, so this just defines them for new ↵Campbell Barton
jobs add add argument to search by job type.
2012-07-25image space now has a mode for view/paint/mask editing.Campbell Barton
2012-06-20style cleanup: use TRUE/FALSE for ui align args.Campbell Barton
2012-06-01Style and typo fixesJoshua Leung
2012-05-19code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also ↵Campbell Barton
replace do prefix with do_ for bool vars.
2012-04-28code cleanup: replace some long ELEM7 checks with macro ↵Campbell Barton
OB_TYPE_SUPPORT_EDITMODE()
2012-04-21style cleanup: correct typosCampbell Barton
2012-04-13Fixed (or partly fixed) various missing UI translations, mainly with some ↵Bastien Montagne
specific ops invocations (popup menus…), and (to some extent) with the undo/redo stuff.
2012-03-31move debug flag into its own global var (G.debug), split up debug options.Campbell Barton
--debug --debug-ffmpeg --debug-python --debug-events --debug-wm This makes debug output easier to read - event debug prints would flood output too much before. For convenience: --debug-all turns all debug flags on (works as --debug did before). also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.