8 years agofix [#36459] Official blenderplayer can not go fullscreen on Linux
Campbell Barton [Wed, 4 Sep 2013 23:43:25 +0000 (23:43 +0000)]
fix [#36459] Official blenderplayer can not go fullscreen on Linux
use modified patch from Alex Fraser (z0r)

8 years agoBGE: Removing the touch sensor and converting all touch sensors to collision sensors.
Mitchell Stokes [Wed, 4 Sep 2013 22:14:14 +0000 (22:14 +0000)]
BGE: Removing the touch sensor and converting all touch sensors to collision sensors.

8 years agoGhost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.
Mitchell Stokes [Wed, 4 Sep 2013 21:57:14 +0000 (21:57 +0000)]
Ghost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.

8 years agoremove error return value from BLI_bvhtree_insert, no callers were using.
Campbell Barton [Wed, 4 Sep 2013 20:33:50 +0000 (20:33 +0000)]
remove error return value from BLI_bvhtree_insert, no callers were using.
in the case of an error - assert, rather then fail silently since it wont be working as expected anyway.

8 years agouse strict flags for kdopbvh, also assert when invalid treetype is passed, rather...
Campbell Barton [Wed, 4 Sep 2013 20:03:33 +0000 (20:03 +0000)]
use strict flags for kdopbvh, also assert when invalid treetype is passed, rather then failing silently.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 16:24:58 +0000 (16:24 +0000)]
Code cleanup / Cycles:
* Removed unused member of the device_memory template.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 16:11:21 +0000 (16:11 +0000)]
Code cleanup / Cycles:
* Avoid special code, when Subsurface is enabled.
Ideally we should only use the function, and get rid of the extra duplicate, but this is slower on CUDA.

8 years agoCompile fix / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 13:37:35 +0000 (13:37 +0000)]
Compile fix / Cycles:
* 'T' is now also used for the Subsurface closure.

8 years agoAdd new cursor types to data handling to account for Intuos 4 device (pen and eraser).
Nathan Letwory [Wed, 4 Sep 2013 12:10:02 +0000 (12:10 +0000)]
Add new cursor types to data handling to account for Intuos 4 device (pen and eraser).

Thanks to Ayden Polat for helping to find out the cursor type codes.

8 years agofix for building on msvc
Campbell Barton [Wed, 4 Sep 2013 06:50:15 +0000 (06:50 +0000)]
fix for building on msvc

8 years agobetter fix for r59794, register a gesture when the mouse goes outside the actionzone.
Campbell Barton [Wed, 4 Sep 2013 05:25:29 +0000 (05:25 +0000)]
better fix for r59794, register a gesture when the mouse goes outside the actionzone.

8 years agofix for window join action being interpreted as a split.
Campbell Barton [Wed, 4 Sep 2013 05:06:38 +0000 (05:06 +0000)]
fix for window join action being interpreted as a split.

The limit for dragging a gesture on an area corner was smaller then the area hot-spot,
so you could click on the right-most side of the bottom-left corner, drag left - pass the gesture threshold and still be in the same area. so a motion intended as a join would register as a split.
Happened more with high DPI values. fix by ensuring the drag limit is always higher then the hotspot.

8 years agofix for glitch splitting horizontally with a high dpi, could make areas smaller then...
Campbell Barton [Wed, 4 Sep 2013 03:52:25 +0000 (03:52 +0000)]
fix for glitch splitting horizontally with a high dpi, could make areas smaller then the header which pushed the original view out of the screen.

8 years agostyle cleanup
Campbell Barton [Wed, 4 Sep 2013 03:30:41 +0000 (03:30 +0000)]
style cleanup

8 years agotweaks to fly mode
Campbell Barton [Wed, 4 Sep 2013 01:49:20 +0000 (01:49 +0000)]
tweaks to fly mode
- rotating the view is faster.
- arrow keys work (was only wasd-rf before)
- when stationary wheel or +/- will set z direction (so mouse wheel always sets the fly axis back to z)

8 years agodebug option for modifier stack calculation USE_MODIFIER_VALIDATE,
Campbell Barton [Wed, 4 Sep 2013 01:29:34 +0000 (01:29 +0000)]
debug option for modifier stack calculation USE_MODIFIER_VALIDATE,
checks that every modifier gives a valid mesh (very slow) - so off by default even in debug mode.

8 years agoAdded better support for line styles in the Outliner.
Tamito Kajiyama [Wed, 4 Sep 2013 01:15:23 +0000 (01:15 +0000)]
Added better support for line styles in the Outliner.

8 years agoFix cycles CUDA/OpenCL build error after recent change.
Brecht Van Lommel [Wed, 4 Sep 2013 01:04:14 +0000 (01:04 +0000)]
Fix cycles CUDA/OpenCL build error after recent change.

8 years agoFix for redundant multiple animation data items of the same line style in DopeSheet.
Tamito Kajiyama [Wed, 4 Sep 2013 00:21:27 +0000 (00:21 +0000)]
Fix for redundant multiple animation data items of the same line style in DopeSheet.
This could happen when a line style is shared by multiple linesets within a scene.

8 years agoFix for missing filter button to visualize/hide animation data related to line styles.
Tamito Kajiyama [Tue, 3 Sep 2013 22:50:58 +0000 (22:50 +0000)]
Fix for missing filter button to visualize/hide animation data related to line styles.

8 years agoFix #36649: Drivers for Freestyle parameters in Render Layer panel don't appear in...
Tamito Kajiyama [Tue, 3 Sep 2013 22:49:30 +0000 (22:49 +0000)]
Fix #36649: Drivers for Freestyle parameters in Render Layer panel don't appear in Graph Editor.

