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
2013-09-10Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursorSergey Sharybin
2013-09-07rename cursor setting functions to make modal set/restore more clearly ↵Campbell Barton
related functions.
2013-09-05Code cleanup: use boolean instead of int for space_clipSergey Sharybin
2013-08-29Support transformation around 2D cursor in movie clip editor.Sergey Sharybin
2013-08-27Mask primitivesSergey Sharybin
Currently only circle and square, might be easily extended in the future. New primitives are creating at cursor location. This also implied adding 2d cursor to space clip. Also fix set 2D cursor location which didn't work in image editor's mask mode since 2.67. TODO: draw_image_cursor better be moved to some more generic file, but it's not so much important for now and might be solved later. Thanks Campbell for the review!
2013-08-21bugfix: fit_view property was saved in CLIP_OT_view_all operatorDalai Felinto
before that if you pressed 'F', fit_view would be True every time (e.g., even if you pressed 'HOME' which is supposed to call the operator without the fit_view). I'm not sure why we need a fullscreen without 'fit_view' but anyways, that's a different issue.
2013-07-15replace strncpy with BLI_strncpy for cases we expect the string to be NULL ↵Campbell Barton
terminated.
2013-05-10Set scene frames operator for clip editor.Sergey Sharybin
This operator will set scene's start/end frames to match clip's start frame and footage duration. Available in Clip panel in clip editor's toolbox.
2013-04-04Clip editor prefetch changesSergey Sharybin
Made it an operator instead of automatic prefetching. Filling the whole memory with frames is not always desired behavior. Now prefetching is available via P-key, or from Clip panel in toolbox or from Clip menu. Also enabled prefetching for non-proxied movies.
2013-03-20Prefetching for movie clipsSergey Sharybin
This commit basically implements frames prefetching for movie clip datablock. Number of frames to be prefetched is controlled in User Preferences, System tab, Prefetch Frames option. Currently prefetching is destructive-less for movie cache, meaning mo frames will be removed from the cache when while prefetching. This is because it's half of simplier to implement, but it also makes sense from tracking point of view -- we could want to playback in both directions and removing frames from behind time cursor is not always a good idea. Anyway, smarter prefetching strategy could be developed later. Some implementation notes: - Added MEM_CacheLimiter_get_memory_in_use function to get memory usage of specified memory limiter. - Fixed prototype of MEM_CacheLimiter_get_maximum which was simply wrong (used wrong data type for output). - Added some utility functions to movie clip and movie cache for direct cache interaction and obtaining cache statistics. - Prefetching is implemented using general jobs system. which is invoking from clip draw function. - Prefetcing will stop as soon other job or playback starts. This is done from performance point of view. Jobs will likely require lots of CPU power and better to provide whole CPU to it. Playback is a bit more complicated case. For jpeg sequence playback prefetching while paying back is nice. But trying to prefetch heavy exr images and doing color space conversion slows down both playback and prefetching. TODO: - Think of better policy of dealing with already cached frames (like when cached frames from other clips prevents frames from current clip to be prefetched) - Currently a bit funky redraw notification happens from prefetch job. Perhaps own ND_ is better to have here. - Hiding clip while prefetch is active in theory shall stop prefetching job. - Having multiple clips opened on file load will prefetch frames for only one of them.
2013-03-16style cleanupCampbell Barton
2013-03-15Further improvement for multi-threaded proxiesSergey Sharybin
Handle sequences in a special case for dealing with sequence sources. Namely handle separate frames in separate threads, but do disk read from a critical section since HDD is not so friendly with lots threads requesting for data from it. Makes proxy building much faster than it was before.
2013-03-15Multi-threaded frame calculation for movie clip proxiesSergey Sharybin
This commit implements multi-threaded calculation of frames when building proxies. Both scaling and undistortion steps are now threaded. Frames and proxy resolution are still handled one-by-one, saving files after every single step. So if HDD is not so fast, this commit could have not so much benefit. Internal changes: - Added IMB_scaleImBuf_threaded which scales given image buffer in multiple threads and uses bilinear filtering. - libmv's camera intrinsics now have SetThreads() method which is used to specify how many OpenMP threads to use for buffer distortion/undistortion. And yeah, this code is using OpenMP for threading. - Reshuffled a bit libmv-capi calls and added function BKE_tracking_distortion_set_threads to specify number of threads used by intrinscis.
2013-03-13code cleanup: use const events for modal and invoke operators.Campbell Barton
2013-03-04patch [#34103] use booleans for extensions testing.Campbell Barton
bli_testextensie.patch - from Lawrence D'Oliveiro (ldo)
2013-02-05Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashesSergey Sharybin
Issue was caused by couple of circumstances: - Normal Map node requires tesselated faces to compute tangent space - All temporary meshes needed for Cycles export were adding to G.main - Undo pushes would temporary set meshes tessfaces to NULL - Moving node will cause undo push and tree re-evaluate fr preview All this leads to threading conflict between preview render and undo system. Solved it in way that all temporary meshes are adding to that exact Main which was passed to Cycles via BlendData. This required couple of mechanic changes like adding extra parameter to *_add() functions and adding some *_ex() functions to make it possible RNA adds objects to Main passed to new() RNA function. This was tricky to pass Main to RNA function and IMO that's not so nice to pass main to function, so ended up with such decision: - Object.to_mesh() will add temp mesh to G.main - Added Main.meshes.new_from_object() which does the same as to_mesh, but adds temporary mesh to specified Main. So now all temporary meshes needed for preview render would be added to preview_main which does not conflict with undo pushes. Viewport render shall not be an issue because object sync happens from main thread in this case. It could be some issues with final render, but that's not so much likely to happen, so shall be fine. Thanks to Brecht for review!
2013-01-27Operators name "cleanup"Dalai Felinto
The operator names all show up in the Search button. As such is nicer if they can all have the main words capitalized. e.g. "Snap strips" should be "Snap Strips" "Copy to clipboard" should be "Copy to Clipboard" This was done with a mix of bash tools, regex, and manual work because I'm too rushed into regex :) + fix bge stereo eye separation tooltip
2013-01-06Solving nasty annoyance:Ton Roosendaal
Trackpad zoom (swipe + CTRL) direction was inverted compared to MMB-drag or scrollwheel usage. In the 3D viewport it was OK, in all others not. Now the same physical gesture maps identical to zooming everywhere. Or to recap (with blender factory settings) Zooming in: - MMB-drag, move mouse towards screen - Scroll wheel, move finger towards screen - Magic Mouse, move finger towards screen - Trackpad 2-finger swipe: move fingers toward screen. To make this extra confusing: this is only consistent if you set your system to inperpret trackpad swipes as "inverted" (pan view left = swipe to right). This is a typical default, although Apple wants you to call this "Unnatural" :) Next commit will be testing on laptop if all pinch gestures zoom consistent. And following to that, a sensible user preference to map trackpad use for Blender yourself, to invert system defaults again. :) Blame and thanks goes to Sebastian Koenig, for his perseverance on getting this solved :)
2013-01-05Trackpad pans for UV/Image and MovieClip editors were inverse compared to ↵Ton Roosendaal
all other editors.
2012-11-09style cleanup: indentationCampbell Barton
2012-10-26Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a ↵Bastien Montagne
few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-16More UI messages and BKE_reportf<->BKE_report fixes...Bastien Montagne
2012-10-13Make zoom direction consistent all over the editorsSergey Sharybin
Was discussed in De Balie with lots of artists and we agreed it makes more sense to behave this way
2012-10-12fix for many RNA definitions having soft/hard ranges swapped, make this ↵Campbell Barton
BLI_assert() on debug builds.
2012-09-15code cleanup: replace macro for BLI_rect size/center with inline functions.Campbell Barton
2012-08-26style cleanup: whitespaceCampbell Barton
2012-08-21code cleanup: use BLI_RCT_SIZE macroCampbell Barton
2012-08-15fix for missing change to fluidsim from last commit and name jobs a more ↵Campbell Barton
useful name - 'wm_job'.
2012-08-15add wm job types they are not used yet, so this just defines them for new ↵Campbell Barton
jobs add add argument to search by job type.
2012-08-12NDOF navigation support for clip editorSergey Sharybin
2012-08-12code cleanup: WM naming conventionsCampbell Barton
2012-08-08code cleanup: rename G.afbreek --> is_break, G.rendering --> is_renderingCampbell Barton
2012-08-04style cleanupCampbell Barton
2012-07-29code cleanup: replace MIN2/MAX2 with minf/maxfCampbell Barton
2012-07-27code cleanup: pass mouse position as int[2] rather then wmEventCampbell Barton
2012-07-27change clip utility function arguments to take space data and region rather ↵Campbell Barton
then the context. this allows a fix to be applied that corrects the helper line in the image view when transforming a mask.
2012-07-25Proxies building progress bar used to be displayed wrong in casesSergey Sharybin
when start scene frame is not 1.
2012-07-12Clip editor mode selection: show menu with modes on TABSergey Sharybin
This seems to be the only straightforward way to switch fast between modes without keeping bunch of shortcuts and current mode in head.
2012-07-12Fixed issue with drag-n-drop into Clip Editor.Sergey Sharybin
2012-07-03More spell and typo fixes (mostly visualise->visualize, grey->gray, ↵Bastien Montagne
normalise->normalize).
2012-06-20Cleanup up space clip API:Sergey Sharybin
- Remove clip/mask specific size/aspect getters, they shall just use the same size/aspect ratio. - Made size getter (and some other public functions) accept context instead of SpaceClip. Currently only SpaceClip is being get from this context, but later it'll be helpful when adding support of editing mask without opening clip in clip editor (in this case using render resolution for mask would be ideal, but this requires knowing scene in size getter). - Rearrange some functions in clip_editor.c for easier navigation in the file.
2012-06-19Changes in clip editor's public api to make it's more clearSergey Sharybin
whether getting of some property happens or this property is being changed. Also made it more clear whether affecting property belongs to clip or mask datablock.
2012-06-15Internal refactoring of tracking module, should be no functional changesSergey Sharybin
- Re-arrange functions in headers and implementation file to make them more grouped by entity they're operating with. Also order of functions in implementation file should match order of functions in header for easier navigation. - Rename some functions to match conventions of naming public functions. - Some code de-duplication, still some room for improvements tho. - Split main 2D tracking functions into smaller steps to make it more clear. Accidentally OpenMP was disabled in some of previous commits, re-enable it.
2012-05-25Fix #31587: loading image sequence by selecting all images does not work in MCESergey Sharybin
Now loading image sequence behaves in the same way as sequencer when all images are selected. In fact, in this case first image from selection would be used as first frame of image sequence, so this behavior does not reflect possible gaps in selection. Old behavior with selecting first file only is still relevant.
2012-05-20code cleanup:Campbell Barton
- style - multi-line ifs move braces onto new lines. - iterators - convert some to macros, other split up and move brace.
2012-05-07Some misc fixes to UI messages...Bastien Montagne
2012-05-07Woops, some unwanted spaces remained in source files.Sergey Sharybin
2012-05-07Style cleanup of own modules using style checker from Campbell.Sergey Sharybin
2012-05-05Fix related to [#31157]: Tips (descriptions) of macro operators were not set ↵Bastien Montagne
into underlying RNA struct, hence did not show up in UI.