7 years agoSolidify Modifier "Rim Only" Option
Campbell Barton [Fri, 15 Aug 2014 07:26:39 +0000 (17:26 +1000)]
Solidify Modifier "Rim Only" Option

D737 by scorpion81 with own edits

7 years agoModifiers: consider all constructive modifiers as 'preview' ones as well.
Bastien Montagne [Fri, 15 Aug 2014 08:07:39 +0000 (10:07 +0200)]
Modifiers: consider all constructive modifiers as 'preview' ones as well.

Indeed, constructive modifiers are highly likely to modify CDLayers like vgroups or vcols!

See vertexgroup2.blend file ({F93770}) in T40523, especially obvious with subsurf modifier.

7 years agoFix T41443: Separate bug with Curves & Hooks
Sergey Sharybin [Fri, 15 Aug 2014 06:50:21 +0000 (12:50 +0600)]
Fix T41443: Separate bug with Curves & Hooks

This solves the crash, but indices might be wrong after the separation.

There are loads of other ways to confuse hook indices in both meshes and
curves, for now considering this a TODO.

7 years agoColorRamp HSV, HSL Blend Modes
Campbell Barton [Fri, 15 Aug 2014 05:29:08 +0000 (15:29 +1000)]
ColorRamp HSV, HSL Blend Modes

D297 by charlie with own edits

7 years agoCleanup: comment & var name
Campbell Barton [Fri, 15 Aug 2014 04:22:34 +0000 (14:22 +1000)]
Cleanup: comment & var name

7 years agoFix T41435: Info-text lags changing space-types
Campbell Barton [Thu, 14 Aug 2014 22:43:00 +0000 (08:43 +1000)]
Fix T41435: Info-text lags changing space-types

7 years agoUI: avoid spacetype and butspacetype mismatch
Campbell Barton [Thu, 14 Aug 2014 22:39:47 +0000 (08:39 +1000)]
UI: avoid spacetype and butspacetype mismatch

7 years agoCycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this...
Thomas Dinges [Thu, 14 Aug 2014 19:25:29 +0000 (21:25 +0200)]
Cycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this before the function already.

7 years agoFix 'quick smoke' not rendering anything (texture coordinates was left unset)
Bastien Montagne [Thu, 14 Aug 2014 19:18:12 +0000 (21:18 +0200)]
Fix 'quick smoke' not rendering anything (texture coordinates was left unset)

Not quite sure why default did not work here, might need further investigation.

7 years agoCycles: Optimize Equi-Angular sampling using binary range search.
Thomas Dinges [Thu, 14 Aug 2014 18:21:36 +0000 (20:21 +0200)]
Cycles: Optimize Equi-Angular sampling using binary range search.

Patch by Lukas Tönne and myself.

7 years agoCycles: Optimization for Heterogeneous Volume Shadows.
Thomas Dinges [Thu, 14 Aug 2014 18:09:25 +0000 (20:09 +0200)]
Cycles: Optimization for Heterogeneous Volume Shadows.

* Don't compute expf() for every step, instead sum the intermediate values and calculate it every N (8 for now) steps. This helps a few percent (~5% on a cube with wave texture) in my tests here.

7 years agoCleanup: typos and extra brackets.
Thomas Dinges [Thu, 14 Aug 2014 14:31:34 +0000 (16:31 +0200)]
Cleanup: typos and extra brackets.

7 years agoSwitch sampler icon to the right, it's easier for artists to access.
Antony Riakiotakis [Thu, 14 Aug 2014 14:26:16 +0000 (16:26 +0200)]
Switch sampler icon to the right, it's easier for artists to access.

7 years agoCycles: Avoid intermediate function when we sample all lamps.
Thomas Dinges [Thu, 14 Aug 2014 14:09:40 +0000 (16:09 +0200)]
Cycles: Avoid intermediate function when we sample all lamps.

7 years agoCycles: Avoid segment NULL check, we access it before this function already.
Thomas Dinges [Thu, 14 Aug 2014 13:52:19 +0000 (15:52 +0200)]
Cycles: Avoid segment NULL check, we access it before this function already.

