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
2015-02-09Fix T43554: Zoom to mousepos makes 2D Views pan after zoom limits arejulianeisel
reached There are a couple of things that I don't like here, but it seems like the best way to handle this for now.
2015-02-06cleanup: styleCampbell Barton
2015-02-06cleanup: use bool args & redundant castsCampbell Barton
2015-01-31Compiler warning: double-promotionCampbell Barton
2015-01-28Add theme option for cliping borderAntony Riakiotakis
2015-01-27Interface get rid of some quadstrips in favor of trianglestripsMartijn Berger
If we ever want OpenGL 3.2 core context quadstrips need to go anyway and while there is much more things that need to be done this is something that can be tackled without any mayor surgery. And without losing any kind of compatibility with ancient GL. Reviewers: psy-fi Reviewed By: psy-fi Subscribers: psy-fi Projects: #bf_blender Differential Revision: https://developer.blender.org/D1027
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-26UI: macro for checking modifiersjulianeisel
Useful for UI handling where its common to check multiple modifiers at once.
2015-01-26Correction to c792e546991bd9: OS-Key should be checked as welljulianeisel
2015-01-26Cleanup: Remove ugly ELEM checks in modifier key handlingjulianeisel
Campbell once told me such checks can cause warnings on some compilers, so let's try to avoid them. From the theoretical view, this check works quite different than the old one, but in this case everything should work just like previousely.
2015-01-26If a modifier key is held, don't open context menujulianeisel
D1019 by @gregzaal (minor edits by me). Thanks for the patch!
2015-01-21UI: support alt+wheel for expanded enumsCampbell Barton
2015-01-21Fix T43247: Don't open pulldown when a popup overlaps itjulianeisel
Auto-opening of pulldown menus didn't take overlapping popups into account.
2015-01-21BKE_screen: add BKE_screen_find_area_xyCampbell Barton
Use from eyedropper & screen operators also define SPACE_TYPE_ANY for readability.
2015-01-20Fix UI glitch: Ctrl/Shift didnt refresh the UICampbell Barton
2015-01-20Fix UI glitches drawing text at different sizesCampbell Barton
Font height was ignoring DPI in some cases (camera-name & eyedropper).
2015-01-20UI: cleanup UI_fontstyle_string_width, UI_draw_stringCampbell Barton
Both were maked as temp, but used often. Now pass uiFontStyle to both, rename UI_draw_string to UI_fontstyle_draw_simple, since its a variant of UI_fontstyle_draw that skips shadow, align... etc.
2015-01-20BLF: remove paranoid checks for unset default fontCampbell Barton
2015-01-19Fix two potential bugs reported by latest coverity scan.Bastien Montagne
2015-01-19Viewport: Add adjustable safe areas, 3d-view & VSECampbell Barton
Also adds safe-area presets. D325 by Diego Gangl with own edits.
2015-01-14UI: Eyedropper for view-depthCampbell Barton
Currently this is mainly useful for picking camera DOF depth. - EKey over a distance field prompts you to pick a depth from the camera. - WKey (Specials menu) to pick from the 3D view (when the active camera's selected).
2015-01-13Fix T43128: Headerless panels are reorderable on Windowsjulianeisel
Seems like a weird issue, but to sort panels "qsort" is used, which works slightly different on Windows. So all I had to do was cleaning up the logic in find_highest_panel so that headerless panels are sorted, but that it absolutly not allows headerless panels to be above normal panels. I made sure it works fine on Linux as well.
2015-01-12Second try to fix missing previews of mat/tex/etc. in .blend files.Bastien Montagne
This time, it's a dedicated operator user has to run before saving the file. And it recursively check all IDs linked from each scene, therefore rendering materials etc. previews using a scene they are used in. Note the renderengine issue is not completely addressed this way (existing code for icon previews seems to ignore completely other engines, and IDs not linked anywhere (fake-user ones) will be rendered with current scene's engine as fallback, also you can get a material linked to an hidden object in a scene, etc.). Reviewers: sergey, campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D980
2015-01-11Cleanup: quite some harmless but noisy warnings from gcc...Bastien Montagne
2015-01-07Ugh, forgot to invert that one in previous commit, sorry for the noise...Bastien Montagne
2015-01-07Ensure mat/tex/etc. previews are generated/saved in .blend files when ↵Bastien Montagne
enabled in userprefs. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D970
2015-01-06UI: refactor button string get/set into functions.Campbell Barton
2015-01-06Correction to previous commitjulianeisel
Just realized menu buttons are using hardmin and hardmax for a bad hack which will make the assert fail :/
2015-01-05Fix/cleanup very ugly and unsafe usage of but->str in ui_but_update().Bastien Montagne
Currently, but->str should never be smaller than but->strdata, but code shall not rely on this. Further more, but->strdata is 'only' 128 chars, this could become limit with some translations, if the org label is already rather long, leading to truncated str (Chinese e.g. can only store about 40 chars in strdata).
2015-01-05Fix T43111: Node Editor (Slider) Draw Glitchjulianeisel
* don't allow Node Editor input max value to be less then min value * avoid the num slider drawing glitch if softmin equals softmax * assert if softmax/hardmax is smaller than softmin/hardmin With this, we sort of allow softmin/hardmin and softmax/hardmax being the same.
2015-01-04Fix sequencer border-flickeringCampbell Barton
Offscreen viewport drawing wasn't properly restoring the theme. Add API calls to store/restore the theme so it can be temporarily overridden.
2015-01-04Fix for crash for 'Edit Source'Campbell Barton
was accessing freed menu region.
2015-01-03D824: Add themeing for keyframe lines in TimelineDiego Garcia
Reviewed by: Joshua Leung (aligorith)
2015-01-03Grease Pencil: Vertex size and colours are now themableJoshua Leung
2015-01-03Cleanup: rename 'filelist' BLI funcs to consistent naming.Bastien Montagne
Also, add an optional callback to `BLI_filelist_free()` to allow freein void poin if needed (consistency with `BLI_filelist_duplicate()`...).
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-30Fix possible NULL pointer dereferenceCampbell Barton
also remove redundant NULL check
2014-12-25Refactor 'immediate search' featureBastien Montagne
Currently, code just checks whether a text-edited button uses a given icon (VIEWZOOM) to decide to apply changes on each typed char. This patch adds a propper button flag (UI_BUT_TEXTEDIT_UPDATE) and a dedicated RNA flag (PROP_TEXTEDIT_UPDATE) for that. It's also now usable not only for text buttons, but also for example for num buttons when in 'text edit' mode, etc. It also fixes an actual bug, which is for text properties, in 'immediate' mode, hitting escape would not restore org value, because `ui_apply_but_TEX()` would set its orgstr to NULL on first call (giving it to `but->rename_orig` instead of copying it). Note no change in behavior is expected from user POV. Update for addons using that 'VIEWZOOM' icon 'feature' will follow (if any). Reviewers: campbellbarton Reviewed By: campbellbarton Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D938
2014-12-18Fix/workaround T42944: Crash adding a shortcut in properties spaceCampbell Barton
2014-12-15Fix missing UI ID messages and/or I18N contexts for ↵Bastien Montagne
MovieClip/Mask/Palette/PaintCurve ID types.
2014-12-14IME fix: Quit two assert failuresSeverin
We could now also remove the win->ime_data assert in wm_window_IME_end, but think it's better to leave it for further development.
2014-12-10UI: add Shift-Drag to multiselect expanded enum items too.Bastien Montagne
Differential Revision: https://developer.blender.org/D928
2014-12-08Cleanup: Minor edits to widget emboss codejulianeisel
* Rename "emboss" to "widget_emboss" * Remove duplicated UI_GetThemeColor4ubv function I made sure version bump and Save User Settings are working correctly ;P
2014-12-07Input Method Editor (IME) support for text buttonsSeverin
Original patch by @random (D765) with some minor work done by @campbell and me. At this place, I'd like call out a number of people who were involved and deserve a big "Thank you!": * At the first place @randon who developed and submitted the patch * The Blendercn community which helped a lot with testing - espacially * @yuzukyo, @leon_cheung and @kjym3 * @campbellbarton, @mont29 and @sergey for their help and advises during * review * @ton who realized the importance of this early on and asked me for * reviewing We are still not finished, as this is only the first part of the implementaion, but there's more to come!
2014-12-06Fix inbetween mousemove event getting detected in hotkey buttons.Brecht Van Lommel
2014-12-02Fix rare crash dragging number-buttonsCampbell Barton
Could happen dragging shape-keys UIList & the lower slider at once.
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-26cleanup: style & tipsCampbell Barton
2014-11-24UI: avoid property lookup for uiItemMenuEnumRCampbell Barton