blender.git
5 years agoRemove redundant addition in BKE_mesh_calc_volume
Campbell Barton [Wed, 5 Aug 2015 10:26:52 +0000 (20:26 +1000)]
Remove redundant addition in BKE_mesh_calc_volume

5 years agoFix selecting linked edges
Campbell Barton [Wed, 5 Aug 2015 10:24:01 +0000 (20:24 +1000)]
Fix selecting linked edges

5 years agoFix T45641: crash cutting meta-strips
Campbell Barton [Wed, 5 Aug 2015 10:18:57 +0000 (20:18 +1000)]
Fix T45641: crash cutting meta-strips

5 years agoOpenSubdiv: Make subsurf behavior closer to original one when built with OpenSubdiv...
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

5 years agoBuildbot config: disable gooseberry branch from nightly builds
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.

5 years agoBuildbot config: remove windows scons and mingw builders
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.

5 years agoNodes: Link lines & link arrows not scaling to DPI/pixelsize correctly
Julian Eisel [Tue, 4 Aug 2015 19:56:43 +0000 (21:56 +0200)]
Nodes: Link lines & link arrows not scaling to DPI/pixelsize correctly

5 years agoCycles: Remove 32bit cuda workaroudn and disable cubins for buildbot
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.

5 years agoOpenSubdiv: Preparation for enabling it for linux buildbot
Sergey Sharybin [Tue, 4 Aug 2015 16:33:55 +0000 (18:33 +0200)]
OpenSubdiv: Preparation for enabling it for linux buildbot

5 years agoOpenSubdiv: Modifiers module missed WITH_OPENSUBDIV define
Sergey Sharybin [Tue, 4 Aug 2015 16:32:21 +0000 (18:32 +0200)]
OpenSubdiv: Modifiers module missed WITH_OPENSUBDIV define

5 years agoOpenSubdiv: Fix for missing OpenMP device when building with SCons
Sergey Sharybin [Tue, 4 Aug 2015 16:25:34 +0000 (18:25 +0200)]
OpenSubdiv: Fix for missing OpenMP device when building with SCons

5 years agoOpenSubdiv: Correction for compute devices detection in 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.

5 years agoSCons: Fix for really nasty bug with polluting configuration environment
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.

5 years agoFix fast navigate winding being incorrect (apparent when backface
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)

5 years agoNodes: Make method to detect hovered link during transform more predictable/responsive
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)

5 years agoRemove alloc checks in laplaciansmooth
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.

5 years agoRemesh modifier has unnecessary MFace calculation
Campbell Barton [Tue, 4 Aug 2015 12:11:43 +0000 (22:11 +1000)]
Remesh modifier has unnecessary MFace calculation

5 years agoMissed from last commit
Campbell Barton [Tue, 4 Aug 2015 12:08:21 +0000 (22:08 +1000)]
Missed from last commit

5 years agoRemove MFace use w/ laplacian smooth
Campbell Barton [Tue, 4 Aug 2015 11:30:10 +0000 (21:30 +1000)]
Remove MFace use w/ laplacian smooth

Use polygons for calculation

5 years agoOpenSubdiv: Report when OSD can't be enabled due to dependencies
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.

5 years agoOpenSubdiv: forgot this in the previous commit
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.

5 years agoOpenSubdiv: Optimize drawing shader
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.

5 years agoUse PyC_ParseBool to parse bools
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.

5 years agoDocs: comment functions in BLI & Py API
Campbell Barton [Tue, 4 Aug 2015 14:21:50 +0000 (00:21 +1000)]
Docs: comment functions in BLI & Py API

5 years agoBGE: Added getActionName() function to KX_GameObject()
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

5 years agoOpenSubdiv: Fix/workaround for missing generated coordinates in viewport
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.

5 years agoOpenSubdiv: Support shadeless shading
Sergey Sharybin [Mon, 3 Aug 2015 18:18:33 +0000 (20:18 +0200)]
OpenSubdiv: Support shadeless shading

5 years agoOpenSubdiv: Smooth shading became broken in recent commit
Sergey Sharybin [Mon, 3 Aug 2015 17:47:06 +0000 (19:47 +0200)]
OpenSubdiv: Smooth shading became broken in recent commit

5 years agoSculpt: Fix tiling with brushes that use a locked plane
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!

5 years agoMultires sculpting drawing optimization:
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.

5 years agoOpenSubdiv: Made it a modifier option to enable OSD for viewport
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.

5 years agoFix T45654 fast navigate artifacts.
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.

5 years agoOpenSubdiv: Avoid crashes when GPU subsurf is tried to be used on CPU
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.

5 years agoOpenSubdiv: Make new geometry relations ensures dependent data exists on CPU
Sergey Sharybin [Mon, 3 Aug 2015 14:04:33 +0000 (16:04 +0200)]
OpenSubdiv: Make new geometry relations ensures dependent data exists on CPU

5 years agoOpenSubdiv: Resolve crashes when other object depends on subsurf-ed object
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.

