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-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2013-03-24Usablity:Ton Roosendaal
In text editor, the CTRL+F find now opens property region (or keeps it) and activates the search button for input. That's already nice! But next step should be to do a search on exit of the button (or while typing). That's stuff I need Campbell to help with though. Notes: - Probably Py api for property buttons could get an "operator=" arg? - The warning menu "not found" should go away - I also suggest to make "wrap" search default for new editors
2013-03-22code cleanup: use NULL rather then 0 for pointers, and make vars static ↵Campbell Barton
where possible. also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-21py api: add Object.update_from_editmode(),Campbell Barton
Useful for python exporters to avoid toggling editmode on export, moved into own function ED_object_editmode_load(obedit).
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-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-19add BLI_rcti,f_recenter()Campbell Barton
fix for uninitialized variable use in radial_control_get_properties() and bad cast in bpy api's foreach_parse_args()
2013-03-18code cleanupCampbell Barton
2013-03-18Just added a comment:Ton Roosendaal
To make circle select allow pass-through for view events, several issues have to be tackled. 1) other modal ops run on top (border select), 2) middlemouse is used now 3) and what for tablet/trackpad or people without middlemouse? The MMB deselection for border/circle is not optimal now... needs rethinking this. Better would be to check on non-persistant-modality for circle, to start with gesture style event like lasso or border can do now.
2013-03-17Fix for "draw images as texture"Ton Roosendaal
Zooming in on images in Image window now shows pixels again (was filtered). Now the glaDrawPixelsTex() and glaDrawPixelsAuto() have an argument to define if images should zoom in with linear filter, or draw pixels.
2013-03-16code cleanup: quiet some -Wshadow warnings, mix of obvious mistakes and ↵Campbell Barton
harmless global/local naming conflict.
2013-03-15Screen: add exit callback for area and region types, this gets called whenBrecht Van Lommel
hiding or removing an area or region.
2013-03-15Add the possibility to define the translation context for py rna classes ↵Bastien Montagne
(operators, panels and menus). Thanks to Campell and Brecht for the reviews!
2013-03-14use BLI_strncpy_rlen() rather then BLI_snprintf() when no formatting is needed.Campbell Barton
also replace sprintf with strcpy when no formatting is done.
2013-03-14WM: remove "No (valid) startup.blend found" message printed on startup, can ↵Brecht Van Lommel
be useful for debugging but hide it for normal usage.
2013-03-13code cleanup: use const events for modal and invoke operators.Campbell Barton
2013-03-12change defaults for window state on X11 (yet again), after further discussion.Campbell Barton
instead use a fixed size as a default, clamp by the desktop size and add some padding (to account for title bar and panel).
2013-03-12Patch [#34373] Use i18n monospace font in Text editor and Python consoleIrie Shinsuke
This patch allows Blender to display i18n monospace font in the text editor and the Python interactive console. Wide characters that occupy multiple columns such as CJK characters can be displayed correctly. Furthermore, wrapping, selection, suggestion, cursor drawing, and syntax highlighting should work. Also fixes a bug [#34543]: In Text Editor false color in comment on cyrillic To estimate how many columns each character occupies, this patch uses wcwidth.c written by Markus Kuhn and distributed under MIT-style license: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c wcwidth.c is stored in extern/wcwidth and used as a static library. This patch adds new API to blenfont, blenlib and blenkernel: BLF_get_unifont_mono() BLF_free_unifont_mono() BLF_draw_mono() BLI_wcwidth() BLI_wcswidth() BLI_str_utf8_char_width() BLI_str_utf8_char_width_safe() txt_utf8_offset_to_column() txt_utf8_column_to_offset()
2013-03-10add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for ↵Campbell Barton
some areas of the python api, bmesh.
2013-03-10patch [#34103] check_for_dupid.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) - more comments - more uses of bool type - define symbol for length of in_use array in check_for_dupid
2013-03-09Blender Anim player fixes:Ton Roosendaal
- RGBA images (without alpha) now don't draw with alpha blending enabled - Checkerboard backdrop for alpha images now shows on size of image - Window always clears now, in very dark grey (so you can see black) - On resizing window, the aspect of image is being kept, keeping the image always visible within the window frame - Image now centers OK. - On pause, playback now halts (it was drawing same image all the time)
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-03-08Feature request:Ton Roosendaal
Blender's anim player (blender -a) now allows drop of image or movie file. It then restarts itself completely (close window, open new).
2013-03-07Border for compositor viewer node featureSergey Sharybin
This adds border option to compositor, which affects on a backdrop and viewer nodes, which is useful for faster previews and tweaks. Final compositing still happens for the whole frame, but if it'll be needed it's not so difficult to support it as well. To use border there's Ctrl-B shortcut in the compositor editor, which i used to define region you want to restrict compositing to. There's also "Viewer Border" option in the N-panel in case you'll want to disable border compositing. Some areas could be cleaned a bit, like ideally it shall not be viewer image clearing in viewer_border_update RNA callback, but currently it's not so much clear how to make it the same fast as simple memset and glue it somehow to compositor. Will think of nicer solution a bit later.
2013-03-07use bool for rna funcs.Campbell Barton
2013-03-07Change !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It isAntony Riakiotakis
always used in that context so we can at least avoid reverting it twice :p.
2013-03-05patch [#34103] fileops_1.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) Add comments and use of bool type in fileops.c
2013-03-05patch [#34103]Campbell Barton
from Lawrence D'Oliveiro (ldo) More use of bool type, necessitating adding inclusion of BLI_utildefines.h, or moving it up in the inclusion order if it was already included, in various places - storage.c: make some variables only used in bli_builddir local to that - storage.c: BLI_file_descriptor_size should allow 0 as a valid file descriptor - path_util.c: make pointers to non-reentrant storage returned from folder routines const, necessitating making variables holding these returned pointers const elsewhere as well - path_util.c: BLI_string_to_utf8 closes iconv context in case of conversion error - blf_lang.c: fill_locales routine now has its own "languages" local variable to construct paths (was stealing internal storage belonging to BLI_get_folder before)
2013-03-04patch [#34103] use boolean in path functions and add comments.Campbell Barton
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-03-04BugfixTon Roosendaal
For 2.66a Allow trackpad and magic mouse swipes to control brush size for circle select. (Similar to mousewheel).
2013-03-03move toggle drag into a UI handler (was modal operator)Campbell Barton
2013-02-28More UI messages fixes...Bastien Montagne
2013-02-28Draw a checker board as a background for animation playerSergey Sharybin
This makes it easier and useful to investigate alpha channels, without this straight colors are displayed on the screen which are completely useless in case of player.
2013-02-25only apply workaround for [#33223] when using intel cards on windows.Campbell Barton
2013-02-21Dependency Graph: some refactoring which should have no user visible impactBrecht Van Lommel
besides performance in some cases. * DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in most cases. This will clear the dependency graph, and only rebuild it right before it's needed again when the scene is re-evaluated. This is done because DAG_scene_sort is slow when called many times from python operators. Further the scene argument is not needed because most operations can potentially affect more than the current scene. * DAG_scene_relations_update will now rebuild the dependency graph if it's not there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare cases that need it. * Remove various places where ob->recalc was set manually. This should go through DAG_id_tag_update() in nearly all cases instead since this is now a fast operation. Also removed DAG_ids_flush_update that goes along with such manual tagging of ob->recalc.
2013-02-19Small correction to make strict compiler setup be happySergey Sharybin
2013-02-19Fix #34315: memory leak cancelling move to layer operator, after change to makeBrecht Van Lommel
it not execute immediately when opening the popup.
2013-02-19patch [#34320] Cross compiling with mingw-w64 on ubuntuCampbell Barton
from Martijn Berger (juicyfruit) applying since this is only corrects header case which is ignored on windows anyway.
2013-02-17Fix #34285: sculpt/paint radial control F key operators did not adjust brush ↵Brecht Van Lommel
size to retina pixel size correctly.
2013-02-17Another huge bunch of UI translation fixes, mostly reported by Leon Cheung, ↵Bastien Montagne
Sv.Lockal, Gabriel Gazzán and Satoshi Yamasaki, thanks!
2013-02-15revert own commit r54450, this works on X11 but not in Windows and caused ↵Campbell Barton
bug [#34255] (which may be a bug in windows ghost?, not getting key release for modifiers). Cross platform modifier keys on activating window better be handled at ghost level anyway.
2013-02-14fix (for one case of...) [#33949] T_ALT_TRANSFORM conflicts with "emulate 3 ↵Campbell Barton
button mouse" ShrinkFatten operator now uses scale key to toggle 'Even thickness' option. With the default keymap this is Alt+S,S. Added functionality so the header print can get the key used for the modal keymap, some other operators should make use of this too.
2013-02-14add missing NULL checks - could cause crashes in rare cases.Campbell Barton
2013-02-12Small tweak in event debug printing:Ton Roosendaal
- missing print for case event gets handled AND passed on (selecting)
2013-02-12Fix #34126: report list memory leak when calling operator from python and theBrecht Van Lommel
operator context poll failing.
2013-02-12fix for own commit r54482, PROP_DISTANCE was being checked for by radial ↵Campbell Barton
control operator. now allow PROP_NONE and treat it as a distance.
2013-02-11replace MEM_callocN with MEM_mallocN for events since their overwritten ↵Campbell Barton
right after.
2013-02-11fix for weight gradient crashing on redo (wasn't possible to redo this ↵Campbell Barton
initially).
2013-02-11fix for modifier keys held before a window was activated being ignored.Campbell Barton
2013-02-11style cleanup: also some typosCampbell Barton