Blender Git Commits

Blender Git "master" branch commits.

Page: 2219 / 5574

February 4, 2017, 22:01 (GMT)
Optimize BVHTree creation of vertices that have BLI_bitmap test

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).
February 4, 2017, 21:17 (GMT)
fix T50592: Scene.raycast not working

Ray_start and ray_normal values were being ignored
February 4, 2017, 20:51 (GMT)
Fix (unreported) crash in new snap code.

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.
February 4, 2017, 20:31 (GMT)
Fix T50590: BI lamp doesn't hold a texture in this case.

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...
February 3, 2017, 23:08 (GMT)
Snap System: Use callbaks to differentiate how referenced vertives of 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
February 3, 2017, 22:03 (GMT)
Remove flag: `SNAP_OBJECT_USE_CACHE` from snap_context

Since the cache is created in one way or another, this flag is not really making a difference
More details here: D2496
February 3, 2017, 16:15 (GMT)
fix T46892: snap to closest point now works with Individual Origins

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
February 3, 2017, 15:57 (GMT)
Forgotten in committee ddf99214dc06
In obect mode, the rotation matrix need to be restored to the initial value if a snap point is not found
February 3, 2017, 15:11 (GMT)
Buildbot: Re-enable cuda support for OSX
February 3, 2017, 15:10 (GMT)
Fix T50125: Shortcut keys missing in menus for Clear Location, Rotation, and Scale.

Menu entries and shortcuts did not have exact same behavior, now they do
(using shortcuts' behavior).
February 3, 2017, 15:01 (GMT)
Modifications to GPU_texture:

-Remove NPOT check as it should be supported by default with OGL 3.3
-All custom texture creation follow the same path now
-Now explicit texture format is required when creating a custom texture (Non RGBA8)
-Support for arrays of textures

Reviewers: dfelinto, merwin

Differential Revision: https://developer.blender.org/D2452
February 3, 2017, 14:47 (GMT)
Fix T49860: Copying vgroups between objects sharing the same obdata was not 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...
February 3, 2017, 13:05 (GMT)
Depsgraph: Add some extra debug prints on eval
February 3, 2017, 11:03 (GMT)
Tests: Use proper order for EXPECT_EQ()
February 3, 2017, 10:52 (GMT)
Tests: Use EXPECT_FALSE() instead of EXPECT_EQ(foo, false)
February 3, 2017, 10:52 (GMT)
Tests: Use EXPECT_TRUE() instead of EXPECT_EQ(foo, true)
February 3, 2017, 10:35 (GMT)
Cycles: Cleanup, order of arguments to EXPECT_EQ

The order was wrong from the semantic point of view, caused
by some legacy workarounds in Libmv. Didn't realize it's was
not how things were expected to be used.
February 3, 2017, 10:03 (GMT)
Explode modifier: Don't tessellate DM if we are not going to apply modifier
February 3, 2017, 05:27 (GMT)
fix T49494: snap_align_rotation should use a local pivot to make the transformation

The problem was simple, just transform the global coordinates of t->tsnap.snapTarget to local coordinates.
(Some comments were added to the code)
Revision b1b5ded by Luca Rood
February 3, 2017, 01:21 (GMT)
Fix shaders in some immBindBuiltinProgram calls

Had mistakenly used 3D shaders for some 2D drawings...
Replaced those now.

Part of T49043
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021