5 years agoOpenSubdiv: Remove workaround for simple subdivision mode
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.

5 years agoOpenSubdiv: Corrections to GLSL version
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.

5 years agoFix buffer overrun lofting nurbs
Campbell Barton [Mon, 3 Aug 2015 13:18:09 +0000 (23:18 +1000)]
Fix buffer overrun lofting nurbs

5 years agoFix own mistake in curve refactor
Campbell Barton [Mon, 3 Aug 2015 13:06:03 +0000 (23:06 +1000)]
Fix own mistake in curve refactor

5 years agoOpenSubdiv: More proper loop for UV map evaluation on CPU
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.

5 years agoOpenSubdiv: Fix crash caused by applying subsurf on non-mesh object
Sergey Sharybin [Mon, 3 Aug 2015 12:33:03 +0000 (14:33 +0200)]
OpenSubdiv: Fix crash caused by applying subsurf on non-mesh object

5 years agoOpenSubdiv: Correction to vert edge/face orientation code
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.

5 years agoOpenSubdiv: Switch CPU evaluator to use uniform refinement
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.

5 years agoOpenSubdiv: Mark non-manifold verts as sharp
Sergey Sharybin [Mon, 3 Aug 2015 11:44:41 +0000 (13:44 +0200)]
OpenSubdiv: Mark non-manifold verts as sharp

5 years agoOpenSubdiv: Disable topology check happening from OpenSubdiv side
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.

5 years agoOpenSubdiv: Work on better vert edge/face orientation code
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.

5 years agoFix T45620: Coplanar faces w/ flipped normals not selected
Campbell Barton [Mon, 3 Aug 2015 10:44:41 +0000 (20:44 +1000)]
Fix T45620: Coplanar faces w/ flipped normals not selected

5 years agoCleanup: remove redundant normalize
Campbell Barton [Mon, 3 Aug 2015 10:44:00 +0000 (20:44 +1000)]
Cleanup: remove redundant normalize

5 years agoFix bgl so that get-methods that take a string use strings instead of bgl buffer...
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

5 years agoAdd bool parser for PyArg_ParseTuple
Campbell Barton [Mon, 3 Aug 2015 10:00:16 +0000 (20:00 +1000)]
Add bool parser for PyArg_ParseTuple

Use for mathutils.bvhtree

5 years agoFix T45625: Unpredictable grid fill
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.

5 years agoFix grid-fill offset option
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.

5 years agoFix T45644: bpy.utils.smpte_from_frame drops frame
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

5 years agoFix T45649: Adding Point Density Texture to World Color Crashes Blender.
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.

5 years agoUse auto-offset after adding node from search menu as well
Julian Eisel [Sun, 2 Aug 2015 13:41:03 +0000 (15:41 +0200)]
Use auto-offset after adding node from search menu as well

5 years agocorrect ifdef
Campbell Barton [Sun, 2 Aug 2015 13:35:58 +0000 (23:35 +1000)]
correct ifdef

5 years agoAduaspace: fixing playback in the game engine.
Jörg Müller [Sun, 2 Aug 2015 09:26:20 +0000 (11:26 +0200)]
Aduaspace: fixing playback in the game engine.

5 years agoparenthisize macro args to avoid errors
Campbell Barton [Sun, 2 Aug 2015 03:54:06 +0000 (13:54 +1000)]
parenthisize macro args to avoid errors

5 years agoCleanup: quiet int overflow warnings
Campbell Barton [Sun, 2 Aug 2015 02:53:12 +0000 (12:53 +1000)]
Cleanup: quiet int overflow warnings

5 years agoFix VSE showing FPS during scrubbing
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.

5 years agoFix VSE not able to playback after scrubbing (and a couple of crashes)
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)

5 years agoUse Auto-offset for move_detach_links (alt+D) operator too
Julian Eisel [Sat, 1 Aug 2015 18:59:55 +0000 (20:59 +0200)]
Use Auto-offset for move_detach_links (alt+D) operator too

5 years agoCorrection to previous commit, git messed up icon binaries :/
Julian Eisel [Sat, 1 Aug 2015 16:35:42 +0000 (18:35 +0200)]
Correction to previous commit, git messed up icon binaries :/

5 years agoNote Editor: Auto-offset nodes on insertion
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!

5 years agoNode Editor: A bunch of new utility functions
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 ;) )

5 years agoAllow accessing modal keymap strings directly from keymap
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.

5 years agoDocs: Python API, minor edits to download link
Campbell Barton [Sat, 1 Aug 2015 10:10:25 +0000 (20:10 +1000)]
Docs: Python API, minor edits to download link

5 years agoFix T45582: Connect vertex hangs
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.

5 years agoBMesh connect pair, fallback to identity matrix
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.

5 years agoReplace checks for tessface w/ polygons
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.

5 years agoMissed when updating effects to looptri
Campbell Barton [Sat, 1 Aug 2015 04:37:20 +0000 (14:37 +1000)]
Missed when updating effects to looptri

