6 years agopython bge.types module - Updating documentation to close T40778
Ines Almeida [Fri, 4 Jul 2014 19:41:32 +0000 (20:41 +0100)]
python bge.types module - Updating documentation to close T40778

6 years agoFix T33762 - texture fonts were not using the material color (gameengine)
HG1 [Wed, 18 Jun 2014 15:55:11 +0000 (16:55 +0100)]
Fix T33762 - texture fonts were not using the material color (gameengine)

6 years agomakeScreenshot - adding frame number to the filename
HG1 [Sat, 14 Jun 2014 07:30:09 +0000 (08:30 +0100)]
makeScreenshot - adding frame number to the filename

6 years agocommiting patch to fix T30173
Benoit Bolsee [Mon, 26 May 2014 09:38:12 +0000 (10:38 +0100)]
commiting patch to fix T30173

6 years agogameengine: KX_Scene comment cleanup
Ines Almeida [Tue, 1 Jul 2014 09:00:20 +0000 (10:00 +0100)]
gameengine: KX_Scene comment cleanup

6 years agoBGE cleanup: removing unused async logic bricks
Ines Almeida [Thu, 12 Jun 2014 10:54:23 +0000 (11:54 +0100)]
BGE cleanup: removing unused async logic bricks

This code was never run and is an outdated copy from the code above.
If someday this is needed again, it is better to start clean.

6 years agoDocumentation update: references to OpenGL tutorials in the python bgl module
Ines Almeida [Wed, 4 Jun 2014 19:37:01 +0000 (20:37 +0100)]
Documentation update: references to OpenGL tutorials in the python bgl module

6 years agoCleanup: Put all Bump dx/dy code in the beginning here, same as with other nodes.
Thomas Dinges [Sat, 21 Feb 2015 11:55:19 +0000 (12:55 +0100)]
Cleanup: Put all Bump dx/dy code in the beginning here, same as with other nodes.

6 years agoCorrection for RNA getter of use_save_buffers
Sergey Sharybin [Sat, 21 Feb 2015 07:47:29 +0000 (12:47 +0500)]
Correction for RNA getter of use_save_buffers

6 years agoCycles: Workaround for NVidia OpenCL compilation
Sergey Sharybin [Sat, 21 Feb 2015 07:33:21 +0000 (12:33 +0500)]
Cycles: Workaround for NVidia OpenCL compilation

It was complaining about explicit __constant to __private memory conversion,
which is now worked around using implicit conversion.

It's not a real fix i'm afraid and i'm still failing to build OpenCL kernel
with latest Linux drivers, but maybe it'll let someone else to investigate
what causes compiler to run out of memory?

6 years agoBGE: Fix T43215: Rigidbody constraints deletion.
Thomas Szepe [Fri, 20 Feb 2015 22:37:32 +0000 (23:37 +0100)]
BGE: Fix T43215: Rigidbody constraints deletion.

Deleting an object was deleting all rigidbody constraints in the scene.
Bug was introduced with D701.

Reviewers: agoose77, sergof, moguri, lordloki, sybren

Reviewed By: lordloki, sybren

Subscribers: sybren, hbar, blueprintrandom, sergof, agoose77

Differential Revision:

6 years agoFix T43550: Bug in Cycles Bake Texture
Sergey Sharybin [Fri, 20 Feb 2015 20:56:48 +0000 (01:56 +0500)]
Fix T43550: Bug in Cycles Bake Texture