7 years agoPie menus:
Antony Riakiotakis [Thu, 14 Aug 2014 12:17:39 +0000 (14:17 +0200)]
Pie menus:

If user drags away from initial position, menu changes to drag style and
returning to that position won't remake the menu click-style. Allows to
use the threshold indicator to cancel the pie.

7 years agoAaaarh! aaargh!
Antony Riakiotakis [Thu, 14 Aug 2014 12:06:48 +0000 (14:06 +0200)]
Aaaarh! aaargh!

7 years agoLast fix wasn't complete, sorry for that..
Antony Riakiotakis [Thu, 14 Aug 2014 12:04:29 +0000 (14:04 +0200)]
Last fix wasn't complete, sorry for that..

7 years agoDeactivate last active button for pie menu popups.
Antony Riakiotakis [Thu, 14 Aug 2014 11:18:07 +0000 (13:18 +0200)]
Deactivate last active button for pie menu popups.

7 years agoFix crash on texture painting after new scene is added, reported by
Antony Riakiotakis [Thu, 14 Aug 2014 11:06:40 +0000 (13:06 +0200)]
Fix crash on texture painting after new scene is added, reported by
kopias on irc, thanks.

7 years agoOSX/SCONS/buildbot: last commit made BF_COLLADA_LIB tweak obsolete
Jens Verwiebe [Thu, 14 Aug 2014 10:19:15 +0000 (12:19 +0200)]
OSX/SCONS/buildbot: last commit made BF_COLLADA_LIB tweak obsolete

7 years agoOSX/Scons: make sure BF_OSL implies BF_LLVM
Jens Verwiebe [Thu, 14 Aug 2014 10:15:59 +0000 (12:15 +0200)]
OSX/Scons: make sure BF_OSL implies BF_LLVM

7 years agoFix part of T41297.
Antony Riakiotakis [Thu, 14 Aug 2014 09:39:54 +0000 (11:39 +0200)]
Fix part of T41297.

Add precision mode to radial operator by keeping the shift key pressed.
Precision mode works by checking difference between absolute window
coordinates and the point where shift was pressed and adding those to
the distance between that point and the radial center. This allows
bigger negative/positive range than using a strict radial scheme.

7 years agoAttempt to fix 32bit OSX buildbot, need to link against UTF Collada lib
Sergey Sharybin [Thu, 14 Aug 2014 09:38:45 +0000 (15:38 +0600)]
Attempt to fix 32bit OSX buildbot, need to link against UTF Collada lib

7 years agoRevert modal operation of cursor. This change was far less innocent than
Antony Riakiotakis [Thu, 14 Aug 2014 08:45:00 +0000 (10:45 +0200)]
Revert modal operation of cursor. This change was far less innocent than
was first thought and could mess up tweaking events for the left mouse.

7 years agoUI: Don't print user passwords in info-space
Campbell Barton [Thu, 14 Aug 2014 06:18:26 +0000 (16:18 +1000)]
UI: Don't print user passwords in info-space

7 years agoCorrect own regression in password button editing
Campbell Barton [Thu, 14 Aug 2014 06:10:33 +0000 (16:10 +1000)]
Correct own regression in password button editing

Fix T41416: by iri Hnidek

7 years agoCycles: Correction to previous commit -- forgot to take instancing into account
Sergey Sharybin [Thu, 14 Aug 2014 05:40:31 +0000 (11:40 +0600)]
Cycles: Correction to previous commit -- forgot to take instancing into account

7 years agoRemove MSVC2008 workaround
Campbell Barton [Thu, 14 Aug 2014 04:18:37 +0000 (14:18 +1000)]
Remove MSVC2008 workaround

7 years agoFix T41425: UI wobbles using scrollbar
Campbell Barton [Thu, 14 Aug 2014 03:44:04 +0000 (13:44 +1000)]
Fix T41425: UI wobbles using scrollbar

7 years agoBMesh: use a smaller dist3 threshold
Campbell Barton [Thu, 14 Aug 2014 02:49:02 +0000 (12:49 +1000)]
BMesh: use a smaller dist3 threshold

Matches array modifier remove-doubles

