blender.git
5 years agoFix T41467: Modifier view buttons changing positions.
Bastien Montagne [Sun, 17 Aug 2014 07:35:57 +0000 (09:35 +0200)]
Fix T41467: Modifier view buttons changing positions.

Commits early in this year (to save some space) broke this. Hopefully this time
it works in all cases - lastCageIndex is no more influenced by realtime/edit active states.
Also, inactivate buttons instead of hiding them, can be useful to set those data
even though it does not have any immediate effect.

Took the opportunity to switch cage buttons to RNA, btw.

5 years agoBLI_array: utility function for searching an array
Campbell Barton [Sun, 17 Aug 2014 05:56:44 +0000 (15:56 +1000)]
BLI_array: utility function for searching an array

5 years agoKnife tool: simplify hit-depth calculation
Campbell Barton [Sun, 17 Aug 2014 02:50:48 +0000 (12:50 +1000)]
Knife tool: simplify hit-depth calculation

5 years agoCleanup
Campbell Barton [Sun, 17 Aug 2014 02:18:40 +0000 (12:18 +1000)]
Cleanup

5 years agoMath Lib: replace epsilon with check against zero
Campbell Barton [Sat, 16 Aug 2014 22:38:24 +0000 (08:38 +1000)]
Math Lib: replace epsilon with check against zero

line-tri intersection depended on scale, The check made small triangles & lines fail.
So just check for divide by zero as ray-cast currently does.

5 years agoFix poll func of CYCLES_OT_use_shading_nodes.
Bastien Montagne [Sat, 16 Aug 2014 20:42:02 +0000 (22:42 +0200)]
Fix poll func of CYCLES_OT_use_shading_nodes.

Operators' poll func might be called from anywhere in Blender, so they should
not make any assumption about available context. material, lamp and world
are specific to context from Properties space...

5 years agoFix filenames in splashscreen.
Bastien Montagne [Sat, 16 Aug 2014 20:21:10 +0000 (22:21 +0200)]
Fix filenames in splashscreen.

For some reason, labels of buttons in popups/menus were clipped left.

Removed that function (was the only place were it was used), clipping text
by its left is really bad for its understanding!

Instead, extended clip_middle code so that it optionnally preserves a right piece of
the given string (like the shortcut part of a menu label). Think that's what makes
more sense here (note that most menus adapt themselves to their longest item,
we do not have much fixed-width ones, anyway).

Also tweaked a bit clip_middle logic, so that left part always have at least ten chars
(in addition to already existing 'min width' checks).

5 years agoMath Lib: add isect_line_line_epsilon_v3
Campbell Barton [Sat, 16 Aug 2014 05:13:11 +0000 (15:13 +1000)]
Math Lib: add isect_line_line_epsilon_v3

5 years agoComments
Campbell Barton [Sat, 16 Aug 2014 00:51:07 +0000 (10:51 +1000)]
Comments

5 years agoFix T41454: Command "Dirty Vertex Colors" prompts Python error.
Bastien Montagne [Fri, 15 Aug 2014 17:50:16 +0000 (19:50 +0200)]
Fix T41454: Command "Dirty Vertex Colors" prompts Python error.

5 years agoFix T41421
Antony Riakiotakis [Fri, 15 Aug 2014 15:31:47 +0000 (17:31 +0200)]
Fix T41421

Don't store selection properties, if those are set in the keymap we can
end uo locking one state forever.

5 years agoFix compilation on linux (implicit conversion from double/float to size_t treated...
Bastien Montagne [Fri, 15 Aug 2014 13:44:50 +0000 (15:44 +0200)]
Fix compilation on linux (implicit conversion from double/float to size_t treated as error here).

5 years agoFix T41427: Region overlap moves into wrong window.
Bastien Montagne [Fri, 15 Aug 2014 13:36:25 +0000 (15:36 +0200)]
Fix T41427: Region overlap moves into wrong window.

There was some fuzzyness in `region_overlap_fix()`, using an 'other side' region
as ref to move current one in case their rect would intersect...

New code is a bit more complex, but should handle nicely all situations, mostly
ensuring we only translate an overlap if we find a previous one **on the same side**,
and ensuring we also never have intersecting overlapping regions from different sides
(since this does not work nice at all).

5 years agoCleanup
Campbell Barton [Fri, 15 Aug 2014 09:59:31 +0000 (19:59 +1000)]
Cleanup

5 years agoFix uninitialized imagepaint values on new scene, report by kopias on
Antony Riakiotakis [Fri, 15 Aug 2014 09:44:31 +0000 (11:44 +0200)]
Fix uninitialized imagepaint values on new scene, report by kopias on
irc

5 years agoCorrection to last commit, rna naming
Campbell Barton [Fri, 15 Aug 2014 09:32:45 +0000 (19:32 +1000)]
Correction to last commit, rna naming

5 years agoFinal Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
Dalai Felinto [Thu, 31 Jul 2014 23:04:57 +0000 (20:04 -0300)]
Final Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU

It now uses the tile size to split the job. For CPU this may add
overhead, but for GPU this is highly needed.

Reviewers: sergey

Differential Revision: https://developer.blender.org/D690

5 years agoRevert "Fix T41222 Blender gives weird output when baking (4096*4096) resolution...
Dalai Felinto [Wed, 6 Aug 2014 16:10:56 +0000 (13:10 -0300)]
Revert "Fix T41222 Blender gives weird output when baking (4096*4096) resolution on GPU"

This reverts commit a48b372b04421b00644a0660bfdf42229b5ffceb.

Leaving only the part that fix device_multi.cpp

5 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

5 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.

5 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.

5 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

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

5 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

5 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

5 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.

5 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.

5 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.

5 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.

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

5 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.

5 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.

5 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.

5 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.

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

5 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..

5 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.

5 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.

5 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

5 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

5 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.

5 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

5 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.

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

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

5 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

5 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.

5 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.

5 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

5 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

5 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
overlapping.

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

5 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.

5 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

5 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.

5 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.

5 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)

5 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.

5 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

5 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
anything).

5 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

5 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

5 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

5 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

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

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

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

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

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

5 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

5 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

5 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

5 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).

5 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
stored.

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.

5 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

5 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...

5 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.

5 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!

5 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
here.

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

5 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).

5 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.

5 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
images.

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

5 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

5 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

5 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
loop.

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.

5 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.

5 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.

5 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

5 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

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

5 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.

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