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-29Cleanup: spelling, indentationCampbell Barton
2016-06-25Cleanup: remove bad-level callCampbell Barton
2016-06-25GPU: move select index code out of WMCampbell Barton
This avoids bad-level calls.
2016-06-24BKE_blender: Add own atexit functionsCampbell Barton
Runs before guarded-alloc leaks print.
2016-06-23Dopesheet: Lasso and Circle Select tools work for selecting keyframesJoshua Leung
This only works in the Action and Dopesheet modes (which operate on FCurve keyframes). Support for Grease Pencil and Mask Keyframes though is still pending.
2016-06-22ID-Remap, step two: add some user-level tools.Bastien Montagne
This commit adds operators and Outliner menu entries to reload or relocate a library, and to delete or replace a datablock. RNA ID API is also extended to allow ID deletion and remapping from python. Review task: D2027 (https://developer.blender.org/D2027). Reviewed by campbellbarton, thanks a bunch.
2016-06-22ID-Remap - Step one: core work (cleanup and rework of generic ID datablock ↵Bastien Montagne
handling). This commit changes a lot of how IDs are handled internally, especially the unlinking/freeing processes. So far, this was very fuzy, to summarize cleanly deleting or replacing a datablock was pretty much impossible, except for a few special cases. Also, unlinking was handled by each datatype, in a rather messy and prone-to-errors way (quite a few ID usages were missed or wrongly handled that way). One of the main goal of id-remap branch was to cleanup this, and fatorize ID links handling by using library_query utils to allow generic handling of those, which is now the case (now, generic ID links handling is only "knwon" from readfile.c and library_query.c). This commit also adds backends to allow live replacement and deletion of datablocks in Blender (so-called 'remapping' process, where we replace all usages of a given ID pointer by a new one, or NULL one in case of unlinking). This will allow nice new features, like ability to easily reload or relocate libraries, real immediate deletion of datablocks in blender, replacement of one datablock by another, etc. Some of those are for next commits. A word of warning: this commit is highly risky, because it affects potentially a lot in Blender core. Though it was tested rather deeply, being totally impossible to check all possible ID usage cases, it's likely there are some remaining issues and bugs in new code... Please report them! ;) Review task: D2027 (https://developer.blender.org/D2027). Reviewed by campbellbarton, thanks a bunch.
2016-06-21Fix T48700: Crash when window creation failsCampbell Barton
Check if Python is initialized before calling BPY_python_end.
2016-06-21Fix T48196: Crash enabling modal operator in execCampbell Barton
Not good practice, but better not crash.
2016-06-08GPU: avoid disabling basic-shader for lassoCampbell Barton
Replace glDrawPixels w/ glaDrawPixelsTex
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 triple buffer w/ basic glsl shaderCampbell Barton
Needed to add GL_TEXTURE_RECTANGLE support to basic-shader.
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-01Usual UI/i18n message cleanup (get rid of last remaining 'addon' too).Bastien Montagne
2016-05-31Fix T48552: Ctrl-D to add drivers shows disabled menu itemsCampbell Barton
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2016-05-14Fix T48426: Use same length for all header message strings.Bastien Montagne
Some languages like Chinese or Japanese take three or four bytes per char... Also fixed some missing translation markers for UI header messages.
2016-05-13Cleanup: rna naming, indentationCampbell Barton
2016-05-13Fix T48416: Impossible to append from another file without localizing also ↵Bastien Montagne
all indirectly linked data. Previous to 2.77, this used to be default behavior, was changed in rB591f4549c958b. However, in most append cases, you do want a full localization of your data, so this new behavior is kept by default, but there is now an option in append operator to only localize the 'first level' of data (i.e. datablocks from linked library itself, and not those from other 'sub-libraries').
2016-05-10Fix T48369: Missing suport for main '+' key.Bastien Montagne
Many keyboard layouts (italian, spanish, german...) have direct access to '+' key on main keyboard area (not the numpad one), ans x11 has own define for this key, so use it instead of generating an unkown key event. Note that we most likely have much more missing 'specific' keycodes for non-US keyboard layout, but think since we already had a 'minus' keyevent, supporting 'plus' one is totally consistent. And we had a spare space in our defined values just for it even! This keyevent is only supported/generated by x11 and cocoa Ghost backends for now, neither SDL nor win32 seem to have matching key events...
2016-05-06Image Editor: Add border zoomCampbell Barton
Use Shift-B, UV border-select-pinned is now Ctrl-B. Patch from @rav66
2016-04-26Fix (unreported) possible freed memory usage when reloading a .blend file.Bastien Montagne
Operator would call `WM_file_read()` directly whith G.main->name as filepath, which gets freed whith main during new reading of file... Now use a local copy instead.
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-23Fix T48173: event.mouse_prev_x/y unreliable.Brecht Van Lommel
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-04-19Cleanup unused header includes from previous commit.Bastien Montagne
2016-04-19Cleanup: move operators & related code of files & append/link to relevant ↵Bastien Montagne
dedicated source files. This commit adds a new `wm_files_link.c` which contains everything related to append/link code, moved from `wm_operators.c` (rather small currently, but will expand quite a bit with future reload & asset works). It also moves all load/save .bland files (and related userpref/startup stuff) from `wm_operators.c` to `wm_files.c` (some helper funcs were already there). This also makes `wm_operators.c` significantly lighter.
2016-04-19Cleanup: pass event args as constCampbell Barton
2016-04-17Fix T48171: activating spacebar search menu over text button activates it or ↵Brecht Van Lommel
shows tooltip.
2016-04-15Drivers Editing: Added "Copy/Paste" buttons beside "Add Variable" for ↵Joshua Leung
copying all variables from one driver to another This was a feature request from a few years back (IIRC from ZanQdo?) to make it easier to reuse one set of driver variables across several different drivers. Dev Notes: * Finally it's done! All that trouble for two little buttons. * Grr... cmake... grrr!
2016-04-15Code Cleanup: Add proper defines (with ANIM_* prefix) for animation-related ↵Joshua Leung
copy-paste buffer free callbacks
2016-04-08Wide lines + line stipple deprecated API replacementAlexander Romanov
The patch contains an implementation of the wide lines and the line stipple that is necessary for OpenGL upgrade. For the implementation I have chosen the geometry shader because it required minimum changes for the wrapper calls and such implementation is the best for the "basic shader" architecture. There are few shortcomings that can be corrected in future. They all are related to the fact that the lines in one strip are not connected with each other. So the stipple pattern is not continuous on the common vertex of two lines. There is also no continuity of form (each line is an independent rectangular). But the advantage is that even outdated glBegin, glVertex work! Though with the above restrictions. Continuity of form and stipple can be implemented with additional attributes, and it will require more changes in calls. At the moment, the patch replaces calls for some "gestures". It works satisfactorily for "cross" or "rectangular" and not so good for "lasso" and "circle" due to the above-mentioned shortcomings. Don't forget to set USE_GLSL to true for testing. Alexander Romanov (Blend4Web Team) Reviewers: merwin, brecht Reviewed By: merwin, brecht Subscribers: aligorith, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1880
2016-03-28Fix T47969: Select Random always uses same seedCampbell Barton
Increment the seed on each use, otherwise calling again selects the same order, unless you manually adjust the seed.
2016-03-24Make IDPreview handling code use new recursive libquery looper.Bastien Montagne
2016-03-24Rework library_query foreach looper - add optional recursivity.Bastien Montagne
This commit: * Fixes bad handling of 'stop iteration' (by adding a status flag, so that we can actually stop in helper functions too, and jumping to a finalize label instead of raw return, to allow propper clean up). * Adds optional recursion into 'ID tree' - callback can also decide to exclude current id_pp from recursion. Note that this implies 'readonly', modifying IDs while recursing is not something we want to support! * Changes callback signature/expected behavior: return behavior is now handled through flags, and 'parent' ID of id_pp is also passed (since it may not always be root id anymore). Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1869
2016-03-23Radial Operator: Tweak number of digits displayed for the different property ↵Joshua Leung
types * As requested by venomgfx, rotations now only display to 2 decimal places (more than enough for rotations in degrees) * Also, made it so that the "factor" types now show 3 dp (previously only 2, which isn't really enough when dealing with values from 0.0 - 1.0)
2016-03-23Radial Control Operator: Always show the property name + value on the headerJoshua Leung
The radial control operator is commonly used for setting sculpt brush Size and Strength settings. However, when using it, it can often be difficult to remember which hotkey is responsible for which setting, meaning that you can often accidentally modify the wrong setting without knowing it (or even what new value you've set it to). This commit makes it so that the property name and the current value are always shown on the header. Previously this info was only shown when the doing numeric input. (It also fixes a bug where the numeric input print would hang around even after it wasn't being used).
2016-03-04Revert "Fix changing virtual pixelsize having no affect if only main window ↵Campbell Barton
is open" This reverts commit fe7bab13439fe6f0181f6661fbf7bb7ae18f5310. Setting correct context is important, but this is setting DPI and widget unit on *every* mouse move.
2016-03-04Fix changing virtual pixelsize having no affect if only main window is openJulian Eisel
Changing virtual pixelsize only had an affect when a second window was open. (Was also possible to trigger update by opening another window.) Steps to reproduce: * Change any editor into user preferences *in main window* * Change virtual pixel size -> nothing happens
2016-03-02UI: Show categories in operator search popupCampbell Barton
Gives better context especially when operators have generic names.
2016-03-02UI: Add search-create callbackCampbell Barton
Needed to support alternate search UI's, no functional changes.
2016-03-01Fix (unreported) crash when opening a file from splash screen when 'load UI' ↵Bastien Montagne
option is disabled. See rB935e241fa6ea095493 for details of the issue, but first fix caused regression T47632. So for now handling the issue in a localized way, this is not a real solution (since this could happen in other cases), but will do for 2.77. This commit is to be backported to 2.77.
2016-02-29Fix a bunch of temp full-screen glitchesJulian Eisel
Steps to reproduce fixed glitches were: * Change any editor to be file browser from menu, Ctrl+O *from the file browser area*, Esc -> area reset to what it was before changing to file browser initially * Ctrl+O from any area, F12, Esc -> returns to initial editor in full-screen (expected is file browser in full-screen) Fixes T46229 Core of the fix is removing old area from spacedata list when going back to previous area (see ED_area_prevspace -> BKE_spacedata_remove). Also, when creating a new temp area we now don't exit old area anymore (needed so SpaceFile->op is kept, but it also makes sense in general) Aaand finally removes some ugly hacks. Tested quite a bit, so I think it's safe to apply (besides of remark below), just would like to get things double checked and confirmed. After all, this full-screen stuff finally starts to feel like it's working :P Note, there's still a memory leak when quitting Blender with temp area open. Haven't found out how to solve yet, but it's not that important for review anyway. Reviewers: campbellbarton, brecht Reviewed By: brecht Subscribers: plyczkowski, Blendify Maniphest Tasks: T46229 Differential Revision: https://developer.blender.org/D1531
2016-02-29Cleanup: Duplicated functionJulian Eisel
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
2016-02-15Cleanup: reorganize BKE ID tagging functions.Bastien Montagne
BKE_main_id_tag_/BKE_main_id_flag_ were horrible naming now that we split those into flags (for presistent one) and tags (for runtime ones). Got rid of previous 'tag_' functions behavior (those who were dedicated shortcuts to set/clear LIB_TAG_DOIT), so now '_tag_' functions affect tags, and '_flag_' functions affect flags.
2016-02-12Integrate font objects copy/paste with system clipboardDalai Felinto
When pasting text, the style (bold, material, ...) is maintained, if it was originally copied from Blender. This fixes the issue of missing copy/paste options for font objects (they were present back in Blender 2.49) Reviewers: Severin, campbellbarton, brecht
2016-02-09Fix T47339: Unified color not used w/ radial controlCampbell Barton
2016-02-08Fix T47354: Garbage key events (UNKOWNKEY) would remain in backup event's ↵Bastien Montagne
keymodifier. For some reason, using 'dead keys' to compose some accentuated latin chars will generate some 'unknown' key events, and in this case, direct `event.keymodifier` was correctly cleared, but not its 'backup' version in `win->eventstate`, so all further events would get an invalid modifier until some real one would be pressed again...
2016-02-07Fix T47342: hang with freestyle viewport render and animation playback.Brecht Van Lommel
Not sure why I made the logic so complicated before, this change should solve the deadlock when the render thread tries to acquire the main thread lock while the main thread is waiting for threads to finish.
2016-02-07Cleanup: line widthCampbell Barton