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
2017-02-08Fix T49249: Alembic export with multiple hair systems crash blenderSybren A. Stüvel
Removed unnecessary call to DM_update_tessface_data(). This call is already performed by DM_ensure_tessface(dm). The call being performed twice caused a failing BLI_assert(). Reviewed by: Kévin Dietrich
2017-02-08Alembic export: avoid infinite loops trying to find parent objects.Sybren A. Stüvel
Also added some assertions for debugging purposes Reviewed by: Kévin Dietrich
2017-02-08Alembic export: only create transform writer if the object should be exportedSybren A. Stüvel
Reviewed by: Kévin Dietrich
2017-02-08Alembic: #undef'ed the correct macroSybren A. Stüvel
TEST_RET is not defined anywhere in Blender's sources, and LAYER_CMP is no longer used after this function ends.
2017-02-08Alembic: Use getXForm() in check, because it's used in rest of the function tooSybren A. Stüvel
This makes the code within the function consistent.
2017-02-08Alembic: Renamed copy_zup_yup to copy_yup_from_zup (and same for zup_from_yup)Sybren A. Stüvel
With the new names the arguments (yup, zup) are in the same order as they appear in the function name. The old names used copy_src_dst(dst, src), which I found very confusing. Furthermore, now it is clear from where to where the copy is made. This makes the function names a little bit longer, though. If that is a real issue, we can just name them zup_from_yup(zup, yup). Reviewed by: Kévin Dietrich
2017-02-07Cleanup: Use const qualifier in some of color management codeSergey Sharybin
2017-02-07Sequencer: Some extra speedup in color space conversionSergey Sharybin
Use the new utility from coloranagement which multi-threads byte to float conversion. Gives extra 10% speedup from quick tests.
2017-02-07Color management: Add utility function to convert byte to float with ↵Sergey Sharybin
processor applied
2017-02-07Sequencer: Speedup conversion to sequencer spaceSergey Sharybin
Speedup is mainly gained by multi-threading. Gives about 3x fps gain on an edit shot file. There is still some room for improvements, will happen in one of the upcoming commits.
2017-02-07Color management: Implement threaded byte buffer conversionSergey Sharybin
The title says it all actually: now we can convert byte buffer directly, without need of temporary float buffer.
2017-02-07Param `is_cached` not being used in` bvhtree_from_mesh_edges_setup_data`Germano Cavalcante
This could cause bugs in the memory release
2017-02-07Fix missing hair after rendering with different viewport/render settingsSergey Sharybin
Derived mesh for particles did not include tessellated faces when it was expected to. Now added explicit function to copy CDDM with tess faces without need to re-tessellate the result.
2017-02-07PIL_time_utildefines: also show total time in TIMEIT_AVERAGED.Bastien Montagne
2017-02-06Fix (unreported) Object previews being written even for skipped objects.Bastien Montagne
2017-02-06Cleanup writefile code a bit.Bastien Montagne
Modernize some of it a bit, saves quite some lines of blabla (using shile instead of for loops... tsssts...).
2017-02-06Specify the correct size of the BVHTree of edgesGermano Cavalcante
~edge_num~ edges_num_active Not always all the edges enter in the build
2017-02-06Standardization and style for BKE_bvhutilsGermano Cavalcante
Add `bvhtree_from_mesh_edges_ex` and callbacks to nearest_to_ray (Similar to the other functions of this code)
2017-02-06Fix 'public' global 'g_atexit' var in Blender.Bastien Montagne
No reason to not make this private to this file, and it gave conflict when using bpy as module and loading it in a GLib application (which also has a g_atexit var).
2017-02-06Fix compilation error after recent changeSergey Sharybin
2017-02-06Add shortcuts for unsigned int, short, long and charSergey Sharybin
Feel free to use those in the new code. And stay away from simple "unsigned".
2017-02-06Use hash instead of linear lookup in armature deformSergey Sharybin
This avoids calling linear lookup 100s of time when dealing with real-life character. Still some tweaks possible.
2017-02-06Multi-thread displace modifierSergey Sharybin
The title says it all actually. Use BLI task to loop over vertices and distort their locations. Gives 2x FPS increase in a file with just time-dependent displace modifier on my desktop.
2017-02-06Displace modifier: Use special version of texture samplingSergey Sharybin
This version will give less spin locks and now well-tested by render engines. This should reduce amount of threading overhead when having multiple objects with displace modifier enabled. In the future this will also help us threading the modifier. There are more modifiers which could benefit from this, but let's first investigate the new behavior with one of them.
2017-02-06Add special texture sampling function which takes image pool argumentSergey Sharybin
Using image pool will reduce number of thread locks when acquiring image. Useful when it's needed to sample texture fewzillion times a second.
2017-02-06Fix memory leak when building without audaspaceSergey Sharybin
2017-02-06C++ conformance fixes (MSVC /permissive-)Phil Christensen
We (the Microsoft C++ team) use the Blender project as part of our "Real world code" tests. I noticed a place in WIN32 specific code (dvpapi.cpp:85) where a string literal is losing its const-ness when being passed to BLI_dynlib_open(). This is not permitted when using the /permissive- conformance compiler switch (see our blog https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/) My suggested fix is to add const and propagate it where needed. Another possible fix would be to explicitly cast away the const. Reviewers: mont29, sergey, LazyDodo Subscribers: Blendify, sergey, mont29, LazyDodo Tags: #platform:_windows Differential Revision: https://developer.blender.org/D2495
2017-02-06fix T50602: Avoid crash when executing ↵Germano Cavalcante
`transform_snap_context_project_view3d_mixed` with `dist_px` NULL
2017-02-05Cleaning of the last commit: lack of attention with the debug of time X(Germano Cavalcante
This was a stupid mistake
2017-02-05Optimize BVHTree creation of vertices that have BLI_bitmap testGermano Cavalcante
Instead of reference the vertex first and test the bitmap afterwards. Test the bitmap first and reference the vertex after. In a mesh with 31146 vertices and the entire bitmap disabled, the loop time is 243% faster With all bitmap enabled, the time becomes 463473% faster!!! One possible reason for this huge difference in peformance is that maybe the compiler is not putting the function "BM_vert_at_index" inline (I dont know if buildbot do this, but it's good to investigate).
2017-02-05fix T50592: Scene.raycast not workingGermano Cavalcante
Ray_start and ray_normal values were being ignored
2017-02-04Fix (unreported) crash in new snap code.Bastien Montagne
Looks like `object_map` and `mem_arena` may be NULL sometimes... Also, cleaned up function pointers declaration of Nearest2dUserData, those were warning out in gcc. Please, *always* use typdef defined prototypes for function pointers, it is sooooo much cleaner and clearer that way. And easy to convert from compatible functions too.
2017-02-04Fix T50590: BI lamp doesn't hold a texture in this case.Bastien Montagne
BKE_lamp_free was somehow missing the refactor of datablocks handling (which, among other things, completely separated ID refcounting and linking management from ID freeing itself). Either forgot during development, or lost during merge...
2017-02-04Snap System: Use callbaks to differentiate how referenced vertives of ↵Germano Cavalcante
DerivedMeshs and Bmeshs Before it was informed the type of object in the `userdata`, and a same function ran between the types to obtain the coordinates of the vertices
2017-02-04Remove flag: `SNAP_OBJECT_USE_CACHE` from snap_contextGermano Cavalcante
Since the cache is created in one way or another, this flag is not really making a difference More details here: D2496
2017-02-03fix T46892: snap to closest point now works with Individual OriginsGermano Cavalcante
The code looks for the closest element between its centers. In the case of islands, the center of each vertex is the center of the island. The solution here is to skip the search for islands when the operation is translation
2017-02-03Forgotten in committee ddf99214dc06Germano Cavalcante
In obect mode, the rotation matrix need to be restored to the initial value if a snap point is not found
2017-02-03Fix T49860: Copying vgroups between objects sharing the same obdata was not ↵Bastien Montagne
possible. Pretty straight forward actually, just do not bother about obdata part of vgroups in that case, only copy object part of it. And let's curse once again those stuff spread accross several types of data-blocks...
2017-02-03Depsgraph: Add some extra debug prints on evalSergey Sharybin
2017-02-03Explode modifier: Don't tessellate DM if we are not going to apply modifierSergey Sharybin
2017-02-03fix T49494: snap_align_rotation should use a local pivot to make the ↵Germano Cavalcante
transformation The problem was simple, just transform the global coordinates of t->tsnap.snapTarget to local coordinates. (Some comments were added to the code)
2017-02-02Fix T50084: Adding torus re-orders UV layers.Bastien Montagne
Issue was indeed in join operation, mesh in which we join all others could be re-added to final data after others, leading to undesired re-ordering of CD layers, and existing vertices etc. being shifted away from their original indices, etc. All kind of more or less bad and undesired changes, fixed by always re-inserting destination mesh first. Also cleaned up a bit that code, it was doing some rather non-recommanded things (like allocating zero-sized mem, doing own coocking to remove a data-block from main, etc.).
2017-02-02Fix T50524: Basis shapekey editing while rendering bug.Bastien Montagne
Root of the issue was BM_mesh_bm_to_me() breaking application of basis offset to 'child' shapekeys, when called more than once from same BMesh.
2017-02-02Fix T50497: prop_search not correctly drew in UI (D2473)raa
2017-02-02Fix T50535: Cycles render segfault when Explode modifier before hair ↵Sergey Sharybin
particle modifier + UV material Tricky issue caused by CDDM_copy() coying MFACE array but not MTFACE which confused logic later on. Now we don't copy ANY tessellation unless it is requested to. Thanks Bastien for help and review!
2017-02-02Revert the change of a default in a recent commitAaron Carlisle
This was my own mistake
2017-02-02Fix incorrect spot lamp blend in python GPU uniform export.Michael Stahre
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2378
2017-02-02Fix missing uniform type for python GPU uniform export.Michael Stahre
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2379
2017-02-01Fix T50570: pressing pgup or pgdn in any scrollable area irreversably alters ↵Bastien Montagne
scrolling speed. 'page' prop of scroll up/down operators would get stuck once set once by pageup/down keys... Now only take this prop into account if explicitely set, not when its value is inherited from previous run.
2017-02-01Snap System: BVH: Ignore calculations, in parent nodes, used only in ↵Germano Cavalcante
perspective view Strangely this change does not affect the performance very much. Suzanne subdividide 6x (ortho view): Before:0.00013983 After :0.00013920 But it makes it easier to read the code