Issue was caused by the changes in 7b16fda which changed the initial
state for rng. This commit makes it so the same initial hash is used
(which solves the regression without distorting AA-looking image.

It also makes it so OpenCL compiler is happy about this code (before
this change it'll complain about trying to cast private variable to
global one).

6 years agoRNA: use 1/0 for object layers
Campbell Barton [Fri, 20 Feb 2015 15:08:42 +0000 (02:08 +1100)]
RNA: use 1/0 for object layers

internal api Consistency.

6 years agoYet another commit to get rid of missing faces in fill brushes.
Antony Riakiotakis [Fri, 20 Feb 2015 14:11:12 +0000 (15:11 +0100)]
Yet another commit to get rid of missing faces in fill brushes.

We are now guarding against some divisions by small values.
There are still issues here but they are not on boundary faces
anymore so they must be related to some other issue such as
the triangle intersection test.

6 years agoSequencer: allow scene volume above 1
Campbell Barton [Fri, 20 Feb 2015 13:08:27 +0000 (00:08 +1100)]
Sequencer: allow scene volume above 1

6 years agoFix T43651: New pointiness attribute doesn't work with displacement
Sergey Sharybin [Fri, 20 Feb 2015 12:20:24 +0000 (17:20 +0500)]
Fix T43651: New pointiness attribute doesn't work with displacement

Simple fix: just make pointiness aware of bump offset.

6 years agoFix T43739: bad documentation for bmesh py `intersect_face_point()`
Bastien Montagne [Fri, 20 Feb 2015 09:54:26 +0000 (10:54 +0100)]
Fix T43739: bad documentation for bmesh py `intersect_face_point()`

Previous text could make think this func was checking whether a point was
inside and on the face, while it actually checks whether the projection
of that point onto the face is inside its boundary...

6 years agoRNA: correct bool callbacks
Campbell Barton [Fri, 20 Feb 2015 08:54:28 +0000 (19:54 +1100)]
RNA: correct bool callbacks

6 years agoRevert "Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}"
Sybren A. Stüvel [Fri, 20 Feb 2015 07:41:21 +0000 (08:41 +0100)]
Revert "Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}"

There are more flags that trigger this assertion, so I want to discuss
an appropriate way to fix it before changing them all.

This reverts commit b1191e5caf1a888bfad2185ed41db2e91fbf46e2.

6 years agoCast result of rna_RenderSettings_use_game_engine_get to {0, 1}
Sybren A. Stüvel [Fri, 20 Feb 2015 07:36:33 +0000 (08:36 +0100)]
Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}

rna_RenderSettings_use_game_engine_get() in rna_scene.c would return 0 or 2,
whereas the assertion in rna_access.c:1843 indicates that boolean values
should only be 0 or 1.

6 years agoRNA: calloc -> malloc when fixbuf is uninitialized
Campbell Barton [Fri, 20 Feb 2015 06:16:58 +0000 (17:16 +1100)]
RNA: calloc -> malloc when fixbuf is uninitialized

6 years agoFix for unlikely NULL pointer dereference
Campbell Barton [Fri, 20 Feb 2015 06:17:36 +0000 (17:17 +1100)]
Fix for unlikely NULL pointer dereference

Potential crash reading freestyle modifiers from future blend-files

6 years agoFix possible (unlikely) memory leak
Campbell Barton [Fri, 20 Feb 2015 06:09:40 +0000 (17:09 +1100)]
Fix possible (unlikely) memory leak

6 years agoCycles: Use size_t for aligned allocator
Sergey Sharybin [Thu, 19 Feb 2015 17:17:42 +0000 (22:17 +0500)]
Cycles: Use size_t for aligned allocator

Seems it got changes by accident to int during guarded allocation work,
causing bad memory allocations.

6 years agoSkip flip check in cases where it's not needed.
Antony Riakiotakis [Thu, 19 Feb 2015 15:56:05 +0000 (16:56 +0100)]
Skip flip check in cases where it's not needed.

6 years agoRemove flipping for colinear case/ In such cases it is doubtful whether
Antony Riakiotakis [Thu, 19 Feb 2015 15:51:51 +0000 (16:51 +0100)]
Remove flipping for colinear case/ In such cases it is doubtful whether
face orientation is really meaningful

6 years agoProjective painting: Only dither if factor is more than zero
Antony Riakiotakis [Thu, 19 Feb 2015 15:46:05 +0000 (16:46 +0100)]
Projective painting: Only dither if factor is more than zero

6 years agoFix T43735 painting on perpendicular to the screen polygons is
Antony Riakiotakis [Thu, 19 Feb 2015 15:38:56 +0000 (16:38 +0100)]
Fix T43735 painting on perpendicular to the screen polygons is
problematic (still!)

