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-25Merge branch 'master' into asset-engineBastien Montagne
2016-07-25Cleanup: debug-only variable.Bastien Montagne
2016-07-25Curve Drawing: Use cyclic for stroke with near start/end pointsCampbell Barton
2016-07-25Curve Drawing: Add option to use new refit methodCampbell Barton
2016-07-25Curve Fitting: Add alternate 'refit' methodCampbell Barton
This is an alternative method for fitting a curve which incrementally simplifies the curve, then re-fits. Generally gives better results, also improves corner detection.
2016-07-24Merge branch 'master' into asset-engineBastien Montagne
Conflicts: source/blender/windowmanager/intern/wm_files_link.c
2016-07-24Some more small fixes regarding ID/library asset handling.Bastien Montagne
2016-07-24Fix T48397: Can not bake tweaked NLAKévin Dietrich
We need to leave tweak mode before trying to modifiy the action as doing so will leave Blender in a semi-corrupted state. Reviewers: #animation Reviewed by: aligorith Maniphest Tasks: T48397 Differential Revision: https://developer.blender.org/D2119
2016-07-24Fix T48663: The Soft Light blend type layer make the color darker in theKévin Dietrich
3D view There was a misusage of the `outcol` and `texcol` params. The actual formula should have been: incol = facm * outcol + fact * ((one - outcol) * texcol * outcol + outcol * scr); To make sure the result is consistent with material mode, reuse the material blend function (mix_soft), similarly to what most other texture blend modes do.
2016-07-23Cleanup: styleCampbell Barton
2016-07-23Cleanup: warningCampbell Barton
2016-07-23fix atan2f input conditionalMike Erwin
Suspicious conditional found by PVS-Studio T48917 Original code (from Blender’s initial open-source commit!) looks like it’s testing inputs to atan2f, to avoid undefined function values. Passing xn=0 does *not* always evaluate to 0 though… I’m not sure if this is a coding error or was done for a desired visual result. Also changed xn==0 to xn>=0 to avoid function call in more cases. Good description and visualization of atan2f function: http://en.cppreference.com/w/c/numeric/math/atan2
2016-07-22OpenSubdiv: Properly respect Subdivide UVs optionSergey Sharybin
2016-07-22Fix crash using ID remapping on invalid ID pairsJulian Eisel
Missing NULL checks caused crash in BKE_reportf formatting.
2016-07-22OpenSubdiv: Initial support of UV maps in material shading modeSergey 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-22Correct mistake comparing verticesCampbell Barton
2016-07-22use bool consistently, fix redundant conditionalMike Erwin
Redundant conditional (line 939) found with PVS-Studio T48917 There’s still a lot of true/false, 1/0, SELECT/DESELECT usage nearby. Not a problem, just confusing to read.
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 T48926: Subdivide edge-ring crashCampbell Barton
Also resolves: T34294
2016-07-22fix confusing operator precedenceMike Erwin
Assigning within a conditional is confusing and error prone so I rewrote in a more straightforward way. Found with PVS-Studio T48917
2016-07-22fix enum type / values mismatchMike Erwin
Found with PVS-Studio T48917
2016-07-22fix null pointer dereferencesMike Erwin
Found with PVS-Studio T48917
2016-07-22fix comparison of identicalsMike Erwin
Some of these check that dimensions match before running code that assumes they do match. For imb_stereo3d_write_anaglyph I *assume* this change reflects the intended behavior. Before it was always grabbing alpha from buffer 0. Found with PVS-Studio T48917
2016-07-22Cleanup: pass pointer to texture draw stateCampbell Barton
2016-07-22BMesh: compare face angles as angles cosineCampbell Barton
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-21fix typo in conditionMike Erwin
(A - A).norm() is always 0 so condition is always true. (A - B).norm() and (B - A).norm() both compute the same distance so I picked one to match surrounding code. Found with PVS-Studio T48917
2016-07-21Fix T48915: Wrong threshold on scaled objects and ortho view.Germano Cavalcante
`ray_is_normalized` == true in DerivedMesh
2016-07-21Fix crash w/ auto-insert offsetCampbell Barton
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-21Cleanup: use const, move comments to enumCampbell Barton
2016-07-21Cleanup: unused brush DNACampbell Barton
2016-07-21Cleanup: spellingCampbell Barton
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!