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
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-15Cleanup: use 'const' style argumentCampbell Barton
2020-03-14UI: Larger Alert IconsHarley Acheson
Adding a set of larger icons for use in informational dialogs. Differential Revision: https://developer.blender.org/D6859 Reviewed by Campbell Barton
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-02-13Fix T71112: UILayout.activate_init when used in popups that refreshCampbell Barton
2020-02-13Fix crash using 'activate_init' in popup menusCampbell Barton
Reported in T71112
2019-11-25CMake: support building without PythonCampbell Barton
Resolve linking issues, warnings.
2019-10-27Cleanup: remove redundant NULL checksCampbell Barton
2019-10-16Fix incorrect limit check in button drawingCampbell Barton
Regression in d617466d87863d75a
2019-10-10Fix T70691: Crash picking object from eyedropperCampbell Barton
Caused by 828905190e124
2019-09-30Fix T58683: Reload Scripts breaks toolbar button formattingCampbell Barton
Add a function which clears internal cached operator pointers, run before reloading scripts.
2019-09-09UI: Refactor and improve buttton extra iconsJulian Eisel
Without this patch there could only be one superimposed icon and the operators were hard coded for the button types. This keeps the previous, sort of predefined extra icons working in a rather generic way, but allows adding specific ones for specific case through `UI_but_extra_operator_icon_set()`. Reviewed by: Campbell Barton Differential Revision: https://developer.blender.org/D5730
2019-09-06Python API: implement an Operator callback for dynamic description.Alexander Gavrilov
Blender UI Layout API allows supplying parameters to operators via button definitions. If an operator behavior strongly depends on its parameters, it may be difficult to write a tooltip that covers all of its operation modes. Thus it is useful to provide a way for the operator to produce different descriptions based on the input info. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5709
2019-09-04Expose button UTF8 check in UI_interface.hJulian Eisel
Used in following commit.
2019-08-30Cleanup: spellingCampbell Barton
2019-08-30UI: assert on invalid click-step for integer buttonsCampbell Barton
Avoids T69305 going by unnoticed.
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-15UI: Finalize old TODO in UI float number handling.Bastien Montagne
Just enable some commented-out code from rB636289b755f6ce (disabled at that time because we were too close of 2.79 release...). Issue raised in D5486, thanks.
2019-08-02Cleanup: quiet maybe-unused warningCampbell Barton
While harmless, use flow control that always sets the variable.
2019-07-01Fix T66246: Key accelerators crashing on save dialogCampbell Barton
2019-06-19UI: add popover access for button labelsCampbell Barton
Needed for tool-tips to access labels.
2019-06-19Fix button label access returning empty labelCampbell Barton
The check the buttons string has content (not just that it's non-NULL).
2019-06-17Inconsistent Percentage FormattingHarley Acheson
Percentage formatting of x% (used elsewhere) when using percentage display factor Differential Revision: https://developer.blender.org/D5050 Reviewed by Brecht Van Lommel
2019-06-17Cleanup: comment spellingCampbell Barton
2019-06-15Cleanup: Rename: Static Override -> Library Override.Bastien Montagne
Better to make internal code naming match official/UI naming to some extent, this will reduce confusion in the future. This is 'breaking' scripts and files that would use that feature, but since it is not yet officially supported nor exposed in 2.80, as far as that release is concerned, it is effectively a 'no functional changes' commit.
2019-06-04Fix status bar and keymap editor showing Call Menu instead of menu nameBrecht Van Lommel
2019-05-21UI: support drawing booleans with icons as check-boxesCampbell Barton
Previously, if a boolean happened to use an icon there was no way to make it display as a check-box from Python scripts. The previous logic meant we ended up having to edit the RNA. Since booleans with icons don't work well with the split-property layout (now used for most of the interface). Icons were being removed from RNA then added back using awkward Python ternary expressions in the interface scripts. The toggle argument now has an unset state (-1). - toggle=True: no checkbox (emboss). - toggle=False: always use a checkbox (no icon). - toggle=(unset/-1): depends on the icon status, default as before. Since toggle=False was default, this isn't used in existing UI logic.
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.
2019-05-20UI: add Visibility panel for objectsDalai Felinto
The outliner should not be the only way for users to change these settings. The Python API was extended to keep these properties positive and keyframable. Differential Revision: https://developer.blender.org/D4889
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
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-16Minor change to last commitCampbell Barton
Don't show a background for the toolbar.
2019-05-16UI: Draw background for headerless panels with region-overlapCampbell Barton
These were drawing without a backdrop.
2019-05-11Outliner Visibility UpdateDalai Felinto
See T61578 for discussions and mockups. Visibility Options ================== We are adding more granular control over restriction columns in the outliner, exposing "indirect only" and "holdout" as options, and change the way users enable/disable collections in a viewlayer. We also rename the object viewport restriction to hide instance. So the options we have are: Collection ---------- * Render Visibility * Instance Visibility * Selectable (View) Layer Collection ----------------------- * Enable * Holdout * Indirect Only * Viewport Shortcuts ========= Isolate Collection ------------------ * Ctr + click isolates the collection. It turns all its parents and children "visible", and all the other collections "invisible". If ALL the collections were already properly set, we re-set the collections to their default value. Set Collection Inside Collections and Objects --------------------------------------------- * Shift + click: Set/unset inside collections and objects. We only set objects values as well when we are in View Layer mode and (obviously) when the objects have a matching property. Icons ===== Little reminder that we will need better icons for holdout, indirect only, and probably instanced (nothing wrong with the current, but it differs from the proposal when it is turned off). Also, we need to decide where do we want the modifier/bones/... icons to be (in which column) and ideally make sure their icons match the ones we use for collections/objects. At the moment those are using the screen icon, which is not being used by collections. Reviewers: brecht, billrey Subscribers: pablovazquez Differential Revision: https://developer.blender.org/D4823
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-23UI: add ui_window_to_block_rctf, ui_window_to_region_rctiCampbell Barton
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-17Cleanup: comment length in interfaceCampbell 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-16Clenaup: odd use of ternary operatorsCampbell Barton
2019-04-01Remove evaluated RNA pointer lookup in interfaceSergey Sharybin
Since there is a flush of evaluated values back to the original for an active dependency graph we don't need this lookup anymore. Not only it slows interface drawing down, but also is becoming in a way of the upcoming fix.
2019-03-26Fix T62515: crash when rendering finishes with mouse over progress bar.Brecht Van Lommel
Tooltip should be copied entirely, not just the the argument because then the function and argument don't always match.
2019-03-25RNA: add UILayout.prop_with_menu functionCampbell Barton
Matches prop_with_popover, supporting menu types, useful if we want to control behavior of enum switching.
2019-03-25RNA: rename prop_popover_enum to prop_with_popoverCampbell Barton
A version for menu's is going to be added next and we already have UILayout.prop_menu_enum. This name indicates the popover is added behavior instead of a different kind of widget.
2019-03-25UI: add UILayout.prop_popover_enum functionCampbell Barton
Support for RNA enum buttons that activate popovers when clicked. This means we get useful tooltips, shortcuts and Ctrl-Wheel cycling over enum items. It also avoids inconvenient & slow access of enum values currently done via RNA type lookups on the type to get the name & icon to use for a regular popover button. Resolves T57738
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-20Fix T60815: drag & drop crash when search menu is opened immediately after.Brecht Van Lommel
Patch by matc, some further refactoring by me. Differential Revision: https://developer.blender.org/D4250
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