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
2017-11-06Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.Bastien Montagne
This makes code closer to id_override/assent-engine ones, which introduce a new type of linked data, and hence reserve ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-11-06Fix T53250: Crash when linking/appending a scene to a blend when another ↵Bastien Montagne
linked scene in this blend is currently open/active. Inner DAG code would not check against NULL pointer, and in case of an active linked scene, scene pointer will be NULL here, so we have to check it ourself. ;)
2017-11-05Cleanup: order buffer length after the bufferCampbell Barton
2017-11-05Cleanup: spellingCampbell Barton
2017-11-02UI: use button_operator in operator_menu_holdCampbell Barton
Move draw calls into UI_menutype_draw
2017-10-31UI: replace UI_ITEM_O_RETURN_PROPS /w return argCampbell Barton
Means we can have a version of this function that returns the button and avoids returning a struct that often isn't used.
2017-10-30Fix T53191: Python API Reference link wrong in splash screen.Bastien Montagne
Forgot to update splashscreen links when we switched API doc naming scheme...
2017-10-26Event System: check_click was left setCampbell Barton
Caused by own change 137586a13c
2017-10-21Move & rename uiLayoutOperatorButs to interface_templates.cJulian Eisel
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-10-17WM: move gesture operator callbacks into own fileCampbell Barton
`wm_operators.c` is near 5k LOC with lots of mixed functionality, extract gesture callbacks since they aren't closely related.
2017-10-17Cleanup: use 'e' prefix for enum typedefsCampbell Barton
Convention was only followed loosely, apply to DNA where changes aren't likely to conflict. (Skipped ModifierType for eg).
2017-10-17WM: immediate line-gesture activation on tweakCampbell Barton
Matches border-gesture behavior, needed for binding bisect to tweak event.
2017-10-16WM: refactor gestures for use as toolsCampbell Barton
Border and circle select wait for input by default. This commit uses bool properties on the operators instead of magic number (called "gesture_mode"). Keymaps that define 'deselect' for border/circle select begin immediately, exiting when on button release.
2017-10-16Cleanup: modal operator border callback namesCampbell Barton
Use same convention as all others. Remove 'select' since these are used for zoom as well.
2017-10-16WM: store modal operator last-propertiesCampbell Barton
Avoids modal operators needing to explicitly store them.
2017-10-16WM: Don't save mouse-paths to operator historyCampbell Barton
In preparation for modal operators storing their properties, no need to keep mouse-paths around. Also use generic function for lasso properties.
2017-10-16WM: remove hard-coded circle radius memoryCampbell Barton
Replace with operator type 'last_properties'. Also use generic function for circle gesture properties.
2017-10-16Event System: Prevent mouse motion in click eventsCampbell Barton
Don't convert mouse button events to click if they include dragging. Double-click events already checked for this.
2017-10-16Cleanup: simplify lasso reallocationCampbell Barton
Remove unneeded define, double allocations when increasing.
2017-10-16Cleanup: rename gesture mode to is_activeCampbell Barton
Wasn't obvious what this did at a glance.
2017-10-14Cleanup: use const for eventsCampbell Barton
2017-10-08Fix potential string buffer overruns.Bastien Montagne
Note that our library path handling is still rather dodgy on this regards, shall take some time at some point to seriously sanitize it...
2017-10-04Fix T42489 and T52936: Loading blend with minimized window results in crash ↵Ray Molenkamp
or empty screen on windows. Reviewed By: @brecht , @sergey Differential Revision: http://developer.blender.org/D2866
2017-10-01Fix gradient tool crash with recent changesCampbell Barton
Having gesture automatic free memory isn't practical if this has it's own allocations. Add option not to free userdata.
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-09-22Remove quicktime supportAaron Carlisle
It has been deprecated since at least macOS 10.9 and fully removed in 10.12. I am unsure if we should remove it only in 2.8. But you cannot build blender with it supported when using a modern xcode version anyway so I would tend towards just removing it also for 2.79 if that ever happens. Reviewers: mont29, dfelinto, juicyfruit, brecht Reviewed By: mont29, brecht Subscribers: Blendify, brecht Maniphest Tasks: T52807 Differential Revision: https://developer.blender.org/D2333
2017-09-18Fix T52800: fix UI flickering with Mesa on Linux.Brecht Van Lommel
Use triple buffer by default now on all platforms, remaing ones where: * Mesa: seems to have been working well for a long time now, and not using it gives issues with the latest Mesa 17.2.0. * Windows software OpenGL: no longer supported since OpenGL 2.1 requirement was introduced. * OS X with thousands of colors: this option was removed in OS X 10.6, and that's our minimum requirement.
2017-08-28Make GS macro return proper IDType typeSergey Sharybin
Previously it was returning short, which was really easy to (a) compare against non-ID type value (b) forget to handle some specific value in switch statement. Both issues happened in the nearest past, so it's time to tighten some nuts here. Most of the change related on silencing strict compiler warning now, but there is also one tricky aspect: ID_NLA is not in the IDType enum. So there is still cast to short to handle that switch. If someone has better ideas how to deal with this please go ahead :)
2017-08-25WM: initialize WM and deps before handling eventsCampbell Barton
This avoids obscure bugs where operators could run from events that happen before the UI and depsgraph have been initialized. See: D2809 for details.
2017-08-23Fix T52396: Crash loading template w/o config dirCampbell Barton
2017-08-23RNA: use string-join to simplify operator registerCampbell Barton
Also sanity check macro-operator ID's.
2017-08-12WM: load UI for new file, even when pref disabledCampbell Barton
Loading startup file always loads the UI now.
2017-08-11RNA: Operators were excluded from struct mapCampbell Barton
Recent changes meant structs that were registered without a name wouldn't get added to the map. Now assigning identifiers manages the struct-map.
2017-08-11WM: don't load preferences on 'File -> New'Campbell Barton
User preferences are now only loaded on... - Initial startup. - Factory-settings. - Setting app-templates.
2017-08-10DPI: add back option to control line width, tweak default width.Brecht Van Lommel
Adds thin/default/thick modes to add -1/0/1 to the auto detected line width, while leaving the overall UI scale unchanged. Also tweaks the default line width threshold, so thicker lines start from slightly high UI scales. Differential Revision: https://developer.blender.org/D2778
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-07Fix T52278: 'Default' application template failsCampbell Barton
Own error in 7398b3b7
2017-07-29Property path generation fixesAleksandr Zinovev
2017-07-28WM: OP_IS_INVOKE was being incorrectly setCampbell Barton
Calling an operator with EXEC_* context would still set the invoke flag.
2017-07-18Cleanup: use WM_event prefix for modal_tweak_exitCampbell Barton
2017-07-18WM: move WM_event_is_last_mousemove to the WM APICampbell Barton
2017-07-17Work around small DPI resulting in blurry fonts, clamping auto DPI to ↵Brecht Van Lommel
minimum 96. Since we added auto DPI on Linux, on some systems the UI draws smaller than before due to the monitor reporting DPI values like 88. Blender font drawing gives quite blurry results for such slightly smaller DPI, apparently because the builtin font isn't really designed for such small font sizes. As a workaround this clamps the auto DPI to minimum 96, since the main case we are interested in supporting is high DPI displays anyway. Differential Revision: https://developer.blender.org/D2740
2017-07-10Error in last commitCampbell Barton
2017-07-10Fix T51998: Anim player uses 100% CPUCampbell Barton
The loop running with no events didn't sleep. Now wait for events when paused.
2017-07-08Fix build after previous commit.Brecht Van Lommel
2017-07-08Fix T51889: new file or load factory settings results in broken UI.Brecht Van Lommel
Fix some cases that still assumed there to be a global DPI, instead of a per window DPI that needs to be set before reading U.dpi.
2017-07-03Fix T51889: broken UI after File > New without a userpref.blend.Brecht Van Lommel
BLO_update_defaults_userpref_blend() was being run when no user preferences were loaded from memory.
2017-06-26Fix T51902: Severe problem with relocating linked libraries when using proxies.Bastien Montagne
Fix is a bit ugly, but cannot think of another solution for now, at least this **should** not break anything else. And now I go find myself a very remote, high and lonely mountain, climb to its top, roar "I hate proxies!" a few times, and relax hearing the echos...
2017-06-24Fix T50856: crash when minimizing window on AMD / Windows.Brecht Van Lommel