blender.git
5 years agoColor managed color didn't work properly for float sequencer frames.
Sergey Sharybin [Tue, 3 Sep 2013 09:18:04 +0000 (09:18 +0000)]
Color managed color didn't work properly for float sequencer frames.

Like, it seems it never worked actually.

5 years agoBugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
Joshua Leung [Tue, 3 Sep 2013 06:46:17 +0000 (06:46 +0000)]
Bugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
it has a driver

5 years agodisplay angle in axis/angle buttons as degrees as with euler rotations.
Campbell Barton [Tue, 3 Sep 2013 06:27:03 +0000 (06:27 +0000)]
display angle in axis/angle buttons as degrees as with euler rotations.

5 years agoreorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple.
Campbell Barton [Tue, 3 Sep 2013 04:39:12 +0000 (04:39 +0000)]
reorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple.

5 years agoremove WINDOWS checks in cmake, this variable isn't defined on windows and checks...
Campbell Barton [Tue, 3 Sep 2013 03:04:44 +0000 (03:04 +0000)]
remove WINDOWS checks in cmake, this variable isn't defined on windows and checks weren't needed.
also remove redundant dot_v3v3 in shrinkwrap constraint.

5 years agoTweaks to New Driver creation behaviour
Joshua Leung [Tue, 3 Sep 2013 00:28:23 +0000 (00:28 +0000)]
Tweaks to New Driver creation behaviour

* 'Show Debug' now enabled for all newly created drivers. For most users, it is
useful to be able to see this to help figure out what's going on

* Removed failed experiment of creating new drivers with Generator FModifiers. I
had hoped that this would make it easier to create drivers that doubled or
halved the input values, but that has proved to not be the case, and instead
made harder for most users to set things up (as they'd have to remove these
first).

Now, when adding drivers from the UI, these get created with two keyframes (at
(0,0) and (1,1) for a 1-1 mapping), which can be easily tweaked normally.

However, for backwards compatability of scripts (notably rigify, and perhaps
some others out there), when creating drivers from scripts, they will still get
created with Generator FModifiers for now. We can review this situation again
for 2.7, but for now it seems ok.

5 years agoGraph Editor: Preserve active curve when using AKEY to toggle selection status
Joshua Leung [Mon, 2 Sep 2013 23:32:21 +0000 (23:32 +0000)]
Graph Editor: Preserve active curve when using AKEY to toggle selection status
of keyframe verts

Previously, every time you toggled the selection of all keyframes (using AKEY),
the active curve would get deselected and deactivated. However, this was a pain
when trying to tweak the shape of a particular curve, as doing this would cause
that curve to either fade into the background or into the jumble of other
curves.

5 years agoApply Scale for Empties
Joshua Leung [Mon, 2 Sep 2013 22:57:22 +0000 (22:57 +0000)]
Apply Scale for Empties

It is now possible to use "Apply Scale" for Empties. While Empties don't exactly
have any Object data attached to them which can be used for supporting "true"
apply scale (i.e. with non-uniform scaling), they do have a drawsize value which
controls how large the empties are drawn (before scaling). This works by taking
the scale factor on the most-scaled axis, and combines this with the existing
empty drawsize to maintain the correct dimensions on that axis at least.

Core Assumptions:
1) Most scaled empties have uniform scaling anyways (i.e. most empties used for
bone shapes)
2) On balance, preserving non-uniform scaling of empties after apply scale is
not as important as not being able to do it at all

5 years agoadd checks for bad args to RNA_def_property_ui_range & RNA_def_property_range and...
Campbell Barton [Mon, 2 Sep 2013 22:28:18 +0000 (22:28 +0000)]
add checks for bad args to RNA_def_property_ui_range & RNA_def_property_range and fix one instance where (min > max).
also remove redundant float/double conversion in ui_get_but_step_unit()

5 years agoallow negative offset for floor constraint.
Campbell Barton [Mon, 2 Sep 2013 22:24:44 +0000 (22:24 +0000)]
allow negative offset for floor constraint.
(since this isnt a projection, it just clamps on an axis this can be supported).

5 years agoAdd poll message when poll fails because of window missing from the context.
Campbell Barton [Mon, 2 Sep 2013 19:28:44 +0000 (19:28 +0000)]
Add poll message when poll fails because of window missing from the context.
This means calling invoke operators from python in states that dont support will give a meaningful error message.