7 years agoHack for edge-slide macro was lost in header cleanup
Campbell Barton [Thu, 14 Aug 2014 02:04:42 +0000 (12:04 +1000)]
Hack for edge-slide macro was lost in header cleanup

add back include for USE_LOOPSLIDE_HACK

7 years agoFix T41431: Min/Max custom property range mismatch
Campbell Barton [Thu, 14 Aug 2014 01:29:22 +0000 (11:29 +1000)]
Fix T41431: Min/Max custom property range mismatch

7 years agohint checks to re-alloc as unlikely
Campbell Barton [Thu, 14 Aug 2014 01:07:33 +0000 (11:07 +1000)]
hint checks to re-alloc as unlikely

also edit comments for knife tool

7 years agoremove MAXFLOAT define
Campbell Barton [Thu, 14 Aug 2014 00:36:07 +0000 (10:36 +1000)]
remove MAXFLOAT define

7 years agoUI: edits to pie-menu-enum
Campbell Barton [Wed, 13 Aug 2014 21:29:38 +0000 (07:29 +1000)]
UI: edits to pie-menu-enum

- avoid eval
- report if operator is missing

7 years agoFix out of bounds read when recalculating mipmaps, error reported by
Antony Riakiotakis [Wed, 13 Aug 2014 17:07:28 +0000 (19:07 +0200)]
Fix out of bounds read when recalculating mipmaps, error reported by
address sanitizer.

This was strangely only triggered when float buffers were used.

7 years agoFix T41408: Render layer pass bug, second attempt
Sergey Sharybin [Wed, 13 Aug 2014 16:43:11 +0000 (22:43 +0600)]
Fix T41408: Render layer pass bug, second attempt

Missed some passes in the previous commit. Now seems all the passes
are covered, at least with my understanding of the things.

There're some weird things going around with the refraction pass,
but that is caused by some other issue in the code. Would rather
call it a TODO for now.

7 years agoOSX: fix paranthesis in last commit
Jens Verwiebe [Wed, 13 Aug 2014 13:32:35 +0000 (15:32 +0200)]
OSX: fix paranthesis in last commit

7 years agoOSX: add a fix for lion_fs loosing handles after calling fs from key shortcut, also...
Jens Verwiebe [Wed, 13 Aug 2014 13:27:41 +0000 (15:27 +0200)]
OSX: add a fix for lion_fs loosing handles after calling fs from key shortcut, also reenabled lion_fs for OSX >= 10.9 again

7 years agoMaybe slightly controversial pie commit:
Antony Riakiotakis [Wed, 13 Aug 2014 13:11:19 +0000 (15:11 +0200)]
Maybe slightly controversial pie commit:

Make pie menu item placement touch the radius from the internal side of
the buttons rather than placing on the center on the cirtcle. This
allows us to get rid of the separate visual angle property, also allows
for tighter placement of pies with a smaller radius without easily

Also pie menu title now always appears above the threshold indicator.

7 years agoAdd custom property to previous commit, name "Context" of that property
Antony Riakiotakis [Wed, 13 Aug 2014 12:22:35 +0000 (14:22 +0200)]
Add custom property to previous commit, name "Context" of that property
was misleading.

7 years agoCorrect missing new line in the debug print
Sergey Sharybin [Wed, 13 Aug 2014 12:08:13 +0000 (18:08 +0600)]
Correct missing new line in the debug print

7 years agoAlign pie menu title on center.
Antony Riakiotakis [Wed, 13 Aug 2014 12:08:26 +0000 (14:08 +0200)]
Align pie menu title on center.

7 years agoBring back python operator for pies on a certain operator property.
Antony Riakiotakis [Wed, 13 Aug 2014 12:04:37 +0000 (14:04 +0200)]
Bring back python operator for pies on a certain operator property.

7 years agoImage Editor: only do alpha test if output file requires alpha
Dalai Felinto [Wed, 13 Aug 2014 10:39:36 +0000 (12:39 +0200)]
Image Editor: only do alpha test if output file requires alpha

(internal change, nothing should change to the user)

