Sybren A. Stüvel [Wed, 5 Aug 2015 10:47:37 +0000 (12:47 +0200)]
Doc fix: rather then -> rather than
Campbell Barton [Wed, 5 Aug 2015 10:28:31 +0000 (20:28 +1000)]
Only show interpolation buttons w/ bezier splines
Campbell Barton [Wed, 5 Aug 2015 10:26:52 +0000 (20:26 +1000)]
Remove redundant addition in BKE_mesh_calc_volume
Campbell Barton [Wed, 5 Aug 2015 10:24:01 +0000 (20:24 +1000)]
Fix selecting linked edges
Campbell Barton [Wed, 5 Aug 2015 10:18:57 +0000 (20:18 +1000)]
Fix T45641: crash cutting meta-strips
Sergey Sharybin [Wed, 5 Aug 2015 09:54:11 +0000 (11:54 +0200)]
OpenSubdiv: Make subsurf behavior closer to original one when built with OpenSubdiv but without enabling option
Sergey Sharybin [Wed, 5 Aug 2015 09:45:52 +0000 (11:45 +0200)]
Buildbot config: disable gooseberry branch from nightly builds
There's no updates happening in the gooseberry branch, so no really reason
to waste time on rebuilding the branch overnight.
Sergey Sharybin [Wed, 5 Aug 2015 09:44:36 +0000 (11:44 +0200)]
Buildbot config: remove windows scons and mingw builders
They are defunct at this moment, no reason to try scheduling builds on them.
Julian Eisel [Tue, 4 Aug 2015 19:56:43 +0000 (21:56 +0200)]
Nodes: Link lines & link arrows not scaling to DPI/pixelsize correctly
Sergey Sharybin [Tue, 4 Aug 2015 16:50:37 +0000 (18:50 +0200)]
Cycles: Remove 32bit cuda workaroudn and disable cubins for buildbot
Recent changes to kernel broke compilation of the kernels again, need some
other kind of solution for this issue.
Don't have much time for this currently, but will be addressed before the
release.
Meanwhile it's better to have some buildbot builds instead of totally failing
one.
Sergey Sharybin [Tue, 4 Aug 2015 16:33:55 +0000 (18:33 +0200)]
OpenSubdiv: Preparation for enabling it for linux buildbot
Sergey Sharybin [Tue, 4 Aug 2015 16:32:21 +0000 (18:32 +0200)]
OpenSubdiv: Modifiers module missed WITH_OPENSUBDIV define
Sergey Sharybin [Tue, 4 Aug 2015 16:25:34 +0000 (18:25 +0200)]
OpenSubdiv: Fix for missing OpenMP device when building with SCons
Sergey Sharybin [Tue, 4 Aug 2015 16:18:21 +0000 (18:18 +0200)]
OpenSubdiv: Correction for compute devices detection in SCons
SCons was still using file names from 2.x branch.
Sergey Sharybin [Tue, 4 Aug 2015 16:04:45 +0000 (18:04 +0200)]
SCons: Fix for really nasty bug with polluting configuration environment
The issue was caused by the following construction:
def = env['SOMETHING']
defs.append('SOMETHING_MORE')
Since first assignment was actually referencing environment option it was totally
polluted hawing weird and wonderful side effects on all other areas of Blender.
Antony Riakiotakis [Tue, 4 Aug 2015 14:03:20 +0000 (16:03 +0200)]
Fix fast navigate winding being incorrect (apparent when backface
culling was on)
Julian Eisel [Tue, 4 Aug 2015 13:25:19 +0000 (15:25 +0200)]
Nodes: Make method to detect hovered link during transform more predictable/responsive
The old method:
The "old" method used the node dimensions to get a number of lines and checked if they intersect with the node link. Issue with this is that only a small part of the actual node surface is checked, making the method a bit unpredictable or unresponsive.
The new method:
The new method checks for intersections within the entire node surface. If multiple links are intersected, the node with the smallest distance from the *upper left corner* to the link is chosen.
Reviewed by @campbellbarton (tm)
Campbell Barton [Tue, 4 Aug 2015 12:31:32 +0000 (22:31 +1000)]
Remove alloc checks in laplaciansmooth
These arrays aren't especially big or likely to fail.
Campbell Barton [Tue, 4 Aug 2015 12:11:43 +0000 (22:11 +1000)]
Remesh modifier has unnecessary MFace calculation
Campbell Barton [Tue, 4 Aug 2015 12:08:21 +0000 (22:08 +1000)]
Missed from last commit
Campbell Barton [Tue, 4 Aug 2015 11:30:10 +0000 (21:30 +1000)]
Remove MFace use w/ laplacian smooth
Use polygons for calculation
Sergey Sharybin [Tue, 4 Aug 2015 10:23:53 +0000 (12:23 +0200)]
OpenSubdiv: Report when OSD can't be enabled due to dependencies
Should be useful for debugging cases when enabling the option doesn't
cause any performance improvements.
Sergey Sharybin [Tue, 4 Aug 2015 09:04:27 +0000 (11:04 +0200)]
OpenSubdiv: forgot this in the previous commit
Need to find better approach for dealing with shadeless materials.
Sergey Sharybin [Tue, 4 Aug 2015 08:49:32 +0000 (10:49 +0200)]
OpenSubdiv: Optimize drawing shader
The idea is to cut as much code as possible and use compile-time
ifdefs rather than runtime if() statements.
Gives about 2x speedup on catmark_car model from OpenSubdiv repository
making our FPS much closer to what glViewer is capable of.
Campbell Barton [Tue, 4 Aug 2015 08:34:20 +0000 (18:34 +1000)]
Use PyC_ParseBool to parse bools
This could cause problems since they could be any int,
then passed directly to internal functions that assume bools.
Campbell Barton [Tue, 4 Aug 2015 14:21:50 +0000 (00:21 +1000)]
Docs: comment functions in BLI & Py API
Mateo de Mayo [Mon, 3 Aug 2015 21:47:46 +0000 (23:47 +0200)]
BGE: Added getActionName() function to KX_GameObject()
It works similar to getActionFrame(), you have to give a layer or not (for layer 0) as the argument and it returns the name of the animation that the object is currently playing.
Example:
```
import bge
own = bge.logic.getCurrentController().owner
own.playAction("SomeAction",0,20)
print(own.getActionName())
```
>> SomeAction
Here is an example file, just open the blend file with the terminal opened
and press P, you can see how the current animation is being printed:
{
F217484}
Reviewers: moguri, hg1, panzergame, campbellbarton
Reviewed By: panzergame
Subscribers: campbellbarton, hg1, #game_engine
Projects: #game_engine
Differential Revision: https://developer.blender.org/D1443
Sergey Sharybin [Mon, 3 Aug 2015 18:35:43 +0000 (20:35 +0200)]
OpenSubdiv: Fix/workaround for missing generated coordinates in viewport
This actually requires some bigger work to make it fully supported but
for now at least avoid breaking shading with OpenSundiv option disabled.
Sergey Sharybin [Mon, 3 Aug 2015 18:18:33 +0000 (20:18 +0200)]
OpenSubdiv: Support shadeless shading
Sergey Sharybin [Mon, 3 Aug 2015 17:47:06 +0000 (19:47 +0200)]
OpenSubdiv: Smooth shading became broken in recent commit
Antony Riakiotakis [Mon, 3 Aug 2015 17:41:34 +0000 (19:41 +0200)]
Sculpt: Fix tiling with brushes that use a locked plane
Patch by Tilman Blumhagen, thanks!
Antony Riakiotakis [Mon, 3 Aug 2015 17:08:50 +0000 (19:08 +0200)]
Multires sculpting drawing optimization:
Use OpenGL 3.2 extension ARB_draw_elements_base_vertex, which allows us
to add offset in index buffer indices automatically. This should reduce
the number of draw calls significantly.
We may have some errors on the Mac with VBO setting off.
OSX OpenGL extensions don't play well with vertex arrays.
Will test that more later.
We might also use a full element buffer here, like we do when hiding
some quads, but this approach keeps the memory savings intended
originally.
Sergey Sharybin [Mon, 3 Aug 2015 15:30:44 +0000 (17:30 +0200)]
OpenSubdiv: Made it a modifier option to enable OSD for viewport
The idea of this commit is to make it so we can enable OpenSubdiv by default
for the release builds but keep it limited to the viewport only for a specific
meshes. This is a temporary solution for until all the needed features are
supported on the OpenSubdiv side.
Flag itself is done as a dedicated field in modifier DNA so we can easily
remove it in the future without ending up with some temporary flag hanging
around forever.
Antony Riakiotakis [Mon, 3 Aug 2015 15:47:03 +0000 (17:47 +0200)]
Fix T45654 fast navigate artifacts.
Was overdrawing the buffer, in case of fast drawing just use one
draw call. Should also make performance quite smoother.
Note:
Just discovered we are doing one draw call - per grid - in multires
apparently to keep reusing the same element buffer.
This is horribly, dreadfully slow and will check about fixing it later.
Sergey Sharybin [Mon, 3 Aug 2015 14:44:46 +0000 (16:44 +0200)]
OpenSubdiv: Avoid crashes when GPU subsurf is tried to be used on CPU
The issue was caused by CCG code being confused by number of geometry returned
by utility functions in the case of the skipped grids.
Made it so that code is always only working with CCG data and handled drawing
code in a bit special way now.
This solves such crashes as i.e. snapping.
Sergey Sharybin [Mon, 3 Aug 2015 14:04:33 +0000 (16:04 +0200)]
OpenSubdiv: Make new geometry relations ensures dependent data exists on CPU
Sergey Sharybin [Mon, 3 Aug 2015 13:57:22 +0000 (15:57 +0200)]
OpenSubdiv: Resolve crashes when other object depends on subsurf-ed object
Cases like using subsurfed object as a boolean operand can't be evaluated
on GPU and needs to have all the CCG on CPU.
This commit resolves existing configuration to survive, but new configurations
would need to have some sort of forced object update so all the data is being
moved on CPU if it was previously on GPU.
Sergey Sharybin [Mon, 3 Aug 2015 13:30:25 +0000 (15:30 +0200)]
OpenSubdiv: Remove workaround for simple subdivision mode
This case is now supposed to be supported by OpenSubdiv.
Sergey Sharybin [Mon, 3 Aug 2015 13:27:06 +0000 (15:27 +0200)]
OpenSubdiv: Corrections to GLSL version
Was own mistake in the last minute fixes, now matcaps should
work just fine.
Campbell Barton [Mon, 3 Aug 2015 13:18:09 +0000 (23:18 +1000)]
Fix buffer overrun lofting nurbs
Campbell Barton [Mon, 3 Aug 2015 13:06:03 +0000 (23:06 +1000)]
Fix own mistake in curve refactor
Sergey Sharybin [Mon, 3 Aug 2015 12:50:31 +0000 (14:50 +0200)]
OpenSubdiv: More proper loop for UV map evaluation on CPU
This is just updating code from our side, actual evaluation is still
disabled because it doesn't support face farying data evaluation.
Sergey Sharybin [Mon, 3 Aug 2015 12:33:03 +0000 (14:33 +0200)]
OpenSubdiv: Fix crash caused by applying subsurf on non-mesh object
Sergey Sharybin [Mon, 3 Aug 2015 12:26:31 +0000 (14:26 +0200)]
OpenSubdiv: Correction to vert edge/face orientation code
non-manifold case didn't start ordering from the correct edge.
Sergey Sharybin [Mon, 3 Aug 2015 11:50:31 +0000 (13:50 +0200)]
OpenSubdiv: Switch CPU evaluator to use uniform refinement
This way the result matches GPU viewport and becomes really close to out
legacy subsurf code.
Sergey Sharybin [Mon, 3 Aug 2015 11:44:41 +0000 (13:44 +0200)]
OpenSubdiv: Mark non-manifold verts as sharp
Sergey Sharybin [Mon, 3 Aug 2015 11:38:07 +0000 (13:38 +0200)]
OpenSubdiv: Disable topology check happening from OpenSubdiv side
This check doesn't handle multiple non-manifolds cases which is rather
really annoying currently.
Sergey Sharybin [Mon, 3 Aug 2015 11:20:41 +0000 (13:20 +0200)]
OpenSubdiv: Work on better vert edge/face orientation code
Previous version of code didn't handle cases like hourglass connectivity
with loose edge. The new code is supposed to handle all this cases.
Campbell Barton [Mon, 3 Aug 2015 10:44:41 +0000 (20:44 +1000)]
Fix T45620: Coplanar faces w/ flipped normals not selected
Campbell Barton [Mon, 3 Aug 2015 10:44:00 +0000 (20:44 +1000)]
Cleanup: remove redundant normalize
Martijn Berger [Mon, 3 Aug 2015 10:19:20 +0000 (12:19 +0200)]
Fix bgl so that get-methods that take a string use strings instead of bgl buffer objects again
Campbell Barton [Mon, 3 Aug 2015 10:00:16 +0000 (20:00 +1000)]
Add bool parser for PyArg_ParseTuple
Use for mathutils.bvhtree
Campbell Barton [Mon, 3 Aug 2015 07:39:55 +0000 (17:39 +1000)]
Fix T45625: Unpredictable grid fill
Detect when there are < 3 corners & automatically calculating the span isn't useful.
Campbell Barton [Mon, 3 Aug 2015 06:14:22 +0000 (16:14 +1000)]
Fix grid-fill offset option
Wasn't applied relative to the active vertex.
Campbell Barton [Mon, 3 Aug 2015 03:32:58 +0000 (13:32 +1000)]
Fix T45644: bpy.utils.smpte_from_frame drops frame
D1444 by @lichtwerk, with minor fix & docstring updates
Kévin Dietrich [Sun, 2 Aug 2015 21:46:38 +0000 (23:46 +0200)]
Fix T45649: Adding Point Density Texture to World Color Crashes Blender.
Crash was caused by missing field in NodeShaderTexPointDensity.
Committed with @dingto blessings.
Julian Eisel [Sun, 2 Aug 2015 13:41:03 +0000 (15:41 +0200)]
Use auto-offset after adding node from search menu as well
Campbell Barton [Sun, 2 Aug 2015 13:35:58 +0000 (23:35 +1000)]
correct ifdef
Jörg Müller [Sun, 2 Aug 2015 09:26:20 +0000 (11:26 +0200)]
Aduaspace: fixing playback in the game engine.
Campbell Barton [Sun, 2 Aug 2015 03:54:06 +0000 (13:54 +1000)]
parenthisize macro args to avoid errors
Campbell Barton [Sun, 2 Aug 2015 02:53:12 +0000 (12:53 +1000)]
Cleanup: quiet int overflow warnings
Julian Eisel [Sat, 1 Aug 2015 22:10:52 +0000 (00:10 +0200)]
Fix VSE showing FPS during scrubbing
Was intended to be disabled in rBa3b86611a8182, but disabled 3D View FPS drawing instead of VSE drawing. Triple checked but 3D View doesn't draw FPS now, so everything seems fine now.
Note: To recreate this you had to play animation once before scrubbing.
Julian Eisel [Sat, 1 Aug 2015 21:55:33 +0000 (23:55 +0200)]
Fix VSE not able to playback after scrubbing (and a couple of crashes)
After scrubbing, Blender kept thinking an animation is played (see animation "Play" button), even after mouse release. This resulted in a couple of crashes, e.g. by pressing Alt+a and then Esc.
(Also minor cleanup)
Julian Eisel [Sat, 1 Aug 2015 18:59:55 +0000 (20:59 +0200)]
Use Auto-offset for move_detach_links (alt+D) operator too
Julian Eisel [Sat, 1 Aug 2015 16:35:42 +0000 (18:35 +0200)]
Correction to previous commit, git messed up icon binaries :/
Julian Eisel [Sat, 1 Aug 2015 15:39:48 +0000 (17:39 +0200)]
Note Editor: Auto-offset nodes on insertion
Implements "Auto-offset" (called "insert offset" in code) feature for Node Editor, developed during and after LSOC :)
Idea and sponsoring by Sebastian König, blendFX, Mathias Eimann, Mikavaa, Knick Design
When you drop a node with at least one input and one output socket onto a an existing connection between two nodes, Auto-offset will, depending on the direction setting, automatically and animated move the left or right and all of its following nodes away to make room for the new node.
The direction for offsetting can be toggled while you are moving the node by pressing „T“.
The auto-offset is enabled by default but can be disabled in the header of the node-editor. The offset margin can be changed in the editing section of the User Preferences.
Thanks a lot to the sponsors, and especially to Sebastian who helped *a lot* with this. That's how users can help developing Blender!
Julian Eisel [Sat, 1 Aug 2015 14:16:16 +0000 (16:16 +0200)]
Node Editor: A bunch of new utility functions
Needed for node insert offset (Auto-offset in UI), but kept separate so people notice it without having to check insert offset commit (not for commit ratio of course ;) )
Julian Eisel [Sat, 1 Aug 2015 11:01:30 +0000 (13:01 +0200)]
Allow accessing modal keymap strings directly from keymap
Previously you had to pass operator which in some cases might not be available or hard to get.
Campbell Barton [Sat, 1 Aug 2015 10:10:25 +0000 (20:10 +1000)]
Docs: Python API, minor edits to download link
Campbell Barton [Sat, 1 Aug 2015 08:43:16 +0000 (18:43 +1000)]
Fix T45582: Connect vertex hangs
With multiple branches it was possible the search could run for a long time,
especially when there was no possible path to the target.
Now use a heap to keep track of the best path and finish immediately once its reached.
Campbell Barton [Sat, 1 Aug 2015 05:11:45 +0000 (15:11 +1000)]
BMesh connect pair, fallback to identity matrix
For overlapping vertices, a matrix for the operation can't be calculated.
Campbell Barton [Sat, 1 Aug 2015 04:42:14 +0000 (14:42 +1000)]
Replace checks for tessface w/ polygons
In these cases we're only checking the mesh has faces.
Campbell Barton [Sat, 1 Aug 2015 04:37:20 +0000 (14:37 +1000)]
Missed when updating effects to looptri
Campbell Barton [Sat, 1 Aug 2015 04:13:59 +0000 (14:13 +1000)]
Remove MFace use w/ cloth
Campbell Barton [Sat, 1 Aug 2015 02:36:14 +0000 (12:36 +1000)]
Docs: doxy cleanup/minor edits
Antony Riakiotakis [Fri, 31 Jul 2015 20:52:37 +0000 (22:52 +0200)]
Complete fix for T45618
Two issues here, normal update was not happening due to own sillyness in
viewport refactor, also normal update code still used triangles.
Now reused Campbell's poly normal recalculation code.
Dalai Felinto [Fri, 31 Jul 2015 19:27:00 +0000 (16:27 -0300)]
Fix T45632: motion blur (2d filter) not working - in OSX at least
This regression was introduced in Blende 2.73a when we went through a
ghost context refactoring :(
Campbell Barton [Fri, 31 Jul 2015 12:59:02 +0000 (22:59 +1000)]
Docs: doxy corrections
Sergey Sharybin [Fri, 31 Jul 2015 11:43:36 +0000 (13:43 +0200)]
Cycles: Fix for transmissive microfacet sampling
This is an alternate fix for T40964 which resolves bad handling of
caustics reported in T45609.
There were too much transmission rays being discarded by the original
fix, which caused by caustic light being totally disabled. There is
still some room for investigation why exactly original paper didn't
work that well, could be caused by the way how the pdf is calculated.
In any case current results seems rather correct now.
Campbell Barton [Fri, 31 Jul 2015 11:04:23 +0000 (21:04 +1000)]
Use polygon normals for sculpt drawing
Wasn't working correctly since using MLoopTri,
this is improved over 2.75 which only handled tris & quads.
Campbell Barton [Fri, 31 Jul 2015 09:17:06 +0000 (19:17 +1000)]
Remove MFace use w/ softbody
Campbell Barton [Fri, 31 Jul 2015 09:01:51 +0000 (19:01 +1000)]
Use looptri's for softbody face collision
Campbell Barton [Fri, 31 Jul 2015 06:19:58 +0000 (16:19 +1000)]
Don't calculate tessface before sculpting
Campbell Barton [Fri, 31 Jul 2015 05:39:52 +0000 (15:39 +1000)]
Docs: MLoopTri info and example usage
Campbell Barton [Fri, 31 Jul 2015 04:00:07 +0000 (14:00 +1000)]
Replace MFace w/ vert-tri's for collision modifier
Note that the collision modifier doesn't have any use for Loop indices,
so to avoid duplicating the loop array too,
MVertTri has been added which simply stores vertex indices (runtime only).
Campbell Barton [Fri, 31 Jul 2015 01:52:21 +0000 (11:52 +1000)]
Don't initialize CDDM with MFace from Meshes
Caused crash because MFace is no longer a layer which is added unless requested,
causing CDDM to have numTessFaceData nonzero, but mface set to NULL.
Thomas Dinges [Thu, 30 Jul 2015 19:07:13 +0000 (21:07 +0200)]
Cleanup: Remove unused variable in PathState.
Antony Riakiotakis [Thu, 30 Jul 2015 12:43:58 +0000 (14:43 +0200)]
Move tangents and baking to looptris:
Notes:
* Code in rendering and in game engine will still convert
tangents to a tessface representation. Added code that
takes care of tangent layer only, might be removed
when BGE and rendering goes full mlooptri mode.
* Baking should work discovered some dead code while
I was working on the patch, also tangents are broken
when baking from multires (also in master), but those
are separate issues that can be fixed later.
This should fix T45491 as well
Campbell Barton [Thu, 30 Jul 2015 12:06:05 +0000 (22:06 +1000)]
CustomData: quiet error on 0 element copy
Antony Riakiotakis [Thu, 30 Jul 2015 12:10:54 +0000 (14:10 +0200)]
Fix T45577 tiled sculpting not working with brushes requiring a sculpt
plane.
Make sure sculpt plane is recalculated for every tiled dab.
Note this is not the optimum thing to do, we could cache the original
sculpt plane and reuse that, but this would require us to rearrange the
logic of tiled sculpting somewhat. This can be a TODO, but for now this
will fix the issue.
Sergey Sharybin [Thu, 30 Jul 2015 08:31:22 +0000 (10:31 +0200)]
OpenSubdiv: Add CMake option to enable -Werror in subsurf code
Sergey Sharybin [Thu, 30 Jul 2015 08:22:31 +0000 (10:22 +0200)]
OpenSubdiv: Remove debug-only leftover
Campbell Barton [Thu, 30 Jul 2015 05:43:07 +0000 (15:43 +1000)]
Cleanup: safe-free macro for collision modifier
Campbell Barton [Thu, 30 Jul 2015 04:50:51 +0000 (14:50 +1000)]
Use looptri for smoke bvhtree
Missed from D1424
Campbell Barton [Wed, 29 Jul 2015 23:49:12 +0000 (09:49 +1000)]
error reordering args
Lukas Stockner [Wed, 29 Jul 2015 20:04:36 +0000 (22:04 +0200)]
Cycles: Fix issue in closure merge function.
* Did not check data2, this partially fixes T45583.
* Initialize data2 in some closures to avoid potential problems.
Differential Revision: https://developer.blender.org/D1436
Thomas Dinges [Wed, 29 Jul 2015 19:48:24 +0000 (21:48 +0200)]
Fix SCons path issue on Windows.
Sergey Sharybin [Wed, 29 Jul 2015 16:41:05 +0000 (18:41 +0200)]
OpenSubdiv: Workaround for vertices which are adjacent to several manifold islands
Sergey Sharybin [Wed, 29 Jul 2015 16:05:29 +0000 (18:05 +0200)]
OpenSubdiv: Proper detection of crease changes
Sergey Sharybin [Wed, 29 Jul 2015 15:43:43 +0000 (17:43 +0200)]
OpenSubdiv: Some debug-only code sneaked into previous commit