5 years agoRemove MFace use w/ cloth
Campbell Barton [Sat, 1 Aug 2015 04:13:59 +0000 (14:13 +1000)]
Remove MFace use w/ cloth

5 years agoDocs: doxy cleanup/minor edits
Campbell Barton [Sat, 1 Aug 2015 02:36:14 +0000 (12:36 +1000)]
Docs: doxy cleanup/minor edits

5 years agoComplete fix for T45618
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.

5 years agoFix T45632: motion blur (2d filter) not working - in OSX at least
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 :(

5 years agoDocs: doxy corrections
Campbell Barton [Fri, 31 Jul 2015 12:59:02 +0000 (22:59 +1000)]
Docs: doxy corrections

5 years agoCycles: Fix for transmissive microfacet sampling
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.

5 years agoUse polygon normals for sculpt drawing
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.

5 years agoRemove MFace use w/ softbody
Campbell Barton [Fri, 31 Jul 2015 09:17:06 +0000 (19:17 +1000)]
Remove MFace use w/ softbody

5 years agoUse looptri's for softbody face collision
Campbell Barton [Fri, 31 Jul 2015 09:01:51 +0000 (19:01 +1000)]
Use looptri's for softbody face collision

5 years agoDon't calculate tessface before sculpting
Campbell Barton [Fri, 31 Jul 2015 06:19:58 +0000 (16:19 +1000)]
Don't calculate tessface before sculpting

5 years agoDocs: MLoopTri info and example usage
Campbell Barton [Fri, 31 Jul 2015 05:39:52 +0000 (15:39 +1000)]
Docs: MLoopTri info and example usage

5 years agoReplace MFace w/ vert-tri's for collision modifier
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).

5 years agoDon't initialize CDDM with MFace from Meshes
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.

5 years agoCleanup: Remove unused variable in PathState.
Thomas Dinges [Thu, 30 Jul 2015 19:07:13 +0000 (21:07 +0200)]
Cleanup: Remove unused variable in PathState.

5 years agoMove tangents and baking to looptris:
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

5 years agoCustomData: quiet error on 0 element copy
Campbell Barton [Thu, 30 Jul 2015 12:06:05 +0000 (22:06 +1000)]
CustomData: quiet error on 0 element copy

5 years agoFix T45577 tiled sculpting not working with brushes requiring a sculpt
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.

5 years agoOpenSubdiv: Add CMake option to enable -Werror in subsurf code
Sergey Sharybin [Thu, 30 Jul 2015 08:31:22 +0000 (10:31 +0200)]
OpenSubdiv: Add CMake option to enable -Werror in subsurf code

5 years agoOpenSubdiv: Remove debug-only leftover
Sergey Sharybin [Thu, 30 Jul 2015 08:22:31 +0000 (10:22 +0200)]
OpenSubdiv: Remove debug-only leftover

5 years agoCleanup: safe-free macro for collision modifier
Campbell Barton [Thu, 30 Jul 2015 05:43:07 +0000 (15:43 +1000)]
Cleanup: safe-free macro for collision modifier

5 years agoUse looptri for smoke bvhtree
Campbell Barton [Thu, 30 Jul 2015 04:50:51 +0000 (14:50 +1000)]
Use looptri for smoke bvhtree

Missed from D1424

5 years agoerror reordering args
Campbell Barton [Wed, 29 Jul 2015 23:49:12 +0000 (09:49 +1000)]
error reordering args

5 years agoCycles: Fix issue in closure merge function.
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

5 years agoFix SCons path issue on Windows.
Thomas Dinges [Wed, 29 Jul 2015 19:48:24 +0000 (21:48 +0200)]
Fix SCons path issue on Windows.

5 years agoOpenSubdiv: Workaround for vertices which are adjacent to several manifold islands
Sergey Sharybin [Wed, 29 Jul 2015 16:41:05 +0000 (18:41 +0200)]
OpenSubdiv: Workaround for vertices which are adjacent to several manifold islands

5 years agoOpenSubdiv: Proper detection of crease changes
Sergey Sharybin [Wed, 29 Jul 2015 16:05:29 +0000 (18:05 +0200)]
OpenSubdiv: Proper detection of crease changes

5 years agoOpenSubdiv: Some debug-only code sneaked into previous commit
Sergey Sharybin [Wed, 29 Jul 2015 15:43:43 +0000 (17:43 +0200)]
OpenSubdiv: Some debug-only code sneaked into previous commit

5 years agoOpenSubdiv: Make topology orientation optional
Sergey Sharybin [Wed, 29 Jul 2015 15:41:57 +0000 (17:41 +0200)]
OpenSubdiv: Make topology orientation optional

5 years agoOpenSubdiv: Fixes for crease in non-manifold meshes
Sergey Sharybin [Wed, 29 Jul 2015 15:38:06 +0000 (17:38 +0200)]
OpenSubdiv: Fixes for crease in non-manifold meshes

Basically non-manifold edges are expected to be sharp by OpenSubdiv.

There\s still some work required, see the inlined comment.