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
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-13Fix T48595: UI glitch with driver menu re-openingCampbell Barton
Holding Ctrl-D would keep opening driver menus.
2016-06-10GPU: use basic-shader for line-stippleCampbell Barton
2016-06-09GPU: avoid multiple bind calls in GPU_draw_pbvh_buffersCampbell Barton
Also add utility functions: GPU_basic_shader_bind_enable/disable so we don't have to get the previous state every time and manipulate it
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-06-08Make uiLists placed in popups usableJulian Eisel
It's still not completely working - there are still some glitches - but far better than before. To make buttons of the uiList work, you have to add a 'check' callback to the operator that invokes the menu. Only if it returns True, the uiList gets refreshed. To avoid this we have to make the region refresh tagging in the entire button handling a bit smarter. Changes I had to do: * Call uiList handling from menu/popup handling if needed. * Make uiList handling use special popup refresh tag if placed in menu. * Allow popups invoked from py operator to tag for refresh by using operator 'check' callback. * Tag popup for refresh when resizing uiList. Mostly fixes T48612.
2016-06-07GPU: Fix for glDrawPixels drawing w/ glsl shaderCampbell Barton
The basic shader needs to be temporarily disabled in this case. Add macros for temp store/restoring the state.
2016-06-02Fix leak using UI_BTYPE_TEXT button w/o a callbackJulian Eisel
Moving ownership of the string to the button's 'rename_orig' leaked when the button didn't have a uiAfterFunc.
2016-06-01Usual UI/i18n message cleanup (get rid of last remaining 'addon' too).Bastien Montagne
2016-06-01Fix/Workaround T48560: Color picker V fail w/ user defined RNACampbell Barton
Set the maximum soft-max to 1.0 when its left at FLT_MAX. Since this causes problems using the slider.
2016-05-28Fix T48534: color picker hex #RRGGBB input allows typing one character too many.Brecht Van Lommel
Fix suggested by Daniel Rivera.
2016-05-19Cleanup: warningsCampbell Barton
2016-05-18Theme Color Sets - Dynamically generated iconsJoshua Leung
The theme color set selector (for Bone Groups) will now show previews of what each color set looks like. It does so using a 3-color band icon.
2016-05-16Fix T48447: Inactive menu items don't grey-out iconsCampbell Barton
2016-05-06Fix T47657: Using template_list() with invoke_props_dialog()Bastien Montagne
popups have no wm_region in context, using wm_menu here. Not working perfect, but at least it prevents crash.
2016-05-06Cleanup: warningsCampbell Barton
Values set but not used
2016-05-05Cleanup: styleCampbell Barton
2016-05-04Fix T48210: Editing all selected buttons fails to auto-keyCampbell Barton
2016-05-04UI: avoid getting the active button when its already knownCampbell Barton
2016-05-03Fix 3D View panel header color wrong after theme resetJulian Eisel
Caused by wrong alpha value in rB34b30f847429ac (used 0.01, should've been 0.1). Also made sure all editors initialize same default theme values for panels and cleaned up code a bit. Works fine with old userpref.blend files.
2016-05-03Cache whether current translation language supports IME or notSergey Sharybin
Solves the weak point mentionedi n previous commit.
2016-05-03Fix T47841: Shift-space doesn't type space in type-in fields on WindowsSergey Sharybin
Shift-space was reserved for IME support, however IME will only be enabled on certain languages. We can avoid any IME-related exceptions form other languages without too much trouble. There's one weak point around ui_ime_is_lang_supported() tho, which is it might be doing string comparison a bit too much often now, this we can avoid by handling those checks from BLT.
2016-05-03UI: limit listview arrow/wheel bindingsCampbell Barton
Allow Ctrl-Up for eg to be used when in a list view.
2016-05-03UI: don't show tips when navigating ui-listCampbell Barton
2016-04-29Cleanup: warnings. spellingCampbell 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).
2016-04-23Event system: Let event pass through after menu poll failsJulian Eisel
Part 2 of Fix for T48200. Without this, it's not possible to exit GPencil edit mode using tab key with pies enabled. Menus are somehow similar to operators, which let the event pass through too after operator poll returns 0. So think we should handle them similar here. Can't guarantee this is totally safe though ;)
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-04-19Toggle to standard cursor when opening menus/popupsJulian Eisel
Cursor is now set to standard arrow-cursor when opening menu, and reset to previous one when closing it. Previously it just stayed as it was before, e.g. the edit mode cross-cursor stayed active even if a menu was opened. Fixes T48192.
2016-04-18Fix: Make it easier to tell if Color Swatches are greyed out or notJoshua Leung
This commit makes disabled/inactive color swatches look more obviously disabled by halving their alpha values. It is necessary because the results of ui_widget_color_disabled() (which is usually used when disabling widgets) get overwritten by the color filling code here. To avoid confusion, the checkerboard background (when the color genuinely has alpha) will still only show in those cases. That is, when disabled, color swatches won't show the checkerboard unless the color actually has an alpha component if it wasn't disabled.
2016-04-17Fix T48171: activating spacebar search menu over text button activates it or ↵Brecht Van Lommel
shows tooltip.
2016-04-15UI: copy to selected: add 'single'/'all' options to buttons' menu when relevant.Bastien Montagne
Same as reset or anim keyframe/driver operators... Inconsistency reported by Leon Cheung through IRC, thanks.
2016-04-02Fix T48030: Can't zoom VSE properties panelCampbell Barton
2016-04-01Fix T48001: Highlighting selected item in filtered lists.Bastien Montagne
active index was not reset to 'nothing' in case actual active item was filtered out.
2016-04-01Cleanup: style/spellingCampbell Barton
2016-03-31Fix memory leak when assigning driverJulian Eisel
Also added NULL-checks for RNA paths, though they might be a bit paranoid.
2016-03-29RMB Menu: Add icons for delineating each cluster of options in this menuJoshua Leung
From T33052 by Harley Acheson (harley)
2016-03-29Drivers Setup: Expose all mapping types for creating driversJoshua Leung
* This includes the "manually create" modes, which correspond to the previous behaviour for setting up drivers. This is necessary when the current screen layout is not well suited to having multiple property editors open (e.g. small screen or heavily subdivided screen). * Only the modes relevant for the current property type (i.e. array vs single) will be shown * The "Add Driver" entries in the RMB context menu have now been replaced by a submenu which will list all the available mapping types. * NOTE: The code for the ANIM_OT_button_driver_add() operator is perhaps a bit hairy. However, it currently allows us to have the desired behaviour. It can always get cleaned up later though.
2016-03-28T47532: Pop-ups drop fast mouse clicksJulian Eisel
Caused by rBc24be7ec6e5. Before rBc24be7ec6e5, wm_handlers_do always called handlers a second time with event value KM_PRESS in case of a double click. After it, this was only the case for non-LEFTMOUSE events. Since ui_popup_handler (almost) always returned WM_UI_HANDLER_BREAK, the second handler iteration with KM_PRESS wouldn't run. This fix just makes sure we return WM_UI_HANDLER_CONTINUE for double click events instead (causing second iteration to run).
2016-03-27More tooltip tweaksJoshua Leung
The "UI_OT_eyedropper_id" operator only actually works in the 3D view, so change the tooltip to match that
2016-03-27Cleanup: Silence some compiler warningsSergey Sharybin
2016-03-27Code Cleanup - Split out the property-button-finding code so that it can be ↵Joshua Leung
used for other eyedroppers
2016-03-26Driver Setup Workflow Improvement: Property EyedropperJoshua Leung
This commit brings some long requested improvements to the workflow for setting up drivers, which should make it easier and faster to set up new drivers in a more interactive fashion. The new workflow is as follows: 1) Hover over the property (e.g. "Lamp Energy" or "Y Location") or properties ("Rotation") you wish to add drivers to. We'll refer to this as the "destination" 2) Ctrl-D to active the new "Add Drivers" eyedropper 3) Click on the property you want to use as the source/target. The property under the mouse will be used to drive the property you invoked Ctrl-D on. For example, to drive the X, Y, and Z location of the Cube using the Y Location of the Lamp, hover over any of the X/Y/Z location buttons, hit Ctrl-D, then click on the Y-Location button of the Lamp object. Drivers will be added to the X, Y, and Z Location properties of the Cube; each driver will have a single variable, which uses the Y-Location Transform Channel of the Lamp. Tips: - Transform properties will automatically create "Transform Channel" driver variables. Everything else will use "Single Property" ones - Due to the way that Blender's UI Context works, you'll need two Properties Panel instances open (and to have pinned one of the two to show the properties for the unselected object). It's slightly clunky, but necessary for implementing a workflow like this, as the UI cannot be manipulated while using eyedroppers to pick data. - The eyedropper operator implemented here actually has three modes of operation. 1) The "1-N" (one to many) mode is the default used for Ctrl-D, and "Add Driver to All" in the RMB Menu. This is the behaviour described above. 2) There's also a "1-1" (one to one) mode that is used for the "Add Single Driver" in the RMB Menu. 3) Finally, there's the "N-N" mode (many to many), which isn't currently exposed. The point of this is to allow mapping XYZ to XYZ elementwise (i.e. direct copying) which is useful for things like locations, rotations, scaling, and colours. Implementation Notes: - The bulk of the driver adding logic is in editors/animation/drivers.c, where most of the Driver UI operators and tools are defined - The property eyedropper code is in interface_eyedropper.c along with all the other eyedroppers (even though they don't share much actual code in common). However, this turns out to be necessary, as we can't get access to many of the low-level buttons API's otherwise. Todo: - It may be necessary to restore a way to access the old behaviour (i.e. "manual setup") in case it is not practical to immediately pick a property. - Other things to investigate here include extra hotkeys (e.g. Ctrl-Shift-D for Add Single?), and to expose the N-N mode. - Other things we could try include interactively applying scaling factors, picking multiple targets (e.g. for location difference and rotation difference drivers), and/or other ways of using these property picking methods.
2016-03-26Drivers Workflow: Change hotkey for "Add Drivers" to Ctrl-D (it was ↵Joshua Leung
previously just DKEY) Just using DKEY for this was resulting in too many drivers being accidentally created by users drawing using Grease Pencil. This change also works better with the following workflow changes to the driver setup process.
2016-03-24UI: search operator's by word prefixCampbell Barton
Would match middle of words which wasn't very useful in most cases.
2016-03-24Fix some typos and incorrect tooltips/descriptionsJoshua Leung
2016-03-24Driver Keyframing: Some tweaks to make inserting keyframes on Driver ↵Joshua Leung
F-Curves easier Now, when trying to insert a keyframe on a driven property (using IKEY, or with autokeying enabled), the keyframes will get created on the Driver's F-Curve (instead of creating a new FCurve that goes into the active action, but will never do anything). Furthermore, the x-value of the new keyframe will be the current result of the driver expression. Why/Motivations: This way, it becomes easier to create corrective drivers, as you can position all the targets the driver depends on, then adjust the driver value until it does what you need, and then you keyframe that value to bake it into the Driver F-Curve (in effect, "training" the computer how to behave in that case). Usage Notes: * In practice, that particular workflow is still quite clunky to achieve, due to some quirks of how the driver system and the UI widgets interact. Specifically, you'll need to disable/mute the driver before trying to edit the setting (to prevent the driver from immediately resetting the value - before even autokey fires!). However, if you're using the Graph Editor to preview/monitor/manage the keying process, you'll then want to re-enable the driver before changing the targets, so that you can see how much of a change you'll want to be applying! * The warning about editing driver values may need to be disabled or selectively knocked out. I had it disabled while testing this functionality, but it's actually harmless in its current state (if just a bit annoying).
2016-03-23UI: multi word filtering in search menuCampbell Barton
D1080 by @rockets, with own improvements to tests
2016-03-22Fix T47830: Multi-edit w/ ui-list wont highlightCampbell Barton
Regression from 4d6b892.
2016-03-21Fix T47868: Check Box shape doesn't scaleCampbell Barton