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-07-27Fix T48061: Crash with adaptive domain and cases when there's no smokeAlexander Gavrilov
2016-07-26Fix T45936: invalid cycles motion blur for particle rotation and children.Alexander Gavrilov
Commit rB709ca0ece changed how rotation was handled for particles so that unless actual rotation physics is enabled, there is no rotation. However it only updated ptcache_particle_read, forgetting to change exactly the same code in ptcache_particle_interpolate. This means that for subframes old code that computes a rotation from velocity is used, resulting in completely different rotation than for integer frames. This causes rotational motion blur by itself, and also mangles motion blur paths of child particles. Reviewers: sergey, lukastoenne Maniphest Tasks: T45936 Differential Revision: https://developer.blender.org/D2124
2016-07-26Fix issues in ID usages checks - we are not interested in self-usages here.Bastien Montagne
Drivers or constraints referencing self object could break deletion of proxy objects (due to their ambiguous, half-local, half-linked status).
2016-07-25OpenSubdiv: Fix opensubdiv option obscuring the interfaceSergey Sharybin
2016-07-25Cleanup: factorize the 'ensure local' part of datablock copy into a single ↵Bastien Montagne
BKE_id_copy_ensure_local function.
2016-07-25OpenSubdiv: Fix missing support of flat shading in textured viewportSergey Sharybin
2016-07-25OpenSubdiv: Use proper material indexSergey Sharybin
2016-07-25Cleanup: debug-only variable.Bastien Montagne
2016-07-23Cleanup: warningCampbell Barton
2016-07-22OpenSubdiv: Properly respect Subdivide UVs optionSergey Sharybin
2016-07-22OpenSubdiv: Properly support active UV layer in textured viewSergey Sharybin
2016-07-22OpenSubdiv: Lay down fundamentals to support multiple UV mapsSergey Sharybin
2016-07-22remove double-checked conditionsMike Erwin
Checking a condition right after we’ve checked it (and it hasn’t changed). Most of these are trivial to understand. split_quads in convertblender.c: It seems quads should be processed and triangles should be marked as not needing split. So I removed the outer vlr->v4 check. Found with PVS-Studio T48917
2016-07-22fix null pointer dereferencesMike Erwin
Found with PVS-Studio T48917
2016-07-22Fix broken proxy object deletion.Bastien Montagne
Check to ensure we do not delete last instancing of an indirectly used object (forbidden because it creates 'ghost' objects user have no real way to re-instance) was defeated by the backward pointer 'proxy_from', which generated a 'false' indirect usage of (local) proxy object itself (the one we are trying to delete). Fixed by actually considering that ID usage as local if proxy object itself is local (because that pointer actually does not 'pertain' to the object holding it, but to its proxy). Yeah, it's... complicated, twisted and ugly - it's proxy.
2016-07-21Cleanup: warningsCampbell Barton
2016-07-21remove repeated codec-supports-alpha checkMike Erwin
I don’t think any other codec enum makes sense here, so probably just an extra copy/paste. Here are the video codecs: AV_CODEC_ID_NONE AV_CODEC_ID_MPEG4 AV_CODEC_ID_MJPEG AV_CODEC_ID_DNXHD AV_CODEC_ID_MPEG2VIDEO AV_CODEC_ID_MPEG1VIDEO AV_CODEC_ID_DVVIDEO AV_CODEC_ID_THEORA AV_CODEC_ID_PNG <— alpha AV_CODEC_ID_QTRLE <— alpha AV_CODEC_ID_FFV1 <— alpha (if enabled) AV_CODEC_ID_HUFFYUV <— alpha AV_CODEC_ID_H264 AV_CODEC_ID_FLV1 Found with PVS-Studio T48917
2016-07-21Add BKE_mesh_calc_islands_loop_poly_uvmap and use it in new OSD UV subdiv.Bastien Montagne
Also renamed BKE_mesh_calc_islands_loop_poly_uv to BKE_mesh_calc_islands_loop_poly_edgeseam, to avoid confusion...
2016-07-21BKE mesh mapping: add new BKE_mesh_edge_loop_map_create().Bastien Montagne
Maps edges to all their pair of loops.
2016-07-21Fix (unreported) memleak in image copy function.Bastien Montagne
2016-07-21Fix stupid (harmless) mistake in recent commit.Bastien Montagne
2016-07-21BKE_library_make_local: clear behind us no more used linked datablocks.Bastien Montagne
This is really not elegant solution, but simplest for now. Ideally, we'd check all IDs first and directly 'make local' (without need to copy) those only indirectly used by other datablocks to be made local. Would also save us from the need of the extra 'lib_local' parameter recently added to id_make_local. Current code seems to work well enough though, and this is not high priority to fix imho.
2016-07-21Fix (unreported) crash in some case when remapping armature data.Bastien Montagne
Those bone pointers in object's pose bite again - turns out they can be accessed before pose actually gets rebuilt in some cases (e.g. from undo writefile), so we need to clear the pointers immediately.
2016-07-21Fix missing datablocks types in id_make_local.Bastien Montagne
Adding make_local for vfont/gpencil/group/freestyle linestyle/mask/scene/sound/text. Note that there are still some lose ends here, since some type are not handled by id_copy (Scene, Sound and VFont), which means in case a datablock of that type is used both directly and indirectly, localization will fail. Scene copying might be doable though (maybe with a simple new 'full shalow' mode to existing BKE_scene_copy?), not sure about sounds and vfonts... Situations where this becomes an issue should be very rare corner cases anyway.
2016-07-21Cleanup: get rid of lib_indirect_test_id.Bastien Montagne
id_make_local and later remapping are supposed to handle that already, and in a much much saner and more complete way.
2016-07-21Refactor/deduplicate even more make_local code (and fix part of T48907).Bastien Montagne
Turns out most BKE_foo_make_local datablock-specific functions are actually doing exactly the same thing, only two currently need special additional operations (object and brush ones). So added a BKE_id_make_local_generic instead of copying same code over and over. Also, changed a bit how make_local works in case we are localizing a whole library. We need to do the 'remap' step (from old linked ID to new local one) in the second loop, otherwise we miss some dependencies. This fixes main part of T48907.
2016-07-21Tracking: Fix possible cases when tracker will try tracking failed tracksSergey Sharybin
2016-07-21OpenSubdiv: Prepare majority of things to have proper subdivided UVSergey Sharybin
Mainly the changes are related on establishing API to feed UV islands to OpenSubdiv, so it will know all the connectivity information and will be able to do proper interpolation. Island calculation is currently rather slow, not sure how to make it fast and not use lots of allocations. Shouldn't be THAT bad, since this code is only runs once when creating OSD mesh, and it's probably still faster than our orientation code.
2016-07-20Fix copy-materials resetting objects material indicesCampbell Barton
2016-07-20Cleanup: use BKE naming convention for object materialsCampbell Barton
Also remove unused 'material_from' function (which isn't very useful).
2016-07-20Cleanup: remove completely call to test_object_materials in ↵Bastien Montagne
BKE_mesh_new_from_object. Don't know why this was ever added to start with, BKE_mesh_new_from_object shall never affect ob->data!
2016-07-20Fix T48898: shaders are removed from metaballs on cycles render.Bastien Montagne
Note that issue has several levels here actually, first one was metaball's materials not being properly copied into new mesh (code was commented out because of some crash it seems, made it a bit closer to mesh one and got no crash at all...). Then, we were calling test_object_materials when ob->data is actually *not* new tmpmesh! Will remove this call completely in next commit (to make it easier to bisect), I cannot see any case where object would be assigned with newly generated tmpmesh in this func.
2016-07-20OpenSubdiv: Initial work to support UV maps in textured OSD viewportSergey Sharybin
A bit work in progress, currently the following limitations: - Texture shading only, Material shading will come later - No UVs subdivision yet - Always uses active UV and currently changing active UV will not properly update the viewport. Well, need to start somewhere :)
2016-07-19Fix (IRC reported by Sergey) assert regarding icon_id of newly copied ↵Bastien Montagne
datablocks. BKE_previewimg_copy() would simply copy PreviewImage's icon_id, without bothering about ID one. When we duplicate an ID, we want to reset its icon_id to zero (and regenerate it on-demand), not keep same icon_id as original, so added new BKE_previewimg_id_copy helper to handle that.
2016-07-19Fix missing break in libblock relinkCampbell Barton
2016-07-19Cleanup: style, spellingCampbell Barton
2016-07-19Cleanup: style, spellingCampbell Barton
2016-07-18Additional Waveform Drawing ModeSergey Sharybin
This diff adds a 6th drawing mode to the Waveform Scope. The new mode shows the RGB colour channels overlaid as a "Full colour" waveform. The old "Red Green Blue" mode is renamed "Parade" which is the standard industry term for RGB channels shown side-by-side. This full colour style of waveform is very much more useful for colour grading than the Parade mode and is the default waveform for many artists. Files from older Blender versions which show scopes open as expected. Patch by John Cox (johnedwardcox), thanks! Reviewers: sergey Reviewed By: sergey Subscribers: campbellbarton, tmw, Blendify Differential Revision: https://developer.blender.org/D1936
2016-07-16Fix use after free error from ab993e37Campbell Barton
2016-07-16Cleanup: spellingCampbell Barton
2016-07-14Cleanup: comment blocksCampbell Barton
2016-07-14Fix T48844: Nodetrees of appended materials/textures/etc. were not correctly ↵Bastien Montagne
made local. Previous commits now allow to use id_make_local() here, as one would expect. Note that I also checked T36003 case, working fine as well with new code.
2016-07-14Correct recent own fix to id_clear_lib_data_ex().Bastien Montagne
Datablocks' nodetree are *never* in main, while shapekeys are...
2016-07-14Cleanup/refactor: handle shapekeys exactly like 'owned' nodetrees in ↵Bastien Montagne
make_local process.
2016-07-14Cleanup: use BKE's ntreeFromID in readfile instead of local same function.Bastien Montagne
Also, no need to set ntree->id.lib to NULL after BKE_libblock_copy_nolib(), generic datablock copy function always make copy local.
2016-07-14Fix bad handling of datablock's nodetree id_clear_lib_data_ex().Bastien Montagne
Those data blocks are never shared, exactly as with shapekeys, much simpler to also clear their lib_data (especially since they have no user!).
2016-07-14Get rid of BKE_key_make_local().Bastien Montagne
This function was only a wrapper around id_clear_lib_data(), and shapekeys are not linkable nor shareable anyway, no point keeping this currently, was only adding confusion about shapekey 'status' as a datatblock.
2016-07-14Add option to id_make_local to force localization of datablock, even if not ↵Bastien Montagne
used locally. Will be used by link/append code.
2016-07-14Fix T48843: Sequencer crash with many effectsCampbell Barton
Switch from a fixed stack to a linked list, since guessing the maximum possible size may fail with invalid/overlapping strips.
2016-07-14Consolidate multiple checks for out->rect_float in prepare_effect_imbufs()Chad Fraleigh
Many checks for out->rect_float being [non-]NULL are done back-to-back. Combining them into a single check for slightly more efficient code and less code clutter for easier readability/understanding. Differential Revision: https://developer.blender.org/D2097