The channels define code in ANIM_init_channel_typeinfo_data() was not synchronized with the
definition of channel types (eAnim_ChannelType) in ED_anim_api.h.

8 years agoFix a few issues reported by coverity scan.
Brecht Van Lommel [Tue, 3 Sep 2013 22:39:21 +0000 (22:39 +0000)]
Fix a few issues reported by coverity scan.

8 years agoCycles: add a sharpness input to the Cubic SSS falloff. When set to 1 this will
Brecht Van Lommel [Tue, 3 Sep 2013 22:39:17 +0000 (22:39 +0000)]
Cycles: add a sharpness input to the Cubic SSS falloff. When set to 1 this will
give a result more similar to the Compatible falloff option. The scale is x2
though to keep the perceived scatter radius roughly the same while changing the
sharpness. Difference with compatible will be mainly on non-flat geometry.

8 years agoreplace sqrt(dot()) with length functions.
Campbell Barton [Tue, 3 Sep 2013 22:32:03 +0000 (22:32 +0000)]
replace sqrt(dot()) with length functions.

8 years agosimplify length checks in DM_calc_auto_bump_scale
Campbell Barton [Tue, 3 Sep 2013 22:22:45 +0000 (22:22 +0000)]
simplify length checks in DM_calc_auto_bump_scale

8 years agofix for missing NULL check before calling BKE_sequencer_imbuf_to_sequencer_space().
Campbell Barton [Tue, 3 Sep 2013 21:54:17 +0000 (21:54 +0000)]
fix for missing NULL check before calling BKE_sequencer_imbuf_to_sequencer_space().

8 years agomove timeit macros into their own include, since they are only used for testing and...
Campbell Barton [Tue, 3 Sep 2013 21:22:43 +0000 (21:22 +0000)]
move timeit macros into their own include, since they are only used for testing and unrelated to PIL_time.h typical use.

8 years agoFix #36449: switching between render slots during render would leave some tiles
Brecht Van Lommel [Tue, 3 Sep 2013 20:59:24 +0000 (20:59 +0000)]
Fix #36449: switching between render slots during render would leave some tiles
black until the end of the render.

8 years agoRelated to #36532: show message in modifier when cloth point cache read fails,
Brecht Van Lommel [Tue, 3 Sep 2013 19:58:09 +0000 (19:58 +0000)]
Related to #36532: show message in modifier when cloth point cache read fails,
for example due to a subsurf modifier preceding a cloth modifier.

8 years agoFix #36194, Halo material on Layer 2 produces flares on layer 1. Halo flares were...
Lukas Toenne [Tue, 3 Sep 2013 18:59:52 +0000 (18:59 +0000)]
Fix #36194, Halo material on Layer 2 produces flares on layer 1. Halo flares were simply rendered on the first available halo-enabled layer. Now use the flare layers correctly.

8 years agoFix compile error with strict compile flags.
Brecht Van Lommel [Tue, 3 Sep 2013 18:01:31 +0000 (18:01 +0000)]
Fix compile error with strict compile flags.

8 years agoFix #36189: link group, delete instanced object, link group again would not
Brecht Van Lommel [Tue, 3 Sep 2013 17:24:07 +0000 (17:24 +0000)]
Fix #36189: link group, delete instanced object, link group again would not
create an instance. Now it creates the instance even if the group was already
linked into the .blend file.

8 years agoRelated to #36382: for linked object point caches, show a message that disk
Brecht Van Lommel [Tue, 3 Sep 2013 16:28:53 +0000 (16:28 +0000)]
Related to #36382: for linked object point caches, show a message that disk
cache must be used for baking.

8 years agoFix #36359: sequencer frame indicator not updating during animation render.
Brecht Van Lommel [Tue, 3 Sep 2013 16:02:55 +0000 (16:02 +0000)]
Fix #36359: sequencer frame indicator not updating during animation render.

8 years agoFixed crash on Visual Studio
Alexander Kuznetsov [Tue, 3 Sep 2013 15:30:07 +0000 (15:30 +0000)]
Fixed crash on Visual Studio

8 years agoFix a possible bug in knife detected by coverity.
Howard Trickey [Tue, 3 Sep 2013 11:37:47 +0000 (11:37 +0000)]
Fix a possible bug in knife detected by coverity.

A selection copy may have been passed a null pointer.
Also quieted a couple other complaints by coverity.

8 years agoFix #36587: Tracking markers fail to track near the left and right edge of a movie...
Sergey Sharybin [Tue, 3 Sep 2013 10:39:55 +0000 (10:39 +0000)]
Fix #36587: Tracking markers fail to track near the left and right edge of a movie clip.

Track margin checks needed some tweaks to deal better with the fact
that normalized values for the same pixel values might be different
across X and Y axis.

Also, non-centered patters are expected to be handling better now.

8 years agoFix #36643: Clip Editor: undesired Markers created "automatically" while I track...
Sergey Sharybin [Tue, 3 Sep 2013 09:18:08 +0000 (09:18 +0000)]
Fix #36643: Clip Editor: undesired Markers created "automatically" while I track my marker

Was a typo from recent commint from my own.

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

8 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

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

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

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

8 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

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.

8 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

8 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

8 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()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 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

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

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

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

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

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

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

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

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

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

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.

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

8 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... ;)

8 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

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

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

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

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

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

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

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

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

8 years agokd-tree,
Campbell Barton [Sun, 1 Sep 2013 08:58:46 +0000 (08:58 +0000)]
- 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.

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

8 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 ;)

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

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

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

8 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

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

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

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

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

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

8 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

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

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

8 years agoCycles:
Thomas Dinges [Sat, 31 Aug 2013 02:56:03 +0000 (02:56 +0000)]
* More build fixes, 2 link errors remain.

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?

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

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