also reduce context lookups when polling.

5 years agoAck... Followup to r59743: in fact, bitflags groups are not always wanted/needed...
Bastien Montagne [Mon, 2 Sep 2013 18:33:06 +0000 (18:33 +0000)]
Ack... Followup to r59743: in fact, bitflags groups are not always wanted/needed, thanks to Campell for notifying me about this!

So now, their generation is controlled by a flag, else previous "simple values" group ids are generated (one per poly region, no need here to reduce the number of used IDs!).

Will update obj exporter too.

5 years agowarning cleanup: correct some odd returns and quiet strict flag warnings on some...
Campbell Barton [Mon, 2 Sep 2013 17:59:04 +0000 (17:59 +0000)]
warning cleanup: correct some odd returns and quiet strict flag warnings on some systems.

5 years agoMake strict compiler happy for release builds.
Sergey Sharybin [Mon, 2 Sep 2013 17:24:56 +0000 (17:24 +0000)]
Make strict compiler happy for release builds.

5 years agoFix [#36636] Incorrect assignment of Smoothing Groups on export
Bastien Montagne [Mon, 2 Sep 2013 17:14:41 +0000 (17:14 +0000)]
Fix [#36636] Incorrect assignment of Smoothing Groups on export

In fact, smooth groups are supposed to be bitflags, not simply integer values (would be far too much simple!). This adds quite a bit of work, as with only 32 values, we can't just assign one to each group. Somewhat related to the "Four colors theorem"! ;)

Here we simply use the first available bit for current smooth group (i.e. first bit not used by any of the already defined contiguous groups).

5 years agoFix #36628, Muting bump node alters material visibility.
Lukas Toenne [Mon, 2 Sep 2013 17:08:03 +0000 (17:08 +0000)]
Fix #36628, Muting bump node alters material visibility.
The internal connections used for muted nodes are a "best guess" only. The algorithm would connect linked input/output sockets first, regardless of sensible connections. Replaced this by a more strict
connection method now which only uses matching types, so that Normal outputs won't get input from values, etc.

This is still far from perfect though. Eventually it may be necessary to implement dedicated methods for certain types of nodes to respect different semantics - using the plain socket type is just not
enough information. Also the value used for connections from muted nodes with no matching input will currently be the hidden(!) socket input values, this can lead to unexpected results. Needs further
thought ...

5 years agoRelated to #36632: cycles textured draw mode now shows the image from an image
Brecht Van Lommel [Mon, 2 Sep 2013 16:05:51 +0000 (16:05 +0000)]
Related to #36632: cycles textured draw mode now shows the image from an image
texture node even if it's not active, in case there is no active texture node.

5 years agoCycles:
Thomas Dinges [Mon, 2 Sep 2013 15:43:28 +0000 (15:43 +0000)]
Cycles:
* Document the members of the Ray struct.

5 years agoFix #36639, textures not reloaded after fixing paths.
Lukas Toenne [Mon, 2 Sep 2013 14:23:42 +0000 (14:23 +0000)]
Fix #36639, textures not reloaded after fixing paths.
The BKE_bpath_traverse_id method updates path variables of image data blocks, but did not cause the image to be reloaded (or rather, tagged so it gets reloaded on next use). This requires also updating
all the ImageUser "ok" tags, which happens in some odd places in other cases where reload happens (e.g. the reload operator and the image path button handler function in image template).

5 years agoFix #36640: node editor header with world nodes not drawing correct after recent...
Brecht Van Lommel [Mon, 2 Sep 2013 14:14:02 +0000 (14:14 +0000)]
Fix #36640: node editor header with world nodes not drawing correct after recent bugfix.

5 years agoFix #36124: VSE - Input Color option does not work for video files
Sergey Sharybin [Mon, 2 Sep 2013 13:54:12 +0000 (13:54 +0000)]
Fix #36124: VSE - Input Color option does not work for video files

Byte images and movies will now fully follow input color space.
Before this non-sRGB input colorspace for byte images and movies
behave really doggy (results in preview and final render were
totally different).

To prevent data loss, if byte image is set not stored in sequencer's
space it'll be internally converted to float buffer.

In theory some setups might be rendering a bit different now, but
new behavior is totally expected and someone used non-sRGB input
space for byte images/movies had Convert Float enabled anyway.

5 years agoFix for the BKE_image_walk_all_users function: This included a check for movie/sequen...
Lukas Toenne [Mon, 2 Sep 2013 13:45:57 +0000 (13:45 +0000)]
Fix for the BKE_image_walk_all_users function: This included a check for movie/sequence image types meant for the original use to set IMA_NEED_FRAME_RECALC flag. But the function name suggests it should be generic, so better move this filter into the callback.

5 years agoFix crash when adjusting plane track after re-tracking point tracks
Sergey Sharybin [Mon, 2 Sep 2013 12:02:46 +0000 (12:02 +0000)]
Fix crash when adjusting plane track after re-tracking point tracks

Issue was caused by tacks map merge re-allocating the tracks and this
didn't update plane tracks.

Ideally tracks_map_merge shall not re-allocate tracks, but for now
just update plane tracks. Shouldn't be too much slow anyway and could
always be tweaked without affecting any artists.

5 years agoSome function didn't match their declaration
Sergey Sharybin [Mon, 2 Sep 2013 11:19:21 +0000 (11:19 +0000)]
Some function didn't match their declaration

5 years agoRemoved some unused old function declarations for loop node register, awkward that...
Lukas Toenne [Mon, 2 Sep 2013 10:34:27 +0000 (10:34 +0000)]
Removed some unused old function declarations for loop node register, awkward that this is still there ...

5 years agofix [#36412] Pivot of active element switches to last selected face after duplicating...
Campbell Barton [Mon, 2 Sep 2013 04:39:48 +0000 (04:39 +0000)]
fix [#36412] Pivot of active element switches to last selected face after duplicating vertices.

5 years agobmesh: internal api change, remove BMOElemMapping, its not needed since the values...
Campbell Barton [Mon, 2 Sep 2013 03:13:51 +0000 (03:13 +0000)]
bmesh: internal api change, remove BMOElemMapping, its not needed since the values can be stored in the ghash directly.
saves 24 bytes per element (per vertex/edge/face on a 64bit system), for bmesh operators.

5 years agoadd hash iterator functions to access the pointer to the value.
Campbell Barton [Mon, 2 Sep 2013 02:58:53 +0000 (02:58 +0000)]
add hash iterator functions to access the pointer to the value.

5 years agotext editor cursor motion (left/right arrows) with selected text typically jumps...
Campbell Barton [Mon, 2 Sep 2013 00:47:27 +0000 (00:47 +0000)]
text editor cursor motion (left/right arrows) with selected text typically jumps to either side of the selection previously the cursor would move and loose the selection too.
text button fields already did this.

5 years agoadd attributes to ghash and edgehash functions.
Campbell Barton [Sun, 1 Sep 2013 22:47:44 +0000 (22:47 +0000)]
add attributes to ghash and edgehash functions.

5 years agofix odd (intentional) behavior with vertex parent,
Campbell Barton [Sun, 1 Sep 2013 22:38:41 +0000 (22:38 +0000)]
fix odd (intentional) behavior with vertex parent,
curve children of a triangle vertex parent would only display their relationship line to the first vertex. (confusing)

also added OB_TYPE_SUPPORT_PARVERT macro.

5 years agosupport for vertex parenting in object mode for object types which support it (mesh...
Campbell Barton [Sun, 1 Sep 2013 22:01:21 +0000 (22:01 +0000)]
support for vertex parenting in object mode for object types which support it (mesh, lattice, curve, surface)
previously this had to be done one by one.

both single and triagle vertex parents can be made, selected based on distance to the verts.

Developer notes:
- looks like this was old TODO, enums existed but weren't used.
- only meshes currently support using.
- added BKE_object_as_kdtree(), may come in handy for similar cases.

5 years agoCleanup!
Bastien Montagne [Sun, 1 Sep 2013 21:49:35 +0000 (21:49 +0000)]
Cleanup!

Also fixed a nasty (but inofensive for now) stuff, we had both MOD_UVPROJECT_MAX and MOD_UVPROJECT_MAXPROJECTORS (the former used in RNA code, the later in modifier code)! Kept MOD_UVPROJECT_MAXPROJECTORS.

5 years agouse strict flags for kdtree, and replace ints with unsigned ints where possible.
Campbell Barton [Sun, 1 Sep 2013 20:17:56 +0000 (20:17 +0000)]
use strict flags for kdtree, and replace ints with unsigned ints where possible.
also replace callocs with mallocs since zeroing memory can be avoided.

5 years agoFix [#36479] Particle instance Modifier random position snaps objects to 0 position
Bastien Montagne [Sun, 1 Sep 2013 15:31:09 +0000 (15:31 +0000)]
Fix [#36479] Particle instance Modifier random position snaps objects to 0 position

Most work (tracking bug) done by Anthony Edlin, many thanks!

Great example of why having duplicate code is never a good idea... ;)

5 years agoOSX/gcc4.6+: fix compiling, -Wconversion causes ann weeror in gcc's own stdio.h else
Jens Verwiebe [Sun, 1 Sep 2013 15:03:44 +0000 (15:03 +0000)]
OSX/gcc4.6+: fix compiling, -Wconversion causes ann weeror in gcc's own stdio.h else

5 years agoMove GCC attributes into a centraized defines
Sergey Sharybin [Sun, 1 Sep 2013 15:01:15 +0000 (15:01 +0000)]
Move GCC attributes into a centraized defines

Instead of having ifdef __GNUC__ all over the headers
to use special compiler's hints use a special file where
all things like this are concentrated.

Makes code easier to follow and allows to manage special
attributes in more efficient way.

Thanks Campbell for review!

5 years agoTag unused arg as unused.
Sergey Sharybin [Sun, 1 Sep 2013 15:01:03 +0000 (15:01 +0000)]
Tag unused arg as unused.

5 years agoRemove some unneeded type conversions.
Sergey Sharybin [Sun, 1 Sep 2013 14:32:51 +0000 (14:32 +0000)]
Remove some unneeded type conversions.

5 years agoadd view3d roll to navigation menu.
Campbell Barton [Sun, 1 Sep 2013 14:17:43 +0000 (14:17 +0000)]
add view3d roll to navigation menu.

5 years agoFix OS X compile error after enabling strict build flags for this module.
Brecht Van Lommel [Sun, 1 Sep 2013 14:10:41 +0000 (14:10 +0000)]
Fix OS X compile error after enabling strict build flags for this module.

5 years agoFix #36620: sss + indirect light rendering artifacts, due to wrong correlation in
Brecht Van Lommel [Sun, 1 Sep 2013 14:10:40 +0000 (14:10 +0000)]
Fix #36620: sss + indirect light rendering artifacts, due to wrong correlation in
the random numbers.

5 years agoFix #36613: view select/all shortcuts not working in graph editor with the
Brecht Van Lommel [Sun, 1 Sep 2013 13:19:06 +0000 (13:19 +0000)]
Fix #36613: view select/all shortcuts not working in graph editor with the
maya key configuration preset.

5 years agoPatch #36622, by Henrik Aarnio: Fit backdrop image to the area dimensions.
Lukas Toenne [Sun, 1 Sep 2013 09:50:56 +0000 (09:50 +0000)]
Patch #36622, by Henrik Aarnio: Fit backdrop image to the area dimensions.
A new operator to alter the backdrop zoom level so that it fits fully within the node editor area, and centers the image.
Shortcut alt-home, as home is used for fitting stuff into the view everywhere.

5 years agokd-tree,
Campbell Barton [Sun, 1 Sep 2013 08:58:46 +0000 (08:58 +0000)]
kd-tree,
- replace numbers with defines for allocation increments and default array size.
- move array reallocation into a static function (deduplicate 2x).

also fix own mistake with uninitialized slop-space var in memory printing statistics.

5 years agoMingw/Windows Compiling Fix:
Joshua Leung [Sun, 1 Sep 2013 05:55:50 +0000 (05:55 +0000)]
Mingw/Windows Compiling Fix:

In file included from source\blender\compositor\operations\COM_PlaneTrackMaskOperation.cpp:31:0:
source\blender\blenlib/BLI_jitter.h:36:65: error: expected ',' or '...' before numeric constant
source\blender\blenlib/BLI_jitter.h:37:65: error: expected ',' or '...' before numeric constant

It appears that an include used in COM_PlaneTrackMaskOperation.cpp brings in some Windows header file, which in turn defines rad/rad1/rad2 as some numeric constants.

5 years agoMingw Compiling Fix - Conversion from int to unsigned char...
Joshua Leung [Sun, 1 Sep 2013 05:36:29 +0000 (05:36 +0000)]
Mingw Compiling Fix - Conversion from int to unsigned char...

Apparently mingw/gcc is too stupid to recognise that the values
in alphatest will only be used if they're within the range of
unsigned char (i.e. 0 <= x < 255) when this is done using a ternary
operator. Then again, it's quite hard for humans to immediately
parse what is going on here either! Converting this clever code
back to a more obvious form that mere mortals (and compilers it
seems) can handle with ease ;)

5 years agoMingw/Windows Compiling Fix
Joshua Leung [Sun, 1 Sep 2013 05:12:36 +0000 (05:12 +0000)]
Mingw/Windows Compiling Fix

This commit attempts to fix the following error:

intern\guardedalloc\intern\mallocn.c: In function 'rem_memblock':
intern\guardedalloc\intern\mallocn.c:977:48: error: conversion to 'intptr_t' from 'size_t' may change the sign of the result [-Werror=sign-conversion]

From the references I've managed to find, it appears that
the second arg to munmap() should be size_t not intptr_t.
Fortunately though, we don't use this arg anyways atm, so
this should be quite harmless...

5 years agouse strict flags for lasso, boxpack, gsqueue and quadric's.
Campbell Barton [Sun, 1 Sep 2013 03:43:10 +0000 (03:43 +0000)]
use strict flags for lasso, boxpack, gsqueue and quadric's.
for lasso also use unsigned ints rather then shorts for the path length.

5 years agouse strict flags for scanfill, also replace shorts with unsigned shorts and ints...
Campbell Barton [Sun, 1 Sep 2013 03:37:45 +0000 (03:37 +0000)]
use strict flags for scanfill, also replace shorts with unsigned shorts and ints/bools in some cases.

5 years agouse strict flags for guarded alloc
Campbell Barton [Sun, 1 Sep 2013 02:46:34 +0000 (02:46 +0000)]
use strict flags for guarded alloc

5 years agomove strict compiler checks into a header so its easier to manage in one place (pragm...
Campbell Barton [Sun, 1 Sep 2013 00:46:04 +0000 (00:46 +0000)]
move strict compiler checks into a header so its easier to manage in one place (pragmas were copied around).

also enable more strict warnings for BLF (which had some incorrect casts).

5 years agoCycles:
Thomas Dinges [Sat, 31 Aug 2013 16:36:54 +0000 (16:36 +0000)]
Cycles:
* World background samples (Branched Path) were missing after integrator rename.

5 years agopatch [#35928] View roll operator
Campbell Barton [Sat, 31 Aug 2013 08:18:08 +0000 (08:18 +0000)]
patch [#35928] View roll operator
from Kevin Mackay (yakca), with my own additions to make it modal (though there are no keys bound to modal roll by default).

5 years agotext spacing was using DPI rather then the size of the text.
Campbell Barton [Sat, 31 Aug 2013 05:09:52 +0000 (05:09 +0000)]
text spacing was using DPI rather then the size of the text.
characters could draw outside the selection when the text was scaled up.

5 years agotext drawing glitche - highlight line was offset slightly from selection.
Campbell Barton [Sat, 31 Aug 2013 05:00:40 +0000 (05:00 +0000)]
text drawing glitche - highlight line was offset slightly from selection.

5 years agoremove calls to CTX_wm_region(C) when the region is already known.
Campbell Barton [Sat, 31 Aug 2013 04:22:55 +0000 (04:22 +0000)]
remove calls to CTX_wm_region(C) when the region is already known.
also remove unused toggle vars in uiHandleButtonData

5 years agofix for ui glitch, pressing backspace over a button to reset to the default value...
Campbell Barton [Sat, 31 Aug 2013 04:11:50 +0000 (04:11 +0000)]
fix for ui glitch, pressing backspace over a button to reset to the default value didnt work for the uilist text button (others too), missing redraw.

5 years agoCleanup:
Thomas Dinges [Sat, 31 Aug 2013 03:18:55 +0000 (03:18 +0000)]
Cleanup:
* Silence /arch:SSE2 warning on msvc x64.

5 years agoCycles:
Thomas Dinges [Sat, 31 Aug 2013 02:56:03 +0000 (02:56 +0000)]
Cycles:
* More build fixes, 2 link errors remain. http://www.pasteall.org/45279

Note: Probably those paths should only be added for Windows and Linux, as "OPENIMAGEIO_LIBPATH" already inherit them for Mac OS. Also "OPENIMAGEIO_LIBRARIES" inherits the libs for Linux already. Is that intended or a lack of consistency?

5 years agoCycles / Standalone:
Thomas Dinges [Sat, 31 Aug 2013 02:25:43 +0000 (02:25 +0000)]
Cycles / Standalone:
* Fix some link errors on Windows, still missing png, zlib, jpeg and tiff.

I couldn't yet figure out the correct flags to pass on here, and the 2300 lines huge main CMakeLists file doesn't help with it...

5 years agotweak mempool loop comparisons when we know there is no chance for skipping past...
Campbell Barton [Sat, 31 Aug 2013 02:12:31 +0000 (02:12 +0000)]
tweak mempool loop comparisons when we know there is no chance for skipping past the last value.
also correct typo.

5 years agoSimplify line/plane intersection, add line_plane_factor_v3().
Campbell Barton [Sat, 31 Aug 2013 02:06:23 +0000 (02:06 +0000)]
Simplify line/plane intersection, add line_plane_factor_v3().

Remove no_flip option for isect_line_plane_v3(), its quite specific and only used for ED_view3d_win_to_3d().

5 years agoCycles: viewport render now takes scene color management settings into account,
Brecht Van Lommel [Fri, 30 Aug 2013 23:49:38 +0000 (23:49 +0000)]
Cycles: viewport render now takes scene color management settings into account,
except for curves, that's still missing from the OpenColorIO GLSL shader.

The pixels are stored in a half float texture, converterd from full float with
native GPU instructions and SIMD on the CPU, so it should be pretty quick.
Using a GLSL shader is useful for GPU render because it avoids a copy through
CPU memory.

5 years agoRenderEngine API: add viewport draw utility functions to bind a GLSL fragment
Brecht Van Lommel [Fri, 30 Aug 2013 23:49:35 +0000 (23:49 +0000)]
RenderEngine API: add viewport draw utility functions to bind a GLSL fragment
shader for converting colors from linear to display space, based on the scene
color management settings.

if engine.support_display_space_shader(scene): # test graphics card support
engine.bind_display_space_shader(scene)
# draw pixels ..
engine.unbind_display_space_shader()

5 years agoFix #36137: cycles render not using all GPU's when the number of GPU's is larger
Brecht Van Lommel [Fri, 30 Aug 2013 23:09:22 +0000 (23:09 +0000)]
Fix #36137: cycles render not using all GPU's when the number of GPU's is larger
than the number of CPU threads

5 years agoremove unnecessary check in BLI_mempool_iterstep and add doxygen comments to mempool.
Campbell Barton [Fri, 30 Aug 2013 22:04:37 +0000 (22:04 +0000)]
remove unnecessary check in BLI_mempool_iterstep and add doxygen comments to mempool.

5 years agomempool internal change, use unsigned ints where possible (less overhead),
Campbell Barton [Fri, 30 Aug 2013 21:32:57 +0000 (21:32 +0000)]
mempool internal change, use unsigned ints where possible (less overhead),
also quiet compiler warning for BLI_LINKSTACK_FREE macro.

5 years agouse CMAKE_DL_LIBS rather then linking libdl directly.
Campbell Barton [Fri, 30 Aug 2013 20:26:57 +0000 (20:26 +0000)]
use CMAKE_DL_LIBS rather then linking libdl directly.
added to cycles standalone too.

5 years agoFix for [#36610] The new sky model produces strange results
Thomas Dinges [Fri, 30 Aug 2013 18:04:23 +0000 (18:04 +0000)]
Fix for [#36610] The new sky model produces strange results
* Clamp theta sky coordinates, to prevent a negative solarElevation.

Note: This means that you cannot get absolute night with the new model, but this is not supported anyway. So when you reach the maximum sunset, use the World Strength to further decrease the light.

5 years agoCycles / Standalone:
Thomas Dinges [Fri, 30 Aug 2013 17:34:27 +0000 (17:34 +0000)]
Cycles / Standalone:
* Standalone can now be compiled without the GUI, making the glut dependency optional.

Added WITH_CYCLES_STANDALONE_GUI cmake flag.

5 years agoFix #36609: glsl materials with reroute nodes not working correct.
Brecht Van Lommel [Fri, 30 Aug 2013 17:18:15 +0000 (17:18 +0000)]
Fix #36609: glsl materials with reroute nodes not working correct.

5 years agoFix #36611: cycles issue loading png file with 2 channels.
Brecht Van Lommel [Fri, 30 Aug 2013 17:01:44 +0000 (17:01 +0000)]
Fix #36611: cycles issue loading png file with 2 channels.

5 years agoquiet compiler warnings
Campbell Barton [Fri, 30 Aug 2013 16:52:54 +0000 (16:52 +0000)]
quiet compiler warnings

5 years agoCycles Standalone:
Thomas Dinges [Fri, 30 Aug 2013 16:39:39 +0000 (16:39 +0000)]
Cycles Standalone:
* Fix compiler warning, == / = mismatch.

5 years agoSome knife fixes. Avoids duplicating verts; better handling of cut-through ortho.
Howard Trickey [Fri, 30 Aug 2013 16:34:44 +0000 (16:34 +0000)]
Some knife fixes. Avoids duplicating verts; better handling of cut-through ortho.

Now cut lines detect vertices that they pass (almost) exactly over
and snap to them, to avoid making verts vert close to other ones.

Added radius arg to BKE_bmbvh_ray_cast so that can detect an obscuring
face when the ray might otherwise go exactly between two triangles.
Needed an isect_line_tri_epsilon function for similar reason.

Fixes last part of bug #35002. Other knife bugs still present but
getting this commit in now before continuing bug fixing.

5 years agoCleanup, bitflags as bitshift ops, and some formating...
Bastien Montagne [Fri, 30 Aug 2013 13:24:16 +0000 (13:24 +0000)]
Cleanup, bitflags as bitshift ops, and some formating...

5 years agoexecute bisect immediately (without starting modal input) if the plane is already...
Campbell Barton [Fri, 30 Aug 2013 12:48:39 +0000 (12:48 +0000)]
execute bisect immediately (without starting modal input) if the plane is already set or if there is no 3d view available.

5 years agominor ui edits
Campbell Barton [Fri, 30 Aug 2013 11:49:35 +0000 (11:49 +0000)]
minor ui edits
- move addon refresh button into header
- uilist, use icon for sorting by name (gives more room for name, icon is used in fileselector for same purpose).
- rename orderby to sort in rna and flag names.
- simplify BKE_nurb_handle_calc_simple

5 years agorefresh paint_common_properties file on script refresh, found by Sebastian Koenig...
Antony Riakiotakis [Fri, 30 Aug 2013 11:46:19 +0000 (11:46 +0000)]
refresh paint_common_properties file on script refresh, found by Sebastian Koenig, thanks

5 years agoFollowup for rev59629.
Sergey Sharybin [Fri, 30 Aug 2013 10:20:31 +0000 (10:20 +0000)]
Followup for rev59629.

Condition in pose mode seemd to be inverted, which made it so
pose mode could not be entered.

5 years agoFix [#36600]: Smoke subframes not working with initial velocity
Miika Hamalainen [Fri, 30 Aug 2013 09:59:49 +0000 (09:59 +0000)]
Fix [#36600]: Smoke subframes not working with initial velocity

5 years agoFix for [#36599] Freestyle: Line thickness modifier with certain blend types incorrec...
Tamito Kajiyama [Fri, 30 Aug 2013 09:17:27 +0000 (09:17 +0000)]
Fix for [#36599] Freestyle: Line thickness modifier with certain blend types incorrectly calculated.

The inner/outer thickness values were separately blended by Multiply, Divide and other binary
operators, which resulted in the wrong thickness values reported in the issue.  The operations
must be applied to the sum of the inner and outer thickness values.

Also the Minimum and Maximum operators were not properly implemented (one of the two operands
were ignored by mistake).

5 years agoFix #36605: Segfault when border selecting markers in the "graph" mode when no track...
Sergey Sharybin [Fri, 30 Aug 2013 09:11:47 +0000 (09:11 +0000)]
Fix #36605: Segfault when border selecting markers in the "graph" mode when no track is active

5 years agoAttempted fix for #36569: couldn't unmap memory errors on Windows. The guardedalloc...
Brecht Van Lommel [Thu, 29 Aug 2013 23:46:44 +0000 (23:46 +0000)]
Attempted fix for #36569: couldn't unmap memory errors on Windows. The guardedalloc optimizations were not entirely thread safe for mmap.

5 years agoCleaning up some prints related to SDL.
Mitchell Stokes [Thu, 29 Aug 2013 22:48:37 +0000 (22:48 +0000)]
Cleaning up some prints related to SDL.

5 years agoAdding support for enabling/disabling vsync to Ghost_SDL.
Mitchell Stokes [Thu, 29 Aug 2013 22:48:31 +0000 (22:48 +0000)]
Adding support for enabling/disabling vsync to Ghost_SDL.

5 years agoAllowing the BGE to build with SDL2. I'm not sure if this is the correct fix yet...
Mitchell Stokes [Thu, 29 Aug 2013 22:48:27 +0000 (22:48 +0000)]
Allowing the BGE to build with SDL2. I'm not sure if this is the correct fix yet, but at least it builds.

5 years agoFix #36602: crash with freestyle and full sample render of empty render layer.
Brecht Van Lommel [Thu, 29 Aug 2013 20:53:29 +0000 (20:53 +0000)]
Fix #36602: crash with freestyle and full sample render of empty render layer.

5 years agoFix part of #36594: 16 bit tiff not loading with correct color space in cycles.
Brecht Van Lommel [Thu, 29 Aug 2013 20:53:20 +0000 (20:53 +0000)]
Fix part of #36594: 16 bit tiff not loading with correct color space in cycles.

5 years agodon't show screen-space-line start/end points in operator redo panel.
Campbell Barton [Thu, 29 Aug 2013 19:02:07 +0000 (19:02 +0000)]
don't show screen-space-line start/end points in operator redo panel.

5 years agomesh bisect can now be defined with mouse input
Campbell Barton [Thu, 29 Aug 2013 18:45:04 +0000 (18:45 +0000)]
mesh bisect can now be defined with mouse input
(using cursor + numeric values was too clumsy for defining orientation).

once the cut is done numeric input still works as before

5 years agocorrect own error r59619 (changes made to patch, adding handle recalculation which...
Campbell Barton [Thu, 29 Aug 2013 14:52:36 +0000 (14:52 +0000)]
correct own error r59619 (changes made to patch, adding handle recalculation which is needed after splitting).

5 years agoOptimizations by Campbell, thanks!
Bastien Montagne [Thu, 29 Aug 2013 14:37:46 +0000 (14:37 +0000)]
Optimizations by Campbell, thanks!

5 years agoFix building under windows after r59631 (grr, sorry :/ ).
Bastien Montagne [Thu, 29 Aug 2013 13:50:40 +0000 (13:50 +0000)]
Fix building under windows after r59631 (grr, sorry :/ ).

5 years agoUIList: update examples and templates.
Bastien Montagne [Thu, 29 Aug 2013 13:34:36 +0000 (13:34 +0000)]
UIList: update examples and templates.

5 years agoSupport transformation around 2D cursor in movie clip editor.
Sergey Sharybin [Thu, 29 Aug 2013 13:04:12 +0000 (13:04 +0000)]
Support transformation around 2D cursor in movie clip editor.

5 years agoLast uiList patch (for now!): filtering and reordering of shown elements.
Bastien Montagne [Thu, 29 Aug 2013 12:55:31 +0000 (12:55 +0000)]
Last uiList patch (for now!): filtering and reordering of shown elements.

Thanks to Brecht for the reviews. :)

This commit adds a show/hide extension below each uiList, containing by default an option to filter and/or reorder items by name (and to reverse those filtering and reordering).

Each derived uiList class in Python can define more specific filtering by implementing callbacks: the draw_filter() function to draw options in UI, and the filter_items() function to effectively filter/reorder items.

Note: the advanced options for vgroups shown as "proof od concept" in patches do not go in trunk for now, we have to find a better way to get those vgroups info for UI code, we can't afford to loop over each vertex here!

And doc (release notes and uiList example) is still to be updated, will do this in next days.

5 years agoUse static odifier for non-public functions in new sky model.
Sergey Sharybin [Thu, 29 Aug 2013 12:36:02 +0000 (12:36 +0000)]
Use static odifier for non-public functions in new sky model.

5 years agofollow up on r59628, setting modes now ensures that other modes exit first,
Campbell Barton [Thu, 29 Aug 2013 10:34:09 +0000 (10:34 +0000)]
follow up on r59628, setting modes now ensures that other modes exit first,
this was only done in some cases before and it was possible to enable weightpaint+sculpt at the same time when enabling sculpt by directly running the mode switching operator.

add generic function to ensure a compatible mode before entering the new mode (added to each operators exec function)