7 years agoFix T41219: Cycles backface detection doesn't work properly
Sergey Sharybin [Wed, 13 Aug 2014 10:19:12 +0000 (16:19 +0600)]
Fix T41219: Cycles backface detection doesn't work properly

Root of the issue goes back to the on-fly normals commit and the
latest fix for it wasn't actually correct. I've mixed two fixes
in there.

So the idea here goes back to storing negative scaled object flag
and flip runtime-calculated normal if this flag is set, which is
pretty much the same as the original fix for the issue from me.

The issue with motion blur wasn't caused by the rumtime normals
patch and it had issues before, because it already did runtime
normals calculation. Now made it so motion triangles takes the
negative scale flag into account.

This actually makes code more clean imo and avoids rather confusing
flipping code in mesh.cpp.

7 years agoCorrect menu items active behavior applying to dialogs
Campbell Barton [Wed, 13 Aug 2014 08:19:56 +0000 (18:19 +1000)]
Correct menu items active behavior applying to dialogs

7 years agoFix T40717: Screen does not update while scrolling or zooming with touchpad on a...
Sergey Sharybin [Wed, 13 Aug 2014 07:44:26 +0000 (13:44 +0600)]
Fix T40717: Screen does not update while scrolling or zooming with touchpad on a laptop

This is rather workaround solution for now, which seems to
work and it's not that huge to maintain (one liner apart from
the comment).