It seems due to floating point precision issues we have to account for
even more cases.

Added colinear check for one more triangle edge-vertex and assumed that
if no collision test is found then triangle is completely inside box.

Such cases are mostly from float precision not catching triangle just
outside bucket. Now tests are much better for simple tests (paint/flood
fill cube from ortho view, paint sphere), however there are still some
rare cases of stray pixels.

6 years agoCycles: Cleanup for indentation in device_cpu.cpp
Sergey Sharybin [Thu, 19 Feb 2015 14:05:04 +0000 (19:05 +0500)]
Cycles: Cleanup for indentation in device_cpu.cpp

Perhaps became broken after rather recent change about which entry point
to kernel to use.

6 years agoCycles: Free memory used by intermediate BVH vectors earlier
Sergey Sharybin [Thu, 19 Feb 2015 13:58:21 +0000 (18:58 +0500)]
Cycles: Free memory used by intermediate BVH vectors earlier

Ideally we should get rid of those temporary vectors anyway, but
it's not so trivial because of the alignment. For untl then we'll
just have a bit worse solution. This part of code is not the root
of the issue of memory spikes for now anyway.

But since we're getting rid of temporary memory earlier actual spike
is a bit smaller as now. For example in franck_sheep file it's now
5489.69MB vs. previously 5599.90MB.

6 years agoCycles: Reduce memory used by background light update
Sergey Sharybin [Thu, 19 Feb 2015 13:15:07 +0000 (18:15 +0500)]
Cycles: Reduce memory used by background light update

