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
2018-06-11Cleanup: remove moar ugly G.main usages...Bastien Montagne
BKE_image was an ugly nest, could fix all but the ones from compositor, so moved ugly G.main there, at least we know where the Evil is that way ;)
2018-06-11Cycles: Cleanup, silence strict compiler warningSergey Sharybin
There is one legit place in the code where memcpy was used as an optimization trick. Was needed for older version of GCC, but now it should be re-evaluated and checked if it still helps to have that trick. In other places it's somewhat lazy programming to zero out all object members. That is absolutely unsafe, at the moment when less trivial class is used as a member in that object things will break. Other cases were using memcpy into an object which comes from an external library. We don't control that object, and we can not guarantee it will always be safe for such memory tricks and debugging bugs caused by such low level access is far fun. Ideally we need to use more proper C++, but needs to be done with big care, including benchmarks of each change, For now do annoying but simple cast to void*.
2018-06-11Libmv: Cleanup, make strict compiler more happySergey Sharybin
In C++ it is not really safe to memcpy objects, and newer GCC will warn about this. However, we don't use our vector for unsafe-to-memcpy objects, so just explicitly silence that warning.
2018-06-11Cleanup: Moar G.main removal of Hell.Bastien Montagne
This commit actually adds some G.main... but at much, much higher level than the ones it removes, so should still be better ;)
2018-06-11Cleanup: remove some G.main usages...Bastien Montagne
2018-06-11Fix bad level stubsSergey Sharybin
2018-06-11Cleanup: Use BLI_strncpySergey Sharybin
It has behavior which we expect, and silences strict compiler warning.
2018-06-11Fix T55278: Lightmap Pack > New Image broken when active object is NonePhilipp Oeser
thanx bblanimation (Christopher Gearhart) for spotting the issue and providing the fix! Reviewed By: brecht Differential Revision: https://developer.blender.org/D3449
2018-06-11path_util: avoid overflow w/ strtoll useCampbell Barton
Also style cleanup.
2018-06-11Fix PyConsole: Drag events finished early in modal text selectionPhilipp Oeser
2018-06-11Fix T55140: opened image doesn't show up in movie clip editorPhilipp Oeser
atoi usage in BLI_stringdec could overflow, use strtoll instead and check valid range with INT_MIN and INT_MAX Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3452
2018-06-11Fix T55349: crash adding paint slot when object is on hidden layerPhilipp Oeser
use better poll and get ob with 'ED_object_active_context' (instead of 'CTX_data_active_object') Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3467
2018-06-10WM: add macros to check mouse button/gesture/wheelCampbell Barton
Use to check click/drag, fixes issue with mouse wheel triggering pie menu.
2018-06-10Cleanup: trailing space in CMake filesCampbell Barton
2018-06-09RNA: remove Layout.introspectCampbell Barton
This was added as an experiment to extract information for docs but this was never all that useful for its intended purpose.
2018-06-09Cleanup: unused functionsCampbell Barton
2018-06-09Cleanup: remove some G.main usages.Bastien Montagne
2018-06-09Cleanup: trailing space in RNACampbell Barton
2018-06-09Cleanup: styleCampbell Barton
2018-06-09GHOST/X11: Print the keycode w/ debug enabledCampbell Barton
2018-06-09GHOST/X11: Correct non-latin kb workaround caseCampbell Barton
Harmless since this is always enabled, only do this for easier troubleshooting when disabling the define.
2018-06-09GHOST/X11: support accessing physical keycodesCampbell Barton
This means we can check keys such as tilde in a generic way.
2018-06-08WM: correct recent change to click/drag detectionCampbell Barton
fb1915d87090a - caused click/drag events not to be detected. Now check a key is a mouse or keyboard event.
2018-06-08WM: fix panel drag event handlingCampbell Barton
2018-06-08WM: fix node link & background dragCampbell Barton
2018-06-08GHOST/X11: Map unknown es,dk keys to accentgraveCampbell Barton
2018-06-08GHOST/X11: Map unknown de,fr keys to accentgraveCampbell Barton
This still uses the correct string when typing text, it just allows the key to be used in keymaps. We should eventually add scan-code support.
2018-06-08Prevent wheel causing spurious click/drag eventsCampbell Barton
2018-06-08Cleanup: getting rid of G.main.Bastien Montagne
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08CMake: disable WITH_COMPILER_ASAN for CMAKE_BUILD_TYPE ReleaseJeroen Bakker
2018-06-08Fix regression in grease pencil drawingCampbell Barton
Drag events finished drawing early.
2018-06-08Fix T55301: Transform confirm on release fails w/ MMBCampbell Barton
2018-06-08WM: backport event/keymap type util from 2.8Campbell Barton
2018-06-08Cleanup: trailing spaceCampbell Barton
Remove from blender/nodes, collada, blenfont & render.
2018-06-08Fix recently added drag events closing menusCampbell Barton
2018-06-07WM: fix drag events applying after releaseCampbell Barton
2018-06-07GHOST/X11: Xinput/XIM support caused double key-upCampbell Barton
All keyboard events were sending double key events (including modifiers) when xinput was enabled with gnome (causing much confusion!). I cant test if XIM works, but this isn't useful to send double events, so disabling for now.
2018-06-07Cleanup: typo, and 0 -> false for booleans.Bastien Montagne
2018-06-07WM: add support for drag eventsCampbell Barton
This allows for a single key to be mapped to both release and drag, useful for pie menus to share a key with a different action.
2018-06-07Fix key repeat events resetting the click timerCampbell Barton
2018-06-07Cleanup: trailing space for windowmanagerCampbell Barton
2018-06-07WM: check for release instead of not pressedCampbell Barton
Makes reasoning about events more predictable.
2018-06-07Fix crash due to missing init of new bAnimContext bmain member in transform ↵Bastien Montagne
code. From own previous G.main-busting commit.
2018-06-07Fix double free in dyntopo-sculpt mode undoCampbell Barton
2018-06-07Fix sculpt assert on initializationCampbell Barton
2018-06-07Cleanup: remove moar G.main usages.Bastien Montagne
Notes: * Really need to address RNA setters case, end up adding way too much G.main here these days... :/ * Added Main pointer into bAnimContext, helps a lot in anim code ;)
2018-06-07Revert "Cycles: Cleanup: Don't use return on function returning void"Sergey Sharybin
Not sure why exactly it is called a cleanup, the code was much more clear and robust against possible missing return statements which are MANDATORY. Missing return statement will: - Cause two different BVH traversals to be run. Not is happening currently, but if more BVH layouts are added, it will become a problem. - It is already causing assert() statements to fail, since functions are no longer returning when they are supposed to. If there is any measurable reason to keep this change, let me know. Otherwise just stick to reliable/tested/robust code. This reverts commit ba65f7093b39a8e5f1fb869cbc347fb810a05ab9.
2018-06-07Cleanup: Nuke moar G.main usages...Bastien Montagne
2018-06-07Python API: Initial 'imbuf' APICampbell Barton
Support only basic operations new/load/write & resize. Add now so we can extend as needed & more easily accept patches.
2018-06-06Fix BLI_ASSERT_UNIT macro w/ non-finite numbersCampbell Barton