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-10-04WM: Utilities for select operators to work with click-dragging itemsJulian Eisel
Based on work by Bastien and Brecht in the Node Editor, this adds more generalized support for selecting items so that click+drag actions on items (nodes, makers, dopesheet keys, etc.) works as wanted. Note that this only adds the barebones to support this in other editors, it's not used yet (will be done in followup commits). The behavior is supposed to work as follows: * Clicking an unselected item immediately selects it, and deselects other items (doesn't wait for release events). * Click+drag on an unselected item immediately selects it, deselects others and drags it in one go (don't require selecting it first!). * Click+drag on a selected item won't change the selection state (and won't send an undo push) and start dragging all selected items as soon as the drag event is recognized. * Clicking on a selected item will still deselect others, but that will only happen on mouse release, when we know the intention is not to drag the item. Included in: https://developer.blender.org/D5979 Reviewed by: Brecht van Lommel, William Reynish
2019-10-04Fix T70499: Can't change Brush Texture Rotation without holding the Shift key.Pablo Dobarro
Reviewed By: brecht Maniphest Tasks: T70499 Differential Revision: https://developer.blender.org/D5985
2019-10-02Fix T70310: Difficult to change brush size from big to smallPablo Dobarro
Changing this values should only support horizontal movement as we are no longer trying to match the size of the cursor and the size of the circle preview in the widget. Reviewed By: brecht Maniphest Tasks: T70310 Differential Revision: https://developer.blender.org/D5931
2019-09-27Sculpt: Sculpt cursor UX improvementsPablo Dobarro
This commit introduces the following changes: - Invert the direction of the brush strength WM control. It was working in the opposite direction to any other control in Blender. Now dragging to the right increases the strength. - Increase the alpha of the cursor - Remove the font shadow of the numbers in the WM control. It was adding too much visual noise when rendered on top of the brush alpha - Add a second circle to preview the strength in the cursor - Increase the resolution of the cursor circles. Now they look smooth even when working with large brush sizes. - Add a line preview to display the brush curve - Don't offset the cursor preview when changing size and strength Reviewed By: billreynish, brecht Differential Revision: https://developer.blender.org/D5889
2019-09-19Fix T70033: Crash editing keymap operatorCampbell Barton
Expanding operator names could buffer overrun.
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-27UI: fix some menus and popups not taking into account UI scale for paddingYevgeny Makarov
Differential Revision: https://developer.blender.org/D5581
2019-08-27UI: make layout in adjust last operator popup consistent with corner panelYevgeny Makarov
Differential Revision: https://developer.blender.org/D5581
2019-08-26Cleanup: use BLI_assertCampbell Barton
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-17Cleanup: spellingCampbell Barton
2019-08-14Cleanup: use doxy sections for wm_operators.cCampbell Barton
2019-08-14Cleanup: headersCampbell Barton
2019-08-14Cleanup: split out splash screen into own fileCampbell Barton
`wm_operators.c` is mainly for generic operator logic where as the splash screen is one of a kind.
2019-08-14Cleanup: move trailing comments to avoid wrapping codeCampbell Barton
Some statements were split across multiple lines because of their trailing comments. In most cases it's clearer to put the comments above.
2019-08-02Fix most (if not all) untranslated Panel-labels reported in T66731.Bastien Montagne
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-16Fix error in app-template image size checkCampbell Barton
2019-07-11Cleanup: quiet warningCampbell Barton
2019-07-10Fix strict compiler warningSergey Sharybin
2019-07-10Splash: put version number in top right, refactor code for easier changesBrecht Van Lommel
2019-07-10Fix splash screen margins not being even and buttons not centeredBrecht Van Lommel
2019-07-07Fix crash running an operator from a popup,Campbell Barton
Cell fracture redraw option was crashing. Change operator popup behavior to close the UI before executing since the operator may perform operations which change/remove the UI.
2019-06-13Clear Datablocks Preview: add some more generic options.Bastien Montagne
Sometimes one may want to nuke all previews altogether, running the operator for all eight individual ID types would be tedious then...
2019-06-04Fix status bar and keymap editor showing Call Menu instead of menu nameBrecht Van Lommel
2019-05-21Fix T64421: crash using redraw timer benchmarkBrecht Van Lommel
2019-05-16Refactor: Simplify ID Property freeingJacques Lucke
This also makes `IDP_CopyProperty` the "opposite" of `IDP_FreeProperty`, which is what I'd expect. Two refactoring steps: * rename IDP_FreeProperty to IDP_FreePropertyContent * new IDP_FreeProperty function that actually frees the property Reviewers: brecht Differential Revision: https://developer.blender.org/D4872
2019-05-14Interface: Free argument callback for popupsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4858
2019-05-14UI: Confirm dialog when closing an unsaved fileJacques Lucke
The complexity in this patch comes from the fact that the current operator system does not support multi-step user interactions well. More specifically, for this to work, we need to show a confirm dialog and a file browser afterwards. We decided that it is easier to keep everything in a single operator, instead of creating separate operators that invoke each other. So, now the `WM_OT_open_mainfile` operator invokes itself in different states. It implements a simple finite state machine to manage the states. The dialog itself is expected to be improved in a future commit. See D4829 for more details. Reviewers: brecht Differential Revision: https://developer.blender.org/D4829
2019-05-13Preferences: support loading factory preferencesCampbell Barton
Previously it was only possible to load factory startup & preferences.
2019-05-13Prefernces: support loading last saved preferencesCampbell Barton
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-25Fix T63494: linked scenes missing from sequencer Add > Scene menuPhilipp Oeser
Differential Revision: https://developer.blender.org/D4674
2019-04-20Cleanup: comment line length (windowmanager)Campbell Barton
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-13Cleanup: style, use braces for the window managerCampbell Barton
2019-03-27UI: use active-default button flag for operator confirmationCampbell Barton
2019-03-25GPU: State: Replace GL_BLEND by GPU_blendClément Foucault
2019-03-25Cleanup: pass const image data to IMB_ibImageFromMemoryCampbell Barton
2019-03-24GPU: State: Replace GL_LINE_SMOOTH by GPU_line_smoothClément Foucault
2019-03-21UI: replace button open event with activate on initCampbell Barton
No user visible change.
2019-03-20UI: support for popups starting with buttons activatedCampbell Barton
While this could already be done from C, this is now exposed to Python
2019-03-19Fix T61368: Brush texture preview ignores rotationCampbell Barton
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-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-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-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light