Simple change: just get rid of intermediate data a bit earlier, before
final pixels array is being allocated. This gives around 30% of memory
save during light update (this is about 60meg in the frank sheep file
i'm using here).

This isn't really visible by artists a lot, because actual spike happens
on BVH construction. But it doesn't mean we shouldn't be accurate with
memory usage in other areas.

6 years agoCleanup: Restructure curve settings code a bit.
Thomas Dinges [Thu, 19 Feb 2015 11:36:13 +0000 (12:36 +0100)]
Cleanup: Restructure curve settings code a bit.

This is a bit more logical, as it better represents the 3 primitive types we have.

6 years agoFix 2d paint issue with textured brushes: Multiply brush color with
Antony Riakiotakis [Thu, 19 Feb 2015 11:37:35 +0000 (12:37 +0100)]
Fix 2d paint issue with textured brushes: Multiply brush color with
texture in the right space

6 years agobge physics: disallowing compound collisions for soft bodies
Ines Almeida [Tue, 24 Jun 2014 14:44:34 +0000 (15:44 +0100)]
bge physics: disallowing compound collisions for soft bodies

Closes D610, T40427, T30630

Cherrypicked from local squash

6 years agoBGE physics: adding links to bullet documentation
Ines Almeida [Tue, 13 Jan 2015 18:28:36 +0000 (19:28 +0100)]
BGE physics: adding links to bullet documentation

6 years agogameengine physics: removing triangle mesh collision option for character controllers
Ines Almeida [Sun, 17 Aug 2014 17:55:57 +0000 (19:55 +0200)]
gameengine physics: removing triangle mesh collision option for character controllers

6 years agogameengine physics: removing compound option for character controllers
Ines Almeida [Sun, 17 Aug 2014 17:40:33 +0000 (19:40 +0200)]
gameengine physics: removing compound option for character controllers

Cherrypicking c31d921 onto 117edbb

6 years agoAnimation ghosting: when tweaking start-end values don't clamp user
Antony Riakiotakis [Thu, 19 Feb 2015 11:10:44 +0000 (12:10 +0100)]
Animation ghosting: when tweaking start-end values don't clamp user
input, instead make sure the end-start values are sane instead

6 years agoGuardedalloc: Reset peak memory should set peak to currently allocated memory
Sergey Sharybin [Thu, 19 Feb 2015 08:14:06 +0000 (13:14 +0500)]
Guardedalloc: Reset peak memory should set peak to currently allocated memory

Otherwise statistics could be really funny looking.

6 years agoCycles: Make sphere and tube image mapping friendly with OpenCL
Sergey Sharybin [Thu, 19 Feb 2015 07:52:48 +0000 (12:52 +0500)]
Cycles: Make sphere and tube image mapping friendly with OpenCL

OpenCL doesn't let you to get address of vector components, which
is kinda annoying. On the other hand, maybe now compiler will have
more chances to optimize something out.

6 years agoCycles: Make util_math_fast.h compatible with OpenCL
Sergey Sharybin [Thu, 19 Feb 2015 07:29:06 +0000 (12:29 +0500)]
Cycles: Make util_math_fast.h compatible with OpenCL

6 years agoRNA: pass only 0/1 to RNA_property_boolean_set
Campbell Barton [Thu, 19 Feb 2015 01:33:14 +0000 (12:33 +1100)]
RNA: pass only 0/1 to RNA_property_boolean_set

6 years agoRNA: poll functions restricting object types
Campbell Barton [Wed, 18 Feb 2015 23:02:51 +0000 (10:02 +1100)]
RNA: poll functions restricting object types

D1100,D1105,D1106 by @lichtwerk

6 years agoGenerate correct Cycles node setup for quick smoke "fire" preset.
Thomas Dinges [Wed, 18 Feb 2015 23:17:21 +0000 (00:17 +0100)]
Generate correct Cycles node setup for quick smoke "fire" preset.

Patch by Gottfried Hofmann.
Differential Revision:

6 years agoFix T43652: X11 "_NET_WM_PID" not set by Ghost
Campbell Barton [Wed, 18 Feb 2015 22:19:12 +0000 (09:19 +1100)]
Fix T43652:  X11 "_NET_WM_PID" not set by Ghost

D1107 by @kevindietrich

6 years agoGhost/X11 cleanup (reduce variable scope)
Campbell Barton [Wed, 18 Feb 2015 22:02:36 +0000 (09:02 +1100)]
Ghost/X11 cleanup (reduce variable scope)

6 years agoBGE: Fix T41502 Path following jumping
Jorge Bernal [Wed, 18 Feb 2015 22:24:02 +0000 (23:24 +0100)]
BGE: Fix T41502 Path following jumping

New Lock Z velocity parameter was added. This parameter avoid the micro-jumping.
By default it is actived except when you load an old file that it is deactived to keep former behaviour.

Additionally it was solved another issue related with the acceleration: That is the acceleration value was not taked into account and we had always the maximum linear velocity from the beginning of movement. Now the acceleration is taken into account until we reach the maximum velocity.
When you load an old file, the acceleration value is set to the maximum range (1000.f). This way we simulate a maximum velocity constant from the beginning of movement (former behaviour).


Reviewers: moguri, dfelinto, campbellbarton

Reviewed By: campbellbarton

Subscribers: sergey

Differential Revision:

6 years agoFix Cycles OpenCL error with scons, util_math_fast.h was missing.ø
Thomas Dinges [Wed, 18 Feb 2015 21:43:24 +0000 (22:43 +0100)]
Fix Cycles OpenCL error with scons, util_math_fast.h was missing.ø

6 years agoFix minor mistake - only increase size of compositing when stencil -is-
Antony Riakiotakis [Wed, 18 Feb 2015 21:16:04 +0000 (22:16 +0100)]
Fix minor mistake - only increase size of compositing when stencil -is-

6 years agoReport total unfreed memory size on exit
Sergey Sharybin [Wed, 18 Feb 2015 21:08:09 +0000 (02:08 +0500)]
Report total unfreed memory size on exit

Previously only number of unfreed blocks would have been printed,
which might not be totally enough during investigation process.

6 years agoGuardedalloc: Add extra logging and checks in MEM_freeN()
Sergey Sharybin [Wed, 18 Feb 2015 20:58:49 +0000 (01:58 +0500)]
Guardedalloc: Add extra logging and checks in MEM_freeN()

We don't like when NULL is send to MEM_freeN(), but there was some
differences between lockfree and guarded allocators:

- Lockfree would have silently crash, in both release and debug modes
- Guarded allocator would have printed error message, abort in debug
  but keep working in release build.

This commit makes lockfree allocator behavior to match guarded one.

6 years agoCycles: Make aligned allocation to respect WITH_BLENDER_GUARDEDALLOC
Sergey Sharybin [Wed, 18 Feb 2015 20:48:59 +0000 (01:48 +0500)]
Cycles: Make aligned allocation to respect WITH_BLENDER_GUARDEDALLOC

Title pretty says it all actually. Can only briefly mention that we're
indeed entering that state when after applying some WIP patches having
much fuller statistics about memory usage would help giving exact memory

6 years agoCMake: remove expression in endif(...)
Campbell Barton [Wed, 18 Feb 2015 20:44:40 +0000 (07:44 +1100)]
CMake: remove expression in endif(...)

6 years agoCMake: indent & missing header
Campbell Barton [Wed, 18 Feb 2015 20:15:55 +0000 (07:15 +1100)]
CMake: indent & missing header

6 years agoCMake: picky style edit
Campbell Barton [Wed, 18 Feb 2015 20:15:00 +0000 (07:15 +1100)]
CMake: picky style edit

'' relies on this formattng.

6 years agoRNA: assert when non 0/1 values used as bool
Campbell Barton [Wed, 18 Feb 2015 20:08:10 +0000 (07:08 +1100)]
RNA: assert when non 0/1 values used as bool

Prepare for using 'bool' type.

6 years agoRNA: assert on over-sized array index access
Campbell Barton [Wed, 18 Feb 2015 20:01:49 +0000 (07:01 +1100)]
RNA: assert on over-sized array index access

6 years agoRNA: use __func__ for alloc-id's
Campbell Barton [Wed, 18 Feb 2015 19:57:45 +0000 (06:57 +1100)]
RNA: use __func__ for alloc-id's

6 years agoBGE: Fix T42437: Physics/Compound bug
Jorge Bernal [Wed, 18 Feb 2015 18:59:21 +0000 (19:59 +0100)]
BGE: Fix T42437: Physics/Compound bug

Null check to verify that parent has a character controller. Otherwise (i.e empty) it will crash.

Reviewers: moguri, campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agoBGE: Fix T41570: Blender crash when physics createConstraint
Jorge Bernal [Wed, 18 Feb 2015 18:52:54 +0000 (19:52 +0100)]
BGE: Fix T41570: Blender crash when physics createConstraint

Move physicsid type to unsigned long long to avoid crashes on Windows 8.1 64bits.
Other systems also modified to put them inline with this solution.

Reviewers: dfelinto, brita_, moguri, juicyfruit, campbellbarton

Reviewed By: juicyfruit, campbellbarton

Subscribers: juicyfruit

Differential Revision:

6 years agoFix T43716 regression in mask modifier - edges could access out of
Antony Riakiotakis [Wed, 18 Feb 2015 16:58:57 +0000 (17:58 +0100)]
Fix T43716 regression in mask modifier - edges could access out of
bounds indices of vertices.

Issue here is that if we copy edge customdata the MEdge data that were
previously written get overwritten, solution is to write indices and
flags last (probably writing flags is superfluous here).

6 years agoCycles: Initialize "headless" flags on engine initialization
Sergey Sharybin [Wed, 18 Feb 2015 16:16:52 +0000 (21:16 +0500)]
Cycles: Initialize "headless" flags on engine initialization

This flag is global for all the sessions and never changes. so it doesn't
really make sense to pass it around to all sessions and synchronization

Switched to a static member of BlenderSession now, but it's probably more
logical to introduce some sort of BlenderGlobals. Doesn't currently worth
a hassle for a single boolean flag tho.

6 years agoCleanup: Remove unused SD_PHASE_HAS_EVAL flag.
Thomas Dinges [Wed, 18 Feb 2015 15:33:31 +0000 (16:33 +0100)]
Cleanup: Remove unused SD_PHASE_HAS_EVAL flag.

We only have a non-singular volume closure and therefore no need to distinguish it.

6 years agoCleanup for Cycles hair shader ifdefs.
Thomas Dinges [Wed, 18 Feb 2015 14:57:39 +0000 (15:57 +0100)]
Cleanup for Cycles hair shader ifdefs.

sc->T and sc->data2 were behind __HAIR__ ifdef, now they are not anymore, so we can always assign the correct value.

6 years agoCleanup: Remove support for Boost filesystem 2.
Thomas Dinges [Wed, 18 Feb 2015 12:48:16 +0000 (13:48 +0100)]
Cleanup: Remove support for Boost filesystem 2.

This is deprecated since Boost 1.48.

6 years agoNew filebrowser bookmarks: Some minor fix/optimization from latest coverity report.
Bastien Montagne [Wed, 18 Feb 2015 12:17:41 +0000 (13:17 +0100)]
New filebrowser bookmarks: Some minor fix/optimization from latest coverity report.

6 years agoFix Windows build.
Bastien Montagne [Wed, 18 Feb 2015 11:16:31 +0000 (12:16 +0100)]
Fix Windows build.

Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its
own names, as usual...

6 years agoInclude SDL information in system info text.
Sybren A. Stüvel [Wed, 18 Feb 2015 11:07:48 +0000 (12:07 +0100)]
Include SDL information in system info text.

Adds to expose SDL version information.

When SDL is not available on a Linux system, certain Blender features
are silently disabled (like joystick support in the BGE). This change
is the first step towards making it more obvious why something isn't

SDL information is exposed to Python via, in the same way
as OCIO and OIIO information is exposed.

Generated system-info.txt contains SDL loading method (linked or
dynamically loaded by Blender) and SDL version number.

Reviewed by: sergey, campbellbarton

Differential Revision:

6 years agoCleanup: Use bools in BVHParams class.
Thomas Dinges [Wed, 18 Feb 2015 11:05:33 +0000 (12:05 +0100)]
Cleanup: Use bools in BVHParams class.

6 years agoUse clamp to border for brushes or textures can "leak" after rotating
Antony Riakiotakis [Wed, 18 Feb 2015 10:59:55 +0000 (11:59 +0100)]
Use clamp to border for brushes or textures can "leak" after rotating
texture coordinates of brushes (in rake mode).

6 years agoGPencil: RMB menu tools in Outliner works for GP Layers now
Joshua Leung [Wed, 18 Feb 2015 00:01:29 +0000 (13:01 +1300)]
GPencil: RMB menu tools in Outliner works for GP Layers now

It would be even better if these used their own dedicated menu which could include
the protect values too, but this one at least works now

6 years agoGPencil Fix: Added checks to ensure that copy/paste doesn't paste incompatible strokes
Joshua Leung [Tue, 17 Feb 2015 23:08:07 +0000 (12:08 +1300)]
GPencil Fix: Added checks to ensure that copy/paste doesn't paste incompatible strokes

There was a problem with the copy/paste functionality, where it would be possible to
paste 3d strokes into 2D editors, or 2D strokes into the 3D view. The problem with
that though is that these will not show up, and because there's no feedback at the
time, users may end up doing this pasting several times.

6 years agoCycles / BVH: Remove unused temp copy of prim_object.
Thomas Dinges [Wed, 18 Feb 2015 00:12:53 +0000 (01:12 +0100)]
Cycles / BVH: Remove unused temp copy of prim_object.

This will save some memory during BVH Build.

6 years agoQuiet uninitialized mem use for blank cursor
Campbell Barton [Tue, 17 Feb 2015 23:44:28 +0000 (10:44 +1100)]
Quiet uninitialized mem use for blank cursor

harmless but may as well initialize.

6 years agoFix free'd memory use removing constraint
Campbell Barton [Tue, 17 Feb 2015 23:38:21 +0000 (10:38 +1100)]
Fix free'd memory use removing constraint

6 years agoDo not allocate an XRay buffer if compositing is dnot one for offscreen
Antony Riakiotakis [Tue, 17 Feb 2015 22:38:28 +0000 (23:38 +0100)]
Do not allocate an XRay buffer if compositing is dnot one for offscreen

6 years agocleanup & missing break
Campbell Barton [Tue, 17 Feb 2015 22:08:24 +0000 (09:08 +1100)]
cleanup & missing break

6 years agoCycles: Avoid over-allocation in decouple ray marching
Sergey Sharybin [Tue, 17 Feb 2015 20:57:56 +0000 (01:57 +0500)]
Cycles: Avoid over-allocation in decouple ray marching

It could have happened with really long rays and small steps.

Step size will be adjusted to the clamped number of steps in order
to preserve render result compatibility as much as possible.

We should probably reformulate this a bit, so it will give the
same looking results without step tweaks. But this new behavior
should already be much better that it was before.

6 years agoEnsure BLI_stat() return value is checked.
Campbell Barton [Tue, 17 Feb 2015 20:26:10 +0000 (07:26 +1100)]
Ensure BLI_stat() return value is checked.

also add function attrs on BLI_fileops to ensure they're used correctly.

6 years agoAmend to previous own Fix T43684: only use hack on WIN32, and use case-insensitive...
Bastien Montagne [Tue, 17 Feb 2015 20:08:59 +0000 (21:08 +0100)]
Amend to previous own Fix T43684: only use hack on WIN32, and use case-insensitive comparison.

Thanks to Campbell for the headup.

6 years agoFix T38808: Re-opening an image makes absolute
Campbell Barton [Tue, 17 Feb 2015 19:38:10 +0000 (06:38 +1100)]
Fix T38808: Re-opening an image makes absolute

6 years agoFix T43708: Wrong manipulator in individual origin
Campbell Barton [Tue, 17 Feb 2015 19:08:59 +0000 (06:08 +1100)]
Fix T43708: Wrong manipulator in individual origin

Manipulator and actual behavior were out-of-sync with a single edge selected.

6 years agoBMesh: calc_manipulator_stats can only check verts
Campbell Barton [Tue, 17 Feb 2015 18:39:02 +0000 (05:39 +1100)]
BMesh: calc_manipulator_stats can only check verts

Code assumed selection wasn't correctly flushed, which we ensure now.

6 years agoTweak to new UIList bookmarks & co: extend up to ten entries before using scrollbars.
Bastien Montagne [Tue, 17 Feb 2015 18:25:52 +0000 (19:25 +0100)]
Tweak to new UIList bookmarks & co: extend up to ten entries before using scrollbars.

But again, what we really need to fix is UI saving for that temp area...

6 years agoCleanup: Add comment about light_p being modified in one case.
Thomas Dinges [Tue, 17 Feb 2015 18:24:37 +0000 (19:24 +0100)]
Cleanup: Add comment about light_p being modified in one case.

6 years agoCycles: Cleanup after recent changes
Sergey Sharybin [Tue, 17 Feb 2015 18:21:41 +0000 (23:21 +0500)]
Cycles: Cleanup after recent changes

6 years agoFix T43684 (again!): Mighty Windows thinks it’s perfectly sensible to block everyone...
Bastien Montagne [Tue, 17 Feb 2015 18:11:47 +0000 (19:11 +0100)]
Fix T43684 (again!): Mighty Windows thinks it’s perfectly sensible to block everyone during 5 seconds for a mere stat() call on "A:\" path...

For now, just always consider those floppy entries ("A:\" and "B:\") as valid... sigh.

6 years agoSome tweaks to last commit, this is better.
Thomas Dinges [Tue, 17 Feb 2015 18:03:22 +0000 (19:03 +0100)]
Some tweaks to last commit, this is better.

6 years agoCycles: Fix for hair transmission BSDF not returning proper label
Sergey Sharybin [Tue, 17 Feb 2015 17:34:48 +0000 (22:34 +0500)]
Cycles: Fix for hair transmission BSDF not returning proper label

6 years agoCleanup: Deduplicate area light sampling code.
Thomas Dinges [Tue, 17 Feb 2015 17:39:03 +0000 (18:39 +0100)]
Cleanup: Deduplicate area light sampling code.

6 years agoFix crash when rendering to offscreen OpenGL, fix scons build
Antony Riakiotakis [Tue, 17 Feb 2015 17:35:56 +0000 (18:35 +0100)]
Fix crash when rendering to offscreen OpenGL, fix scons build

6 years agoCompositing works with X-Ray.
Antony Riakiotakis [Tue, 17 Feb 2015 17:08:28 +0000 (18:08 +0100)]
Compositing works with X-Ray.

Basically, before drawing X-Rays, we now bind a second depth buffer.
After drawing XRays, we do an extra resolve pass where we overwrite the
non-XRay depth buffer in pixels where the depth is not maximum (which
means background pixel, since depth is cleared before drawing X-Ray

This ensures both scene and X-Rays keep their depth values and are ready
for compositing. Well, the odd effect due to depth discontinuities can be
expected, and X-Rays are a bit more expensive (extra buffer + resolve pass)
but at least X-Rays won't invalidate depth values anymore. Whee!

6 years agoCycles: Small tweaks for Henyey Greenstein closure code.
Thomas Dinges [Tue, 17 Feb 2015 16:44:32 +0000 (17:44 +0100)]
Cycles: Small tweaks for Henyey Greenstein closure code.

* Avoid duplicative fabs(g) check in sample code.
* Avoid dot product in eval code.

Helps like ~1% when Scatter Anisotropy is 0.

6 years agoFix for particle path drawing with black tips.
Lukas Tönne [Tue, 17 Feb 2015 14:20:51 +0000 (15:20 +0100)]
Fix for particle path drawing with black tips.

The last path segment can be shortended due to randomized path length.
In that case the last segment's color vector was not defined.

6 years agoQuick fix/hack for too small 'operator' panel in filebrowser
Bastien Montagne [Tue, 17 Feb 2015 14:15:55 +0000 (15:15 +0100)]
Quick fix/hack for too small 'operator' panel in filebrowser

Real issue is that temp area used to draw modal filebrowser is never saved,
so non of UI 'edits' (like UIList resize, regions resize, panels reorder, etc.)
are ever saved. Should be addressed, but no time for that currently.

6 years agoGPencil: On the fly switching between Drawing and Erasing when using "Continuous...
Joshua Leung [Tue, 17 Feb 2015 14:15:56 +0000 (03:15 +1300)]
GPencil: On the fly switching between Drawing and Erasing when using "Continuous Drawing"

It is now possible to switch between drawing and erasing strokes when in
the modal "Continous Drawing" sessions. This makes the drawing experience
just a little more fluid, saving some unncessary steps to get out of
the editing mode to activate the intended tool.

TODO: Is there interest for tablet support for this too?

6 years agoCycles: Remove empty closure blur code and the corresponding entries in the switch.
Thomas Dinges [Tue, 17 Feb 2015 12:43:12 +0000 (13:43 +0100)]
Cycles: Remove empty closure blur code and the corresponding entries in the switch.

Most compilers will probably optimize that out, but I still don't see a reason to keep it.

6 years agoCycles: Make blender session aware of rendering from command line
Sergey Sharybin [Tue, 17 Feb 2015 11:23:03 +0000 (16:23 +0500)]
Cycles: Make blender session aware of rendering from command line

This way we can do some more aggressive policy about releasing temporary
data during synchronization.

6 years agoFix T43706: Creating a directory in the file browser (by typing it in the file path...
Sergey Sharybin [Tue, 17 Feb 2015 10:50:12 +0000 (15:50 +0500)]
Fix T43706: Creating a directory in the file browser (by typing it in the file path) crashes Blender

Issue was caused by 2e9105c, free() does nothing if pointer is NULL, but guarded
allocator expects you to not free NULL.

6 years agoFix T43697, grid drawing over wires and grease pencil. Props to Julian
Antony Riakiotakis [Tue, 17 Feb 2015 10:37:20 +0000 (11:37 +0100)]
Fix T43697, grid drawing over wires and grease pencil. Props to Julian
for figuring out a simple solution to that :)