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
path: root/source
AgeCommit message (Collapse)Author
2016-11-02Change frame for animations should not bein the UNDO stackDalai Felinto
Request from Hjalti Hjalmarsson for the animation work. Basically a common part of the workflow of animation is to change the pose, scrub back and forth a few times and roll back the changes when unsatisfied. However if you go back and forth too many times the UNDO stack would be full, and it would not be possible to bring back the previous pose. I'm leaving clip_editor change frames as it is for now. But we can probably change the behaviour there as well.
2016-11-01Add 'copy array' for rna buttonsBastien Montagne
ctrl-alt-c/v allows to copy/paste whole RNA array, e.g. location, rotation, etc., from UI buttons. Request from Andy at the studio.
2016-11-01Fix T49856: Blender 2.78 crashes after loading data from a blendfileBastien Montagne
Issue here was that py API code was keeping references (pointers) to the liniked data-blocks, which can actually be duplicated and then deleted during the 'make local' process... Would have like to find a better way than passing optional GHash to get the oldid->newid mapping, but could not think of a better idea.
2016-10-31Added 'delete unlocked vertex groups' option.Sybren A. Stüvel
2016-10-31BMesh: radial loop (internal API symmetry)Campbell Barton
Radial append/remove had swapped args and *slightly* different behavior. - bmesh_radial_append(edge, loop) - bmesh_radial_loop_remove(loop, edge) Match logic for append/remove, Logic for the one case where the edge needs to be left untouched has been moved to: `bmesh_radial_loop_unlink`.
2016-10-31BMesh: simplify vert & edge removalCampbell Barton
2016-10-31BMesh: remove redundant walker member & assignmentCampbell Barton
2016-10-31UI: Don't show empty panel right-click menuJulian Eisel
2016-10-30Viewport smoke: add support to render the volume using a color ramp.Kévin Dietrich
This is yet another debug option that allows to render an arbitrary simulation field by using a color ramp to inspect its voxel values. Note that when using this, fire rendering is turned off. Reviewers: plasmasolutions, gottfried Differential Revision: https://developer.blender.org/D1733
2016-10-30Fix compile errors for when WITH_ALEMBIC is OFF.Kévin Dietrich
2016-10-30Cycles: Add smoothing option to the Brick TextureLukas Stockner
This option allows to create a smoother transition between Bricks and Mortar - 0 applies no smoothing, and 1 smooths across the whole mortar width. Mainly useful for displacement textures. The new default value for the smoothing option is 0.1 to give some smoothing that helps with antialiasing, but existing nodes are loaded with smoothing 0 to preserve compatibility. Reviewers: sergey, dingto, juicyfruit, brecht Reviewed By: brecht Subscribers: Blendify, nutel Differential Revision: https://developer.blender.org/D2230
2016-10-29Fix T49878: Alembic crash with long object nameKévin Dietrich
Crash comes from writing to char array (ID::name) out its bound and thus overriding memory in the ID struct.
2016-10-29Alembic: store a pointer to the object reader in the cache modifiers andKévin Dietrich
constraints. This avoids traversing the archive everytime object data is needed and gives an overall consistent ~2x speedup here with files containing between 136 and 500 Alembic objects. Also this somewhat nicely de- duplicates code between data creation (upon import) and data streaming (modifiers and constraints). The only worying part is what happens when a CacheFile is deleted and/or has its path changed. For now, we traverse the whole scene and for each object using the CacheFile we free the pointer and NULL-ify it (see BKE_cachefile_clean), but at some point this should be re-considered and make use of the dependency graph.
2016-10-29Alembic export: fix frame range values being reset at every update, drawKévin Dietrich
call.
2016-10-28Cleanup: avoid using G.main.Kévin Dietrich
2016-10-28Alembic Export: set start and end frame to that of the scene forKévin Dietrich
convenience. Users will most likely export an entire animation rather than a single frame, so it can save a few clicks.
2016-10-28CacheFile: fix missing depsgraph update.Kévin Dietrich
2016-10-28CacheFile: only enable scale property slider if we are editing the cacheKévin Dietrich
through a constraint. It doesn't make sense and is a bit confusing to have this property enabled in the modifier context.
2016-10-27Fix T49829: Removal of custom icon previews during add-on unregister crashes ↵Bastien Montagne
Blender. Issue was happening when removal of custom icons was done while they were still being rendered by preview job. Now add a 'deffered deletion' system, to prevent main thread to delete preview image until loading thread is done with them. Note that ideally, calling `ED_preview_kill_jobs()` on custom icon removal would have been simpler, but we don't have easy access to context here...
2016-10-26RangeTree API rewriteCampbell Barton
Rewrite the current range-tree API used by dyn-topo undo to avoid inefficiencies from stdc++'s set use. - every call to `take_any` (called for all verts & faces) removed and added to the set. - further range adjustment also took 2x btree edits. This patch inlines a btree which is modified in-place, so common resizing operations don't need to perform a remove & insert. Ranges are stored in a list so `take_any` can access the first item without a btree lookup. Since range-tree isn't a bottleneck in sculpting, this only gives minor speedups. Measured approx ~15% overall faster calculation for sculpting, although this number time doesn't include GPU updates and depends on how much edits fragment the range-tree.
2016-10-26BLI_bitmap_draw_2d: optimize polygon fillingCampbell Barton
Existing method was fine for basic polygons but didn't scale well because its was checking all coordinates for every y-pixel. Heres an optimized version. Basic logic remains the same this just maintains an ordered list of intersections, tracking in-out points, to avoid re-computing every row, this means sorting is only done once when out of order segments are found, the segments only need to be re-ordered if they cross each other. Speedup isn't linear, test with full-screen complex lasso gave 11x speedup.
2016-10-26Cleanup: rename functions in BLI_bitmap_draw_2dCampbell Barton
2016-10-26Cleanup: move bitmap drawing into its own moduleCampbell Barton
Bitmap drawing is out-of-scope for a general math API, move to BLI_bitmap_draw_2d.
2016-10-26BMesh: edge-net split, edge selection errorCampbell Barton
In practice I couldn't make this cause a bug, however it's a logical regression in fix for T48716. Thanks to Francesc Juhe for finding.
2016-10-25Fix T49815: Blender always reverts to RGBA when using Save As Image.Bastien Montagne
`BKE_imformat_defaults()` was doing some weird black magic based on imbuf's channels, instead of merely copying imbuf's planes here...
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-10-25Partial fix for T49836: Camera DOF properties not updating via graph editorSergey Sharybin
Do this for the new dependency graph: was missing handle of OB_UPDATE_TIME in tag update. Hopefully it's all correct still. Old dependency graph needs work, but i'm tempting to call it unsupported and move on to 2.8 branch.
2016-10-24Fix unlikely uninitialized pointer usage.Bastien Montagne
Reported by Coverity.
2016-10-24Fix T49827L Crash linking material while in Material viewport shading modeSergey Sharybin
Material linking might and does change the way how drawObject is calculated but does not tag drawObject for recalculation in any way. Now use dependency graph to tag draw object for reclaculation. Currently do this using OB_RECALC_DATA taq since tagging is not very granular yet. In the future we can introduce ore granular tagging in the new dependency graph easily. Simple and safe for 2.78a.
2016-10-24Fix mistake in BKE_mesh_new_from_object handling of materials in MetaBall case.Bastien Montagne
Typo, spoted by Coverity scan. To be backported to 2.78a.
2016-10-23Displace modifier: add global/local space option for X/Y/Z/XYZ directions.Quentin Wenger
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2309
2016-10-22GPencil: New option to lock strokes to axisAntonioya
Now, the strokes can be locked to a plane set in the cursor location. This option allow the artist to rotate the view and draw keeping the strokes flat over the surface. This option is similar to surface option but doesn't need a object. The option is only valid for 3D view and strokes in CURSOR mode.
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-10-21Fix T49789: Compositor mix node interpolation bugSergey Sharybin
2016-10-20Alembic: only export custom data (UVs, VCols) once, on the first frame.Kévin Dietrich
This would cause Alembic to throw an exception and fail exporting animations because it was trying to recreate and overwrite the attributes for each frame.
2016-10-20Fix T49797: Exception from scene update handler might leak external engine ↵Sergey Sharybin
descriptors This was causing memory leaks in Cycles. Some more detailed information in the comment in the code. Seems to be safe and nice enough for 2.78a.
2016-10-20Python API: add full_path parameter for bpy.ops.ui.copy_data_path_button.christian brinkmann
Also use the operator as part of the UI keymap now, to deduplicate code and let users configure a custom shortcut. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2303
2016-10-19Fix T49775: Appending data with internal dependency cycles prevents correct ↵Bastien Montagne
clearing of linked data-blocks. This is not a simple fix, but imho still needs to be backported to 2.78a...
2016-10-18[msvc] Minor cleanup in blenkernel.lazydodo
this patch resolves the following warnings; ``` Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 764 Warning C4098 'attach_stabilization_baseline_data': 'void' function returning a value blenkernel\intern\tracking_stabilize.c 139 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\cachefile.c 148 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\paint.c 413 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\editderivedmesh.c 591 Warning C4028 formal parameter 3 different from declaration blenkernel\intern\library_remap.c 709 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 754 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 758 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 759 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 763 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 764 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 765 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 769 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\ocean.c 770 Warning C4028 formal parameter 1 different from declaration blenkernel\intern\DerivedMesh.c 3458 ``` It's mostly things where the signature in the .h and the actual implementation in the .c do not match. And a bunch functions who do not match the TaskRunFunction declaration cause they leave out the __restrict keyword. Reviewers: brecht, juicyfruit, sergey Reviewed By: sergey Subscribers: Blendify Differential Revision: https://developer.blender.org/D2268
2016-10-18Fix: Append 'Object proxy' hack checking for local/linked usages before ↵Bastien Montagne
those flags were set! Dummy mistake, to be backported to 2.78a.
2016-10-18Clarified warning in EnumPropertySybren A. Stüvel
Blender doesn't necessarily crash when Python doesn't keep references to the returned strings. As a result, someone that implements this incorrectly could be lulled into a false sense of correctness by Blender not crashing.
2016-10-17Fixup for doversion (rB8d573aa0 and rBa7e74791)Dalai Felinto
2016-10-17Fix T49722: Appending Bug (Groups).Bastien Montagne
One day we'll have to reconsider why some many 'real' ID usages are not refcounting... :( To be backported to 2.78a.
2016-10-17UV Editor: Add filter option to control what is visible when Draw Other ↵Sergey Sharybin
Objects is enabled Previously the editor will always try to only show UV faces with the same exact active image or image texture, which is quite difficult to control on a production shaders, where each material can have multiple objects assigned. The idea of this commit is to bring option which allows to easily control what to display when "Draw Other Objects" is enabled, so currently we can have old behavior ("Same Image") or tell editor to show everything ("All"). In the future we can extend it with such filters as "Same Material" and things like that. Hopefully this will help @eyecandy's workflow of texturing.
2016-10-17Fix T49738: Hair Add Brush doesn't workSergey Sharybin
the issue was caused by wrong default value for brush particle count which was clamped on display from 0 to 1. This is technically a regression but how to port this to 2.78a?
2016-10-16Fix T49746: crash loading user preferences with missing operators.Brecht Van Lommel
2016-10-16More fixes for keyframe theme optionsJulian Eisel
Couple of issues here: * Missing initialization for 3D view keyframe options for "Reset to Default Theme" * Alpha values not reset correctly on "Reset to Default Theme" * Alpha values of timeline keyframe options not reset correctly for old files Also corrected old version patches even though they're overridden later, to avoid more issues in case people copy this code. Corrections to d7af7a1e04c243 and 8d573aa0ecb61
2016-10-16Fix assert in the wrong place, should be moved earlier to do anything.Chase Willden
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2304
2016-10-16Cleanup: Unused parameters in OutlinerJulian Eisel
These were only passed to own recursion calls.
2016-10-16Fix missing outliner redraw when adding VSE stripJulian Eisel
Needed for outliner "Sequence" display mode.