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-10-22Fix T49656: Crash when starting playback while using JACK audio with A/V syncJörg Müller
When ED_screen_animation_play is called from wm_event_do_handlers,ScrArea *sa = CTX_wm_area(C); is NULL in ED_screen_animation_timer. Informing the audio system in CTX_data_main_set, that a new Main has been set.
2016-08-06Basic Alembic supportKévin Dietrich
All in all, this patch adds an Alembic importer, an Alembic exporter, and a new CacheFile data block which, for now, wraps around an Alembic archive. This data block is made available through a new modifier ("Mesh Sequence Cache") as well as a new constraint ("Transform Cache") to somewhat properly support respectively geometric and transformation data streaming from alembic caches. A more in-depth documentation is to be found on the wiki, as well as a guide to compile alembic: https://wiki.blender.org/index.php/ User:Kevindietrich/AlembicBasicIo. Many thanks to everyone involved in this little project, and huge shout out to "cgstrive" for the thorough testings with Maya, 3ds Max, Houdini and Realflow as well as @fjuhec, @jensverwiebe and @jasperge for the custom builds and compile fixes. Reviewers: sergey, campbellbarton, mont29 Reviewed By: sergey, campbellbarton, mont29 Differential Revision: https://developer.blender.org/D2060
2016-08-04Grease Pencil v2 BranchAntonio Vazquez
Improve current Grease Pencil in order to get a better 2D animation tool. More info in WIKI pages: https://wiki.blender.org/index.php/User:Antoniov Reviewed By: Severin, aligorith, campbellbarton Patch by @antoniov, with edits by @Severin. Differential Revision: https://developer.blender.org/D2115
2016-03-01Fix T47632: Revert "Fix (unreported) crash when opening a file from splash ↵Bastien Montagne
screen when 'load UI' option is disabled." This reverts commit 935e241fa6ea095493ade5d5403c9ac55c18d5ef. Issue will be fixed in a more localized way for now (not that nice, since this use-after-free can possibly happen in other places too, but only safe solution for 2.77). This commit is to be backported in 2.77.
2016-02-23Fix (unreported) crash when opening a file from splash screen when 'load UI' ↵Bastien Montagne
option is disabled. Took me some time to figure out what was going on here... Was again that delayed button callback stuff (`ui_apply_but_funcs_after()`), first calling button op, and then its callback func. Issue was that 'open file' op (through call to `WM_file_read()`) would clear the splash screen (as more or less the entire 'dynamic' UI), but callback func of that splash (`wm_block_splash_refreshmenu()`) would still try to access that freed menu's region. So, root of the issue seems to be that setting context's wm/win/etc. would not clear context's menu pointer (while clearing all other 'sub' pointers). I could not find nor imagine any case where this behavior could be desired, so simply added nullification of that pointer when setting context's wm/win/etc. Note that crash was due to read-after-free, infuriating debug builds with asan, but seems like release builds never actually crashed on it.
2016-02-07Added Context.editable_objects/basesJoshua Leung
This is useful when you want visible + editable objects, but you don't want to require the items to be selected as well.
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2014-11-30Grease Pencil - Storyboarding Features (merge from GPencil_EditStrokes branch)Joshua Leung
This merge-commit brings in a number of new features and workflow/UI improvements for working with Grease Pencil. While these were originally targetted at improving the workflow for creating 3D storyboards in Blender using the Grease Pencil, many of these changes should also prove useful in other workflows too. The main highlights here are: 1) It is now possible to edit Grease Pencil strokes - Use D Tab, or toggle the "Enable Editing" toggles in the Toolbar/Properties regions to enter "Stroke Edit Mode". In this mode, many common editing tools will operate on Grease Pencil stroke points instead. - Tools implemented include Select, Select All/Border/Circle/Linked/More/Less, Grab, Rotate, Scale, Bend, Shear, To Sphere, Mirror, Duplicate, Delete. - Proportional Editing works when using the transform tools 2) Grease Pencil stroke settings can now be animated NOTE: Currently drivers don't work, but if time allows, this may still be added before the release. 3) Strokes can be drawn with "filled" interiors, using a separate set of colour/opacity settings to the ones used for the lines themselves. This makes use of OpenGL filled polys, which has the limitation of only being able to fill convex shapes. Some artifacts may be visible on concave shapes (e.g. pacman's mouth will be overdrawn) 4) "Volumetric Strokes" - An alternative drawing technique for stroke drawing has been added which draws strokes as a series of screen-aligned discs. While this was originally a partial experimental technique at getting better quality 3D lines, the effects possible using this technique were interesting enough to warrant making this a dedicated feature. Best results when partial opacity and large stroke widths are used. 5) Improved Onion Skinning Support - Different colours can be selected for the before/after ghosts. To do so, enable the "colour wheel" toggle beside the Onion Skinning toggle, and set the colours accordingly. - Different numbers of ghosts can be shown before/after the current frame 6) Grease Pencil datablocks are now attached to the scene by default instead of the active object. - For a long time, the object-attachment has proved to be quite problematic for users to keep track of. Now that this is done at scene level, it is easier for most users to use. - An exception for old files (and for any addons which may benefit from object attachment instead), is that if the active object has a Grease Pencil datablock, that will be used instead. - It is not currently possible to choose object-attachment from the UI, but it is simple to do this from the console instead, by doing: context.active_object.grease_pencil = bpy.data.grease_pencil["blah"] 7) Various UI Cleanups - The layers UI has been cleaned up to use a list instead of the nested-panels design. Apart from saving space, this is also much nicer to look at now. - The UI code is now all defined in Python. To support this, it has been necessary to add some new context properties to make it easier to access these settings. e.g. "gpencil_data" for the datablock "active_gpencil_layer" and "active_gpencil_frame" for active data, "editable_gpencil_strokes" for the strokes that can be edited - The "stroke placement/alignment" settings (previously "Drawing Settings" at the bottom of the Grease Pencil panel in the Properties Region) is now located in the toolbar. These were more toolsettings than properties for how GPencil got drawn. - "Use Sketching Sessions" has been renamed "Continuous Drawing", as per a suggestion for an earlier discussion on developer.blender.org - By default, the painting operator will wait for a mouse button to be pressed before it starts creating the stroke. This is to make it easier to include this operator in various toolbars/menus/etc. To get it immediately starting (as when you hold down DKEy to draw), set "wait_for_input" to False. - GPencil Layers can be rearranged in the "Grease Pencil" mode of the Action Editor - Toolbar panels have been added to all the other editors which support these. 8) Pie menus for quick-access to tools A set of experimental pie menus has been included for quick access to many tools and settings. It is not necessary to use these to get things done, but they have been designed to help make certain common tasks easier. - Ctrl-D = The main pie menu. Reveals tools in a context sensitive and spatially stable manner. - D Q = "Quick Settings" pie. This allows quick access to the active layer's settings. Notably, colours, thickness, and turning onion skinning on/off.
2014-11-24BLI_utildefines: add UNUSED_VARS() macroCampbell Barton
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-07-16Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().Tamito Kajiyama
The function is to retrieve the active line style ID datablock from a scene and there is nothing related to bContext.
2014-06-13Code cleanup: spellingCampbell Barton
2014-05-03Patch D246: Texture Marks for freestyle strokes, written and contributed by ↵Tamito Kajiyama
Paolo Acampora. Reviewers: brecht, kjym3, #freestyle Reviewed By: brecht, kjym3 Differential Revision: https://developer.blender.org/D246
2014-04-22Add type checks for Python context overridesCampbell Barton
it was too easy to use invalid types which would crash or fail silently.
2014-04-07Fix own broken rB95b25e7333c4 (crash on any undo op :/).Bastien Montagne
Issue here was that buttons_texture_context_compute() was getting scene from (button-customized) context, before the button paths (and hence, context) had been updated. So after an undo, it was getting an invalid (freed by undo) scene pointer. Now update BCONTEXT_SCENE path before calling buttons_texture_context_compute().
2014-04-07Fix T39562: Properties panel Pinning is brokenBastien Montagne
'scene' was simply not handled in button context.
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2013-08-27ghash/bli-listbase edits, rename BLI_ghash_pop -> BLI_ghash_popkey (since it ↵Campbell Barton
takes a key as an arg and isnt popping any element from the hash as you might expect). add BLI_pophead/tail, since getting the first element from a list and removing it is a common task.
2013-07-27fix for reading outside allocated memory when switching to the 3D view.Campbell Barton
2013-07-02remove nan copyrights from code added since blender become opensource (copy ↵Campbell Barton
paste errors), also remove BKE_script.h
2013-06-10fix [#35691] Context Override replaces instead of overridesCampbell Barton
2013-04-13code cleanup: remove unused string formatting in bli_adddirstrings(), also ↵Campbell Barton
remove unused initializations and comment unused vars.
2013-03-07use bool for rna funcs.Campbell Barton
2013-02-19Another huge bunch of new UI translations (some reported by Leon Cheung, ↵Bastien Montagne
thanks!)...
2012-12-28revert r53356, this stopped the leak but still wasn't working nice.Campbell Barton
Add asserts when CTX_data_pointer_get/CTX_data_collection_get are incorrectly used. disable context inspection for now, Will enable again when its working properly.
2012-12-28The new feature printing changed properties in python history list didn't free Ton Roosendaal
a list of context properties. Give lots of leaked small blocks...
2012-12-19improve info view property output for properties.Campbell Barton
- Include RNA properties when checking for matches. - Don't include the context's property store (these are normally set by the UI code and not accessible by a script author) Note: added CTX_data_dir_get_ex() which has options for returning different members from the context.
2012-11-16Python/Context: do not allow any UI context access from threads like renderBrecht Van Lommel
or baking. This basically means you will only have access to bpy.data and bpy.context.scene, not current window, active object, etc, as those are not thread safe anyway and were likely to cause issues already. This fixes #30858, where the UI would lose buttons due to context getting corrupted when editing objects in pre/post render or using luxrender. The context access they did (indirectly) was only using the current scene or data so they still work.
2012-10-25hide text overlays when 'Only Render' option is enabled.Campbell Barton
2012-07-29code cleanup:Campbell Barton
- building without python works again - rename maxi/mini to i_max/i_min (so thay are available for function names) - some minor edits to IK stretch setting (no functional changes).
2012-07-24warn when getting a context member fails because of type mismatchCampbell Barton
2012-06-04mask mode for clip editor developed by Sergey Sharybin, Pete Larabell and ↵Campbell Barton
myself. see: http://wiki.blender.org/index.php/User:Nazg-gul/MaskEditor note - mask editing tools need continued development, feather option is not working 100%
2012-05-27style cleanupCampbell Barton
2012-05-19code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also ↵Campbell Barton
replace do prefix with do_ for bool vars.
2012-05-06style cleanup: blenkernelCampbell Barton
2012-05-02Fixes for recent cycles and python/context commits.Brecht Van Lommel
2012-05-02Python/context: tweak code further so that when you set screen/area/regionBrecht Van Lommel
from python, it actually gets data context from there as well.
2012-05-02Python/context: allow overriding window/screen/area/region context for ↵Brecht Van Lommel
running operators from python, this is useful to run an operator in a particular place in the UI.
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton
2012-04-03Popup menu layout inherits context store from button.Lukas Toenne
When adding extra context data in a layout using uiLayoutSetContextPointer, this info was not inherited by popup menus generated in this layout. While operators from regular buttons work fine, the data is missing in operators from menus and such. This patch copies the bContextStore from buttons to the new uiLayout used for popups.
2012-03-24style cleanup: follow style guide for/with/if spacingCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-01-30Fix #28733, #29885: fix missing scene in context in python. The window managerBrecht Van Lommel
would indirectly clear it when clearing the window from the context. This makes some sense when we support multiple scenes properly, but currently there's still many places assuming there is a single active scene, so keep it available to avoid crashes.
2011-11-07Camera tracking integrationSergey Sharybin
=========================== Commiting camera tracking integration gsoc project into trunk. This commit includes: - Bundled version of libmv library (with some changes against official repo, re-sync with libmv repo a bit later) - New datatype ID called MovieClip which is optimized to work with movie clips (both of movie files and image sequences) and doing camera/motion tracking operations. - New editor called Clip Editor which is currently used for motion/tracking stuff only, but which can be easily extended to work with masks too. This editor supports: * Loading movie files/image sequences * Build proxies with different size for loaded movie clip, also supports building undistorted proxies to increase speed of playback in undistorted mode. * Manual lens distortion mode calibration using grid and grease pencil * Supervised 2D tracking using two different algorithms KLT and SAD. * Basic algorithm for feature detection * Camera motion solving. scene orientation - New constraints to "link" scene objects with solved motions from clip: * Follow Track (make object follow 2D motion of track with given name or parent object to reconstructed 3D position of track) * Camera Solver to make camera moving in the same way as reconstructed camera This commit NOT includes changes from tomato branch: - New nodes (they'll be commited as separated patch) - Automatic image offset guessing for image input node and image editor (need to do more tests and gather more feedback) - Code cleanup in libmv-capi. It's not so critical cleanup, just increasing readability and understanadability of code. Better to make this chaneg when Keir will finish his current patch. More details about this project can be found on this page: http://wiki.blender.org/index.php/User:Nazg-gul/GSoC-2011 Further development of small features would be done in trunk, bigger/experimental features would first be implemented in tomato branch.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-05-02reverse string lookup listbase function BLI_findstring counterparts, added ↵Campbell Barton
BLI_rfindstring, BLI_rfindstring_ptr, these search from the end of the listbase (like pythons rfind).
2011-05-02Fix for revision 36403, using BLI_findstring. This loop looks for the lastBrecht Van Lommel
found entry, not the first, made this a bit more explicit in the code now.
2011-05-01replace inline string searches with BLI_findstring(), strcmp(..., ""), with ↵Campbell Barton
char comparisons.