Idea is to make sure PeekMessage peeks the message when window
proc receives WM_MOUSEWHEEL (some touchpad drivers seems to
swallow the messages making it so PeekMessage doesn't get

7 years agoFix linking error on VC 2013: Update lib names for openexr
Daniel Genrich [Wed, 13 Aug 2014 07:14:05 +0000 (09:14 +0200)]
Fix linking error on VC 2013: Update lib names for openexr

7 years agoFix T39387: Knife makes duplicate verts with subsurf
Campbell Barton [Wed, 13 Aug 2014 05:04:48 +0000 (15:04 +1000)]
Fix T39387: Knife makes duplicate verts with subsurf

7 years agoMath Lib: rename barycentric_transform -> transform_point_by_tri_v3
Campbell Barton [Wed, 13 Aug 2014 04:55:45 +0000 (14:55 +1000)]
Math Lib: rename barycentric_transform -> transform_point_by_tri_v3

also add transform_point_by_seg_v3

7 years agoMath Lib: name signed versions of dist_to_plane_v3 explicitly
Campbell Barton [Wed, 13 Aug 2014 04:34:58 +0000 (14:34 +1000)]
Math Lib: name signed versions of dist_to_plane_v3 explicitly

also add unsigned versions

7 years agoKnife tool: avoid copying vectors
Campbell Barton [Wed, 13 Aug 2014 03:56:53 +0000 (13:56 +1000)]
Knife tool: avoid copying vectors

7 years agoFix possible uninitialized var use
Campbell Barton [Wed, 13 Aug 2014 00:38:08 +0000 (10:38 +1000)]
Fix possible uninitialized var use

7 years agoSpelling
Campbell Barton [Tue, 12 Aug 2014 23:33:46 +0000 (09:33 +1000)]

7 years agoSpelling
Campbell Barton [Tue, 12 Aug 2014 22:38:16 +0000 (08:38 +1000)]

7 years agoRNA: use static declarations
Campbell Barton [Tue, 12 Aug 2014 22:37:41 +0000 (08:37 +1000)]
RNA: use static declarations

7 years agoCompare squared distances for tracking selection
Campbell Barton [Tue, 12 Aug 2014 22:27:50 +0000 (08:27 +1000)]
Compare squared distances for tracking selection

7 years agoKnife tool: cleanup threshold use, avoid sqrt
Campbell Barton [Tue, 12 Aug 2014 22:08:18 +0000 (08:08 +1000)]
Knife tool: cleanup threshold use, avoid sqrt

7 years agoFix T41164: Knife creates duplicate verts
Campbell Barton [Tue, 12 Aug 2014 22:01:37 +0000 (08:01 +1000)]
Fix T41164: Knife creates duplicate verts

7 years agoAuto-update of themes (missing properties in XML files).
Bastien Montagne [Tue, 12 Aug 2014 20:23:21 +0000 (22:23 +0200)]
Auto-update of themes (missing properties in XML files).

7 years agoFix T40566: Light instances disappears in rendered viewport (Blender Internal)
Sergey Sharybin [Tue, 12 Aug 2014 19:48:15 +0000 (01:48 +0600)]
Fix T40566: Light instances disappears in rendered viewport (Blender Internal)

This is just another issue caused by convertblender overwriting the object
matrix at the time of creating render object. What's even worse here is that
original matrix is not stored for the lamps, only lamp_matrix*view_matrix is

For sure we can combine lar->co and lar->mat back to mat4, multiply by the
inverse view matrix and get object matrix, but this is not suitable for the
viewport render because every viewport rotation will accumulate the error.

For now let's store worldspace lamp matrix in the LampRen structure and use
it when rotating the scene.

7 years agoFix T41060: Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal
Sergey Sharybin [Tue, 12 Aug 2014 18:32:04 +0000 (00:32 +0600)]
Fix T41060: Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal

7 years agoFix T41415: Lasso keymap not working in UV editor.
Bastien Montagne [Tue, 12 Aug 2014 18:12:01 +0000 (20:12 +0200)]
Fix T41415: Lasso keymap not working in UV editor.

Extend option was not implemented for UV lasso select...

7 years agoFix part of T41406
Antony Riakiotakis [Tue, 12 Aug 2014 17:45:57 +0000 (19:45 +0200)]
Fix part of T41406

Attempt to make soften brush faster by allowing non-symmetric kernels.
Projective painting supports those naturally but for 2D painting there's
a small hack to avoid shifting of the texture. Not totally correct but
it works for now.

7 years agoFix T41409: Copy Custom Property function does nothing with pose bones.
Bastien Montagne [Tue, 12 Aug 2014 15:31:26 +0000 (17:31 +0200)]
Fix T41409: Copy Custom Property function does nothing with pose bones.

Copying custom IDprops actually never worked, afaik, since previous code was copying 'from'
prop onto itself, in this case!

7 years agoChange previous commit that uses transparency by default.
Antony Riakiotakis [Tue, 12 Aug 2014 14:17:07 +0000 (16:17 +0200)]
Change previous commit that uses transparency by default.

Sampling still samples the texture color in transparent areas. This is
not so bad but users may get confused when clicking on a white spot and
picking black instead of the mesh color.

Krita also has this uncertainty when picking in transparent areas but we
do not interpolate with an explicit "transparent" looking texture during
viewport drawing (maybe we should), so it's not so apparent what happens

7 years agoCleanup.
Bastien Montagne [Tue, 12 Aug 2014 14:03:17 +0000 (16:03 +0200)]

7 years agoFix T41411: Undo crashing with background images set.
Bastien Montagne [Tue, 12 Aug 2014 14:02:44 +0000 (16:02 +0200)]
Fix T41411: Undo crashing with background images set.

Since 3DViews use IDs like images or clips, we can't skip anymore `lib_link_screen()`
when reading from mem for undo/redo stuff. Else, freeing (unused) screen in `BKE_read_file_from_memfile()`
will lead to using data already freed (since pointers have not been updated when reading that undo step).

7 years agoSupport table erasor in projective painting as well.
Antony Riakiotakis [Tue, 12 Aug 2014 12:20:06 +0000 (14:20 +0200)]
Support table erasor in projective painting as well.

7 years agoFix T41414, T41386.
Antony Riakiotakis [Tue, 12 Aug 2014 11:49:27 +0000 (13:49 +0200)]
Fix T41414, T41386.

There were a few issues to fix here:

* We did not really unpremultiply float image dabs prior to sending them
to the GPU. That made float and byte image result different in texture
painting and undoing could change the result.
* To make textures nicely composited over the mesh, I used decal mode in
OpenGL texture environment for the texture unit. This uses the texture's
alpha channel with a nice over operator.
* Texture creation used to override the alpha setting due to the display
restrictions. Not so anymore, people can now create transparent byte

Also, made alpha zero default for new textures now, since it has such a
nice effect here.

7 years agoStupid MSVC replaces tabs to spaces spontaneously :S
Sergey Sharybin [Tue, 12 Aug 2014 10:51:37 +0000 (16:51 +0600)]
Stupid MSVC replaces tabs to spaces spontaneously :S

7 years agoConsole detection now works reliably when starting blender-app directly
Sergey Sharybin [Tue, 12 Aug 2014 10:40:23 +0000 (16:40 +0600)]
Console detection now works reliably when starting blender-app directly

7 years agoFix T41349: Muting texture nodes can cause crashes.
Lukas Tönne [Tue, 12 Aug 2014 10:41:26 +0000 (12:41 +0200)]
Fix T41349: Muting texture nodes can cause crashes.

Problem is that setup of stack indices which refer to the same stack
entry can lead to cyclic TexDelegate node pointers, causing an infinite

Fixing this would take too much time and require recoding large parts of
the texnodes system, which is earmarked for scrapping anyway ... So for
now just disabled muting in texnodes to avoid crashes.

7 years agoScons / Buildbot: Remove code for Visual Studio 2008.
Thomas Dinges [Tue, 12 Aug 2014 10:32:39 +0000 (12:32 +0200)]
Scons / Buildbot: Remove code for Visual Studio 2008.

Probably the vc2013 builder can become a more generic name now, but I will double check this with Martijn.

7 years agoCleanup: Remove Visual Studio 2012 code from builder.
Thomas Dinges [Tue, 12 Aug 2014 10:16:22 +0000 (12:16 +0200)]
Cleanup: Remove Visual Studio 2012 code from builder.

7 years agoFix undo in texture painting not refreshing float images in viewport if
Antony Riakiotakis [Tue, 12 Aug 2014 10:03:15 +0000 (12:03 +0200)]
Fix undo in texture painting not refreshing float images in viewport if
16 bit float textures was off

7 years agoFix T41408: Diffuse and specular passes were incorrect with combined/color passes...
Sergey Sharybin [Tue, 12 Aug 2014 07:33:23 +0000 (13:33 +0600)]
Fix T41408: Diffuse and specular passes were incorrect with combined/color passes disabled

7 years agoCleanup: magic numbers
Campbell Barton [Tue, 12 Aug 2014 05:58:53 +0000 (15:58 +1000)]
Cleanup: magic numbers

7 years agoRewritten Array Modifier D443
Campbell Barton [Tue, 12 Aug 2014 03:52:17 +0000 (13:52 +1000)]
Rewritten Array Modifier D443

Patch by PatB with own edits

- replace BMesh with CDDM functions.
- faster remove-vertex merging.
- extend CDDM_merge_verts to be more flexible.

7 years agoCleanup: unused var
Campbell Barton [Tue, 12 Aug 2014 03:33:39 +0000 (13:33 +1000)]
Cleanup: unused var

7 years agoGHash: add flag get/set for gset
Campbell Barton [Tue, 12 Aug 2014 03:26:29 +0000 (13:26 +1000)]
GHash: add flag get/set for gset

7 years agoFreestyle: Removed the stored bContext from the Controller class.
Tamito Kajiyama [Fri, 1 Aug 2014 01:18:25 +0000 (10:18 +0900)]
Freestyle: Removed the stored bContext from the Controller class.

The stored context object was used for creation of shade nodes.  A closer look at the
node system showed that the context is not actually used when shader nodes are
added to a shader node tree.  Relying on this fact, now a NULL pointer is passed to
nodeAddStaticNode() instead of the stored bContext pointer.

7 years agoAdded support for Feestyle edge/face marks in the 3D view window in Cycles.
Tamito Kajiyama [Tue, 29 Jul 2014 05:36:56 +0000 (14:36 +0900)]
Added support for Feestyle edge/face marks in the 3D view window in Cycles.

7 years agoFix for wrong idname of the "Create Freestyle Stroke Material" operator.
Tamito Kajiyama [Tue, 29 Jul 2014 05:36:11 +0000 (14:36 +0900)]
Fix for wrong idname of the "Create Freestyle Stroke Material" operator.

7 years agoFreestyle: code cleanup.
Tamito Kajiyama [Mon, 11 Aug 2014 08:13:38 +0000 (17:13 +0900)]
Freestyle: code cleanup.

Marked a function argument with UNUSED() and removed an unused local variable.

Patch provided by Sergey Sharybin.

7 years agoFreestyle: removed dead code in BlenderStrokeRenderer.
Tamito Kajiyama [Mon, 11 Aug 2014 07:46:09 +0000 (16:46 +0900)]
Freestyle: removed dead code in BlenderStrokeRenderer.

7 years agoFreestyle: Fix for git merge glitches.
Tamito Kajiyama [Mon, 28 Jul 2014 03:25:26 +0000 (12:25 +0900)]
Freestyle: Fix for git merge glitches.

Also made minor code cleanup.

7 years agoFreestyle: Removed debugging code (use G.main instead of Freestyle-local struct Main).
Tamito Kajiyama [Mon, 21 Jul 2014 10:41:11 +0000 (19:41 +0900)]
Freestyle: Removed debugging code (use G.main instead of Freestyle-local struct Main).

7 years agoFix for vertex colors not working properly.
Tamito Kajiyama [Mon, 21 Jul 2014 09:49:27 +0000 (18:49 +0900)]
Fix for vertex colors not working properly.

Looks like the issue was caused by a UV map name starting with a lower case
letter (e.g., "color").  Capitalizing the name fixed the problem.  Also adjusted
the creation of custom data layers to optimize things a bit.

7 years agoFix for wrong link in the line style shader nodes due to a typo.
Tamito Kajiyama [Mon, 21 Jul 2014 09:47:19 +0000 (18:47 +0900)]
Fix for wrong link in the line style shader nodes due to a typo.

7 years agoFix for SCENE_OT_freestyle_stroke_material_create not respecting "use_nodes" line...
Tamito Kajiyama [Mon, 21 Jul 2014 09:45:39 +0000 (18:45 +0900)]
Fix for SCENE_OT_freestyle_stroke_material_create not respecting "use_nodes" line style prop.

7 years agoFreestyle: Proper support for alpha transparency in line style shader nodes for Cycles.
Tamito Kajiyama [Mon, 21 Jul 2014 06:08:07 +0000 (15:08 +0900)]
Freestyle: Proper support for alpha transparency in line style shader nodes for Cycles.

7 years agoFreestyle: Fix for error handling in SCENE_OT_freestyle_stroke_material_create.
Tamito Kajiyama [Sun, 20 Jul 2014 11:09:46 +0000 (20:09 +0900)]
Freestyle: Fix for error handling in SCENE_OT_freestyle_stroke_material_create.

7 years agoFreestyle: Fix for an increasing reference count of images in copied Image Texture...
Tamito Kajiyama [Sun, 20 Jul 2014 08:41:36 +0000 (17:41 +0900)]
Freestyle: Fix for an increasing reference count of images in copied Image Texture shader nodes.

7 years agoFreestyle: Properly reconnect links from a UV Along Stroke node to a UV Map node.
Tamito Kajiyama [Sun, 20 Jul 2014 07:21:05 +0000 (16:21 +0900)]
Freestyle: Properly reconnect links from a UV Along Stroke node to a UV Map node.

7 years agoFreestyle: Updated BKE_linestyle_default_shader() to include the UV Along Stroke...
Tamito Kajiyama [Sun, 20 Jul 2014 03:17:22 +0000 (12:17 +0900)]
Freestyle: Updated BKE_linestyle_default_shader() to include the UV Along Stroke shader node.

7 years agoFreestyle: Added new UV Along Stroke shader node.
Tamito Kajiyama [Sun, 20 Jul 2014 03:14:31 +0000 (12:14 +0900)]
Freestyle: Added new UV Along Stroke shader node.

7 years agoFreestyle: removed unnecessary call of node_type_storage() in the definition of the...
Tamito Kajiyama [Sun, 20 Jul 2014 03:12:54 +0000 (12:12 +0900)]
Freestyle: removed unnecessary call of node_type_storage() in the definition of the Output Line Style node.