blender.git
6 years agoBuild file macro for testing unordered_map C++ container support.
Lukas Tönne [Tue, 25 Mar 2014 08:21:30 +0000 (09:21 +0100)]
Build file macro for testing unordered_map C++ container support.

Using unordered_map and unordered_set C++ container types currently
requires careful testing or usage of boost, due to the various confusing
C++ version differences in include paths and namespaces.

Libmv defines tests for these cases in cmake and scons, such that ceres
can use any available implementation, or fall back too std::map/std::set
if none can be found.

This patch generalizes this buildfile code by providing a Blender macro.
* cmake: defines both the variables used by libmv at them moment as well
as 2 variables UNORDERED_MAP_INCLUDE_PREFIX and UNORDERED_MAP_NAMESPACE,
which can later be used in other C++ parts for convenience.
* scons: adds a tool script returning the include prefix and namespace.
Libmv checks these to define the appropriate definitions for ceres.

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

6 years agoFix T39395: Switching to "Textured solid" and "GLSL" view will cause the FPS drop...
Sergey Sharybin [Tue, 25 Mar 2014 06:30:41 +0000 (12:30 +0600)]
Fix T39395: Switching to "Textured solid" and "GLSL" view will cause the FPS drop to 0

Issue was caused by the cache limitor which was removing 4k textures from the
memory when accessing other images.

This is pretty much awful situation and solved by making it so only image sequences
and movies ace cache-guarded.

Could be optimized further so images used by viewport are not being freed, but
that's much more tricky to do..

This is a nice candidature for 'a'.

6 years agoFix T39397: Leaving leaving camera from quadview set ortho
Campbell Barton [Tue, 25 Mar 2014 03:21:50 +0000 (14:21 +1100)]
Fix T39397: Leaving leaving camera from quadview set ortho

6 years agoCode cleanup: Removing KX_KetsjiEngine::m_drawingmode
Mitchell Stokes [Tue, 25 Mar 2014 03:11:11 +0000 (20:11 -0700)]
Code cleanup: Removing KX_KetsjiEngine::m_drawingmode

The rasterizer is already handling this, and there is
no need to duplicate the data.

6 years agoFix T38929: BGE: Strange behaving from addObject after trying to add an nonexisting...
Mitchell Stokes [Tue, 25 Mar 2014 00:57:02 +0000 (17:57 -0700)]
Fix T38929: BGE: Strange behaving from addObject after trying to add an nonexisting overlay scene

If bge.logic.addScene() could not find the scene to add it would add the
first scene again, which is just silly. Now, if no scene is found, a warning
is printed and nothing is added.

6 years agoAdd a slight shadow to the radial operator text. It helps when brush
Antony Riakiotakis [Mon, 24 Mar 2014 23:24:40 +0000 (01:24 +0200)]
Add a slight shadow to the radial operator text. It helps when brush
color is close to the cursor color.

6 years agoCode cleanup: function calls
Campbell Barton [Mon, 24 Mar 2014 23:10:00 +0000 (10:10 +1100)]
Code cleanup: function calls

6 years agoCode cleanup: rename easing functions with BLI_easing_ prefix
Campbell Barton [Mon, 24 Mar 2014 22:57:37 +0000 (09:57 +1100)]
Code cleanup: rename easing functions with BLI_easing_ prefix

6 years agoCode cleanup: rename BLI_math_easing to BLI_easing
Campbell Barton [Mon, 24 Mar 2014 21:00:51 +0000 (08:00 +1100)]
Code cleanup: rename BLI_math_easing to BLI_easing

Many hard coded values and really specific to time & keyframes.

6 years agoCode cleanup:
Antony Riakiotakis [Mon, 24 Mar 2014 21:46:30 +0000 (23:46 +0200)]
Code cleanup:

* Separate some common code for sculpt raycasting
* Cleanup to radial operator commit

6 years agoUI naming:
Antony Riakiotakis [Mon, 24 Mar 2014 21:17:01 +0000 (23:17 +0200)]
UI naming:

Change topology panel labels to "dyntopo"

6 years agoCode cleanup: ifdef debug only checks and simplify manifold test
Campbell Barton [Mon, 24 Mar 2014 20:52:22 +0000 (07:52 +1100)]
Code cleanup: ifdef debug only checks and simplify manifold test

6 years agoFix T39262: Regression in 2.70, wire-frame editmode tool replaced all
Campbell Barton [Mon, 24 Mar 2014 20:49:55 +0000 (07:49 +1100)]
Fix T39262: Regression in 2.70, wire-frame editmode tool replaced all

6 years agoFix possible use of invalid face index with wireframe tool
Campbell Barton [Mon, 24 Mar 2014 10:04:13 +0000 (21:04 +1100)]
Fix possible use of invalid face index with wireframe tool

6 years agoImprovements to radial control operator:
Antony Riakiotakis [Mon, 24 Mar 2014 20:50:02 +0000 (22:50 +0200)]
Improvements to radial control operator:

* Factor values get a minimum circle too, which denotes the maximum
value. This makes it easy to set the maximum value while previously
maximum was at center, much more difficult to set exactly.

* Added text indication of value at center of the widget.

6 years agoFix for own mistake in rB83f2012300acadafd359307e7a00bd71e67e3fd7: used
Lukas Tönne [Mon, 24 Mar 2014 19:54:50 +0000 (20:54 +0100)]
Fix for own mistake in rB83f2012300acadafd359307e7a00bd71e67e3fd7: used
bool instead of int.

Thanks to Campbell Barton for noticing.

6 years agoFix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
Bastien Montagne [Mon, 24 Mar 2014 16:39:17 +0000 (17:39 +0100)]
Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height

6 years agoOSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine withou...
Jens Verwiebe [Mon, 24 Mar 2014 12:33:07 +0000 (13:33 +0100)]
OSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine without on OSX 10.9, fixes < 10.9

6 years agoFix T39341: Cycles Rendered view laggy while using particles.
Lukas Tönne [Mon, 24 Mar 2014 11:53:36 +0000 (12:53 +0100)]
Fix T39341: Cycles Rendered view laggy while using particles.

There are a couple of bugs that come together here:
* Particle hacks: extra modifier stack evaluation just for particles in
rna_Object_create_duplilist. This is where the primary issue stems from,
the "for_render" setting replaced the G.is_rendering flag in threaded
depsgraph. This causes particles to recalculate the entire modifier
stack with _render_ settings instead of viewport settings now. Fixed by
taking the 'preview' parameter in Cycles into account.
* Buggy skin modifier: The skin modifier generates a different amount of
vertices and faces **on every execution**. This must be looked at
separately, but it could be another reason why cycles constantly
restarted the sync process.
* Particles get re-distributed randomly every time (changing seed). This
could be caused just by the broken skin modifier, but might still be an
issue when simply rendering with cycles, since the psys will be
evaluated for render settings, if just temporarily.

6 years agoFix T39383: Blender crash when renaming bone in outliner (weight paint mode).
Bastien Montagne [Mon, 24 Mar 2014 12:08:29 +0000 (13:08 +0100)]
Fix T39383: Blender crash when renaming bone in outliner (weight paint mode).

Outliner rename callback is supposed to activate affected element before actually renaming,
but for bones this was not working because the function used to activate the object explicitely
ignored ID_OB case! Added a bool flag to allow handing this case without (possibly) breaking
the other usecases.

6 years agoRemove the code which checked whether early object update skip didn't fail
Sergey Sharybin [Mon, 24 Mar 2014 09:15:43 +0000 (15:15 +0600)]
Remove the code which checked whether early object update skip didn't fail

Was a safety check which never triggered, so likely could be removed now.

6 years agoFix T39318: Blender 2.70 crash when I link an asset
Sergey Sharybin [Mon, 24 Mar 2014 09:10:16 +0000 (15:10 +0600)]
Fix T39318: Blender 2.70 crash when I link an asset

Issue is a regression since threaded objetc update and caused
by the fact that some objects might share the same proxy object.

It's all fine but object_handle_update() will call update for
a proxy object which screws up threaded update.

The thing is, proxy object is marked as depending on a scene
object and such a call makes it so the children objetc is
being updated.

This is really bad and depsgraph is to take all responsibility
on updating the proxy objects.

So for now used a simple solution (which is safe to backport
to 'a') which is skipping proxy update if the scene update is
threaded and based on the DAG traversal.

There are some still areas which calls object update directly
and for that cases proxy object is still being updated from
object_handle_update().

6 years agoFix T39331: Dissolve vertex crash
Campbell Barton [Mon, 24 Mar 2014 05:37:10 +0000 (16:37 +1100)]
Fix T39331: Dissolve vertex crash

6 years agoCode cleanup: float/double promotion
Campbell Barton [Mon, 24 Mar 2014 02:31:14 +0000 (13:31 +1100)]
Code cleanup: float/double promotion

6 years agoCode Cleanup: PBVH, avoid sqrt and use bool for raycast functions
Campbell Barton [Mon, 24 Mar 2014 02:21:58 +0000 (13:21 +1100)]
Code Cleanup: PBVH, avoid sqrt and use bool for raycast functions

6 years agoCode cleanup: style
Campbell Barton [Mon, 24 Mar 2014 01:59:36 +0000 (12:59 +1100)]
Code cleanup: style

6 years agoFix for invalid abs() use (from daccaa7)
Campbell Barton [Mon, 24 Mar 2014 01:57:18 +0000 (12:57 +1100)]
Fix for invalid abs() use (from daccaa7)

6 years agoChange to sampling: Take biggest triangle side as detail size on
Antony Riakiotakis [Sun, 23 Mar 2014 19:49:01 +0000 (21:49 +0200)]
Change to sampling: Take biggest triangle side as detail size on
intersection, since detail determines the maximum allowed triangle edge
size

6 years agoFix T39356: unsatisfied with uv pin unpin button, small bug
Bastien Montagne [Sun, 23 Mar 2014 13:30:10 +0000 (14:30 +0100)]
Fix T39356: unsatisfied with uv pin unpin button, small bug

6 years agoFix typo in API documentation.
Thomas Dinges [Sun, 23 Mar 2014 11:31:08 +0000 (12:31 +0100)]
Fix typo in API documentation.

6 years agoCycles Standalone: XML Updates for Branched Path Multi Light.
Thomas Dinges [Sun, 23 Mar 2014 11:29:30 +0000 (12:29 +0100)]
Cycles Standalone: XML Updates for Branched Path Multi Light.

6 years agoCode cleanup: Move AA Samples variable, this is not exclusive to Branched Path.
Thomas Dinges [Sun, 23 Mar 2014 11:12:59 +0000 (12:12 +0100)]
Code cleanup: Move AA Samples variable, this is not exclusive to Branched Path.

6 years agoFix T39351: Blender crashes when enabling Mesh Analysis.
Lukas Tönne [Sun, 23 Mar 2014 10:35:52 +0000 (11:35 +0100)]
Fix T39351: Blender crashes when enabling Mesh Analysis.

This code was using a //const// char array for fallback colors and then
writing to it (hidden to the compiler by explicit casting). Bad!

6 years agoFix T39353: Make Single User menu entries do not work correctly.
Bastien Montagne [Sun, 23 Mar 2014 10:33:40 +0000 (11:33 +0100)]
Fix T39353: Make Single User menu entries do not work correctly.

6 years agoFix T39347: Pressing backspace during empty number input for translation results...
Bastien Montagne [Sun, 23 Mar 2014 09:48:47 +0000 (10:48 +0100)]
Fix T39347: Pressing backspace during empty number input for translation results in 0.5828 increments

Interesting one, took me hours to understand the issue - a stupid typo checking the wrong value against the wrong flag (present since 2008!).

6 years agoFurther tweaking to numinput - enhance 'Reset' behavior.
Bastien Montagne [Sat, 22 Mar 2014 22:20:14 +0000 (23:20 +0100)]
Further tweaking to numinput - enhance 'Reset' behavior.

Ways how it was resetting its values (backspace) was far from satisfaying. Now, e.g. when scaling, it will reset at 1 (or whatever mouse-value it was before entering numinput), instead of some ugly 0.0 value.

Implementation details:
* Values passed to applyNumInput() are stored as default ones (val_org), if it is not EDITED.
* applyNumInput() returns a boolean saying whether it actually set values or not.
* When backspace hits its ultimate step (where it clears all EDITED flags and reset all default values),
  it sets a temp FAKE_EDITED flag that will be used to apply one last time values of numinput
  (so that default values actually get applied!).

There are important things to note here for code using numinput:
* Values passed to applyNumInput() should be valid and are stored as default ones (val_org), if it is not EDITED.
* bool returned by applyNumInput should be used to decide whether to apply numinput-specific post-process to data.
* *Once applyNumInput has been called*, hasNumInput returns a valid value to decide whether to use numinput as drawstr source or not.

Those two steps have to be separated (so do not use a common call to hasNumInput() to do both in the same time!).

6 years agoUse eyeliner cursor for sampling. Thanks to Thomas Beck for the
Antony Riakiotakis [Sat, 22 Mar 2014 22:33:55 +0000 (00:33 +0200)]
Use eyeliner cursor for sampling. Thanks to Thomas Beck for the
suggestion :)

6 years agoSlight cosmetic improvement on UI. Add eyedropper icon to detail sample
Antony Riakiotakis [Sat, 22 Mar 2014 22:01:46 +0000 (00:01 +0200)]
Slight cosmetic improvement on UI. Add eyedropper icon to detail sample
operator and move it next to the detail slider

6 years agoDetail sampling operator
Antony Riakiotakis [Sat, 22 Mar 2014 21:35:07 +0000 (23:35 +0200)]
Detail sampling operator

Located on topology panel.

To use just click on button and click on mesh.
Operator will just use the dimensions of the triangles below to set the
constant detail setting.

Also changed pair of scale/detail size with nice separate float
percentage value.

6 years agoCycles: SSE optimization for line segments/ribbons hair
Sv. Lockal [Sat, 22 Mar 2014 20:45:48 +0000 (00:45 +0400)]
Cycles: SSE optimization for line segments/ribbons hair

Gives ~11% speedup for hair.blend, ~10% for koro_final.blend

Also extract few common subexpressions in hair calculation.

Reviewed By: brecht

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

6 years agoFlood fill for dyntopo constant detail mode.
Antony Riakiotakis [Sat, 22 Mar 2014 15:47:18 +0000 (17:47 +0200)]
Flood fill for dyntopo constant detail mode.

Nothing spectacular here, fill tools are easy. Just take the dyntopo
code and repeat until nothing more to do.

The tool can be located in the dyntopo panel when the dyntopo constant
detail is on.

Also added scale factor for constant detail. This may change when detail
sampling gets in, I am not very happy with having two numbers here,
still it will give some more control for now.

6 years agoWarning cleanup:
Antony Riakiotakis [Sat, 22 Mar 2014 12:41:38 +0000 (14:41 +0200)]
Warning cleanup:

* Comparison in utf detection code always failed
* Cast to integer to silence grumpy 64bit gcc

6 years agoCleanup: Restrict the debug -gline-tables-only to cxx_debug in cycles and spelling
Jens Verwiebe [Sat, 22 Mar 2014 10:33:21 +0000 (11:33 +0100)]
Cleanup: Restrict the debug -gline-tables-only to cxx_debug in cycles and spelling

6 years agoA few spelling fixes
Joshua Leung [Sat, 22 Mar 2014 03:57:57 +0000 (16:57 +1300)]
A few spelling fixes

6 years agoMore driver linting messages - procedural animation and no-variables for average...
Joshua Leung [Sat, 22 Mar 2014 03:56:17 +0000 (16:56 +1300)]
More driver linting messages - procedural animation and no-variables for average,etc.

Inspired by T39315, this commit adds a few more driver "linting" messages used for
providing users with tips on how to use drivers better. This time, we specifically
address 2 cases:

1) Drivers being abused for procedural animation, due to the misconception that
   procedurally generating F-Curves using F-Modifiers means that drivers are needed
   to wire such procedural motion-sources to properties.
2) Setting up Average/Sum/Min/Max driver types without any input variables - you can't
   expect anything to happen (unless of course, your intention was to lock the property
   to 0.0)

6 years agoPossible fix for T39330 period key is ignored in transform operations
Antony Riakiotakis [Fri, 21 Mar 2014 19:06:49 +0000 (21:06 +0200)]
Possible fix for T39330 period key is ignored in transform operations

Not 100% certain if this fixes, I will ask the user to verify through
buildbot.

6 years agoFix T39279 Vertex paint modes do not work well with mirror modifier
Antony Riakiotakis [Fri, 21 Mar 2014 18:37:00 +0000 (20:37 +0200)]
Fix T39279 Vertex paint modes do not work well with mirror modifier

Issue here is that coordinates used for projection would not fit the
closest candidate. So it was possible to paint against the mirrored part
of the mesh, which would get clipped on reprojection.

Fix avoids reprojection by storing squared distance, and screen space
coordinates, which we will need again later anyway. Also we now always
paint against the closest vertex always. This is ensured because squared
distances for uninitialized vertices will be MAXFLOAT, thus failing the
strength test.

6 years agoCompile fix for Windows, M_PI was undefined.
Thomas Dinges [Fri, 21 Mar 2014 16:46:18 +0000 (17:46 +0100)]
Compile fix for Windows, M_PI was undefined.

6 years agoCycles Standalone: Support for relative paths and string OSL parameters.
Thomas Dinges [Fri, 21 Mar 2014 16:22:41 +0000 (17:22 +0100)]
Cycles Standalone: Support for relative paths and string OSL parameters.

Patch by John Haddon.
Differential Revision: https://developer.blender.org/D418

6 years agoForgot to remove test printf
Jens Verwiebe [Fri, 21 Mar 2014 14:32:07 +0000 (15:32 +0100)]
Forgot to remove test printf

6 years agoSculpt: Fix non openMP threads not set correct and use optimal omp threadcount for OSX
Jens Verwiebe [Fri, 21 Mar 2014 14:26:50 +0000 (15:26 +0100)]
Sculpt: Fix non openMP threads not set correct and use optimal omp threadcount for OSX
- i empirically found that using HT just gives overhead, even possibly slowing things down
- i propose other OS test this too again
- switching threaded on/off did not restored single threaded case ( credits to Sergey )

6 years agoFix T39323: Animation playback is not synchronized when Screen Layout changes.
Bastien Montagne [Fri, 21 Mar 2014 14:15:24 +0000 (15:15 +0100)]
Fix T39323: Animation playback is not synchronized when Screen Layout changes.

Own regression in rBd2a5ea04ed84.

This commit should be included if we do a 2.70 'a' release.

6 years agoPatch T22084: Robert Penner Easing Equations for FCurves
Joshua Leung [Fri, 21 Mar 2014 13:50:24 +0000 (02:50 +1300)]
Patch T22084: Robert Penner Easing Equations for FCurves

This commit introduces support for a number of new interpolation types
which are useful for motion-graphics work. These define a number of
"easing equations" (basically, equations which define some preset
ways that one keyframe transitions to another) which reduce the amount
of manual work (inserting and tweaking keyframes) to achieve certain
common effects. For example, snappy movements, and fake-physics such
as bouncing/springing effects.

The additional interpolation types introduced in this commit can be found
in many packages and toolkits (notably Qt and all modern web browsers).
For more info and a few live demos, see [1] and [2].

Credits:
* Dan Eicher (dna)              - Original patch
* Thomas Beck (plasmasolutions) - Porting/updating patch to 2.70 codebase
* Joshua Leung (aligorith)      - Code review and a few polishing tweaks

Additional Resources:
[1] http://easings.net
[2] http://www.robertpenner.com/easing/

6 years agoUse the new BKE_libblock_copy_nolib function for bNodeTree datablocks
Lukas Tönne [Fri, 21 Mar 2014 13:07:49 +0000 (14:07 +0100)]
Use the new BKE_libblock_copy_nolib function for bNodeTree datablocks
as well.

These were already doing the same thing, just not as nice. Only
difference is the do_action argument (false for BKE_libblock_copy_nolib)
but this is of no consequence because the function is only called for
trees nested inside material, scene, etc., which never have own actions.

6 years agoFix T39209: Localizing materials could cause heisenbug with concurrent
Sergey Sharybin [Fri, 21 Mar 2014 12:44:38 +0000 (13:44 +0100)]
Fix T39209: Localizing materials could cause heisenbug with concurrent
depsgraph updates.

Material datablocks were localized by first making a regular datablock
copy, which always gets inserted into the bmain list, and then removing
it again from bmain.

Problem is that this localization happens in preview threads, which can
run while the depsgraph is also updating GPU materials. In case the
copying of materials takes any amount of time, this can cause the
depsgraph call to material_changed to use an invalid, localized material
and access invalid GPUMaterial lists which have already been freed for
the actual material.

Solution is to not add localized datablocks to the bmain lists in the
first place. bmain should be totally immutable during preview or render
threads.

6 years agoFix T39312 Multipling two values in the Transform Tools Number Input not possible.
Bastien Montagne [Fri, 21 Mar 2014 11:05:13 +0000 (12:05 +0100)]
Fix T39312 Multipling two values in the Transform Tools Number Input not possible.

There was actually a few bugs in new event handling of numinput :/

In case of 2.70 'a' release, this commit should be considered imho.

6 years agoAttempt to fix compilation error with msvc2013
Sergey Sharybin [Fri, 21 Mar 2014 10:06:30 +0000 (16:06 +0600)]
Attempt to fix compilation error with msvc2013

6 years agoUpdate Eigen to version 3.2.1
Sergey Sharybin [Fri, 21 Mar 2014 10:04:53 +0000 (16:04 +0600)]
Update Eigen to version 3.2.1

Main purpose of this is to have SparseLU solver which
we can use now as a replacement to opennl library.

6 years agoFix T39305: Matcap Crash when using Material Nodes in Blender Internal
Sergey Sharybin [Fri, 21 Mar 2014 09:15:43 +0000 (15:15 +0600)]
Fix T39305: Matcap Crash when using Material Nodes in Blender Internal

This is a regression in d34d745, texture painting didn't set is_paint
if draw type < DT_SOLID which is weird.

6 years agoFix T39306: Backface culling in Multitexture always uses mat game settings
Bastien Montagne [Fri, 21 Mar 2014 09:11:54 +0000 (10:11 +0100)]
Fix T39306: Backface culling in Multitexture always uses mat game settings

Trying to use mat game settings in 3DView makes sense - but only when we are using "Game Engine" as 'renderer'!

Note GLSL code completely ignores mat game settings currently, could be added too...

6 years agoFix T38051: Even if Color Management is disabled, it is still applied to the background
Sergey Sharybin [Fri, 21 Mar 2014 08:06:44 +0000 (14:06 +0600)]
Fix T38051: Even if Color Management is disabled, it is still applied to the background

6 years agoFix T39186: Matroska audio support (mka, mkv without video stream)
Sergey Sharybin [Fri, 21 Mar 2014 07:52:37 +0000 (13:52 +0600)]
Fix T39186: Matroska audio support (mka, mkv without video stream)

.mka files were considered image files when adding to sequencer
using drag-n-drop.

6 years agoFix T39207: FCurve evaluation regressions following 2aff243 (again)
Joshua Leung [Fri, 21 Mar 2014 01:24:15 +0000 (14:24 +1300)]
Fix T39207: FCurve evaluation regressions following 2aff243 (again)

Yet another attempt at fixing the problems here. This time, I've added a new
function/version of the binary search utility so that we can pass in custom
thresholds (Note: This ability is only used for evaluation currently, with
everything else using a wrapper which still uses the old default threshold),
making it ok to start trusting the "exact" parameter.

6 years agoDebug prints weren't getting triggered, since they no longer use the old flag
Joshua Leung [Thu, 20 Mar 2014 23:55:10 +0000 (12:55 +1300)]
Debug prints weren't getting triggered, since they no longer use the old flag

6 years agoFollow up to the previous commit
Sergey Sharybin [Thu, 20 Mar 2014 17:45:29 +0000 (23:45 +0600)]
Follow up to the previous commit

Just update to the changelog

6 years agoUpdate Libmv to latest upstream
Sergey Sharybin [Thu, 20 Mar 2014 17:03:11 +0000 (23:03 +0600)]
Update Libmv to latest upstream

This is mainly a maintaince commit which syncs changes
between Blender and Libmv upstream also bringing new
GLog version.

This GLog version is presumably have better support of
MinGW from "the box".

This commit is also aimed to make further 3d part libs
update easier.

6 years agoFix for clang build warnings: ATTR_WARN_UNUSED_RESULT is used after
Lukas Tönne [Thu, 20 Mar 2014 09:08:19 +0000 (10:08 +0100)]
Fix for clang build warnings: ATTR_WARN_UNUSED_RESULT is used after
the inline definitions are included, which gives lots of warnings
"attribute declaration must precede definition".

See also rB83617429cf28f2a19e991a0f71d892fc159a4419

6 years agoCode cleanup: use bools
Campbell Barton [Thu, 20 Mar 2014 11:56:28 +0000 (22:56 +1100)]
Code cleanup: use bools

6 years agoExtend workaround to all OS :avoid link failure with clang 3.4 debug
Jens Verwiebe [Thu, 20 Mar 2014 11:38:45 +0000 (12:38 +0100)]
Extend workaround to all OS  :avoid link failure with clang 3.4 debug

6 years agoFix T39270: Since as the Move Clip Editor have only two modes, menu on tab is needless
Sergey Sharybin [Thu, 20 Mar 2014 10:08:42 +0000 (16:08 +0600)]
Fix T39270: Since as the Move Clip Editor have only two modes, menu on tab is needless

6 years agoCode cleanup: use bool/true/false in clip editor
Sergey Sharybin [Thu, 20 Mar 2014 09:52:00 +0000 (15:52 +0600)]
Code cleanup: use bool/true/false in clip editor

6 years agoCode cleanup: use true/false in sequencer functions
Sergey Sharybin [Thu, 20 Mar 2014 09:45:20 +0000 (15:45 +0600)]
Code cleanup: use true/false in sequencer functions

6 years agoFix T39141: Video Sequencer Proxies don't take into account Strip Input Offset (or...
Sergey Sharybin [Thu, 20 Mar 2014 09:08:23 +0000 (15:08 +0600)]
Fix T39141: Video Sequencer Proxies don't take into account Strip Input Offset (or strip modifiers)

Basically issue was caused by the fact that strip for proxy has been
post-processed but proxy files were considered pre-processed. This lead
to situation of postprocessing being applied twice.

6 years agoFix for crash generating docs (enums with only callbacks)
Campbell Barton [Thu, 20 Mar 2014 08:17:08 +0000 (19:17 +1100)]
Fix for crash generating docs (enums with only callbacks)

6 years agoFix for crash happening on blender exit after the bake
Sergey Sharybin [Thu, 20 Mar 2014 07:15:27 +0000 (13:15 +0600)]
Fix for crash happening on blender exit after the bake

The issue is caused by 1a79abdad, and annoyingly it's a regression
since 2.69, so if we do 'a', this commit should be ported there.

6 years agoBGE: Adding support for the Cast Only material option.
Mitchell Stokes [Mon, 27 Jan 2014 03:28:26 +0000 (19:28 -0800)]
BGE: Adding support for the Cast Only material option.

Note: This does not add support for the option in the viewport.

6 years agoFix T39271: Crash in MCE with "p" shortcut without clip
Sergey Sharybin [Thu, 20 Mar 2014 06:39:02 +0000 (12:39 +0600)]
Fix T39271: Crash in MCE with "p" shortcut without clip

Weird nobody noticed this before, issue exists in 2.69 as well..

6 years agoFix T36566: 2D filters broken in the Blenderplayer when using side by side stereo
Mitchell Stokes [Thu, 20 Mar 2014 05:33:26 +0000 (22:33 -0700)]
Fix T36566: 2D filters broken in the Blenderplayer when using side by side stereo

GPC_Canvas::GetWindowArea() and KX_BlenderCanvas::GetWindowArea() are tracking two
different things. The 2d filter system doesn't actually need the window area and
can get by just using the viewport dimensions, which it now does. The GetWindowArea()
mess should probably be cleaned up.

6 years agoView3D: remove orbit snapping LUT, allow to snap axis but not roll
Campbell Barton [Thu, 20 Mar 2014 04:19:02 +0000 (15:19 +1100)]
View3D: remove orbit snapping LUT, allow to snap axis but not roll

6 years agoMath Lib: add angle_qt functions
Campbell Barton [Thu, 20 Mar 2014 03:39:32 +0000 (14:39 +1100)]
Math Lib: add angle_qt functions

6 years agoView3D: avoid matrix multiply using ED_view3d_boundbox_clip
Campbell Barton [Thu, 20 Mar 2014 01:17:44 +0000 (12:17 +1100)]
View3D: avoid matrix multiply using ED_view3d_boundbox_clip

6 years agoCode cleanup: comment unused OpenGL util functions
Campbell Barton [Thu, 20 Mar 2014 00:54:32 +0000 (11:54 +1100)]
Code cleanup: comment unused OpenGL util functions

6 years agoError in last commit
Campbell Barton [Thu, 20 Mar 2014 00:49:01 +0000 (11:49 +1100)]
Error in last commit

6 years agoVertex Paint: inverted line drawing, white lines were often hard to see
Campbell Barton [Thu, 20 Mar 2014 00:44:48 +0000 (11:44 +1100)]
Vertex Paint: inverted line drawing, white lines were often hard to see

6 years agoVertex Paint: use solid shading, shadeless in wire (like wpaint)
Campbell Barton [Thu, 20 Mar 2014 00:33:33 +0000 (11:33 +1100)]
Vertex Paint: use solid shading, shadeless in wire (like wpaint)

6 years agoFix kdopbvh incorrect checks for failed allocs
Campbell Barton [Wed, 19 Mar 2014 23:49:30 +0000 (10:49 +1100)]
Fix kdopbvh incorrect checks for failed allocs

also assert for invalid args

6 years agoCode cleanup: de-triplicate add menu/toolbars, also style edits
Campbell Barton [Wed, 19 Mar 2014 14:32:44 +0000 (01:32 +1100)]
Code cleanup: de-triplicate add menu/toolbars, also style edits

6 years agoFix for Layout.operator_enum ignoring alignment
Campbell Barton [Wed, 19 Mar 2014 14:15:34 +0000 (01:15 +1100)]
Fix for Layout.operator_enum ignoring alignment

6 years agoUsual UI messages fixes...
Bastien Montagne [Wed, 19 Mar 2014 14:25:10 +0000 (15:25 +0100)]
Usual UI messages fixes...

6 years agoFix T39233: Face assigned textures bake too bright
Sergey Sharybin [Wed, 19 Mar 2014 14:21:46 +0000 (20:21 +0600)]
Fix T39233: Face assigned textures bake too bright

Shade input wasn't initialized properly for texture baking.

6 years agoA simpler fix for the "clive" part of T39207 without the precision granularity risks
Joshua Leung [Wed, 19 Mar 2014 13:22:42 +0000 (02:22 +1300)]
A simpler fix for the "clive" part of T39207 without the precision granularity risks

6 years agoFix T39207: FCurve evaluation regressions following 2aff243
Joshua Leung [Wed, 19 Mar 2014 13:19:35 +0000 (02:19 +1300)]
Fix T39207: FCurve evaluation regressions following 2aff243

This commit attempts to fix some of the FCurve evaluation regressions arising from
an earlier commit to speed up the process using binary search. Further tweaks may still
be needed though to get this to an acceptable level of reliability (namely, tuning the
threshold defining which keyframes get considered "close together"). Since we're still
in an early stage of the 2.71 dev cycle, for now it's still worth trying to get this
working instead of simply reverting this (which can still be done later if it proves too
problematic).

Specific fixes:
* The previous code was somewhat dangerous in that it allowed out-of-bounds accessing
  of memory when a == 0. It turns out this was more common than originally anticipated
  (as the assert I added here ended up failing in the "action_bug.blend" file in the report)
* Tweaked the code used to test for closely-spaced points so that the "Clive.blend" example
  for driver curves won't fail. The approach used here has the downside though that
  since "exact" uses a might coarser threshold for equality, there may be some precision
  loss issues causing backwards compat issues (namely with closely spaced keyframes, or
  for certain NLA strips).

For now, I've left in some debug prints that can be enabled by running Blender in debug
mode (i.e. "blender -d"), which can provide some useful tuning info should we need to
look more into our approach here.

6 years agoFix T39260: "Redo Last" operator popup shows macro operator labels twice.
Lukas Tönne [Wed, 19 Mar 2014 12:18:43 +0000 (13:18 +0100)]
Fix T39260: "Redo Last" operator popup shows macro operator labels twice.

The popup was showing an explicit uiItemL as well as using the
UI_LAYOUT_OP_SHOW_TITLE flag. Both do the exact same thing.

6 years agoFix `bpy.types.Operator.bl_rna.foobar` not working since rBfe094eaf20.
Bastien Montagne [Wed, 19 Mar 2014 11:43:29 +0000 (12:43 +0100)]
Fix `bpy.types.Operator.bl_rna.foobar` not working since rBfe094eaf20.

When path to resolve "finishes" on a collection prop, do not erase the returned prop!

This caused py's path_resolve to return same PointerRNA as the one passed as parameter, leading to
inifinte recursion in Operator's accessor func (__getattribute__)...

6 years agoUps, forgot to remove something i just placed temporary …
Jens Verwiebe [Wed, 19 Mar 2014 10:26:41 +0000 (11:26 +0100)]
Ups, forgot to remove something i just placed temporary …

6 years agoOSX/bullet/scons: a better workaround for clang 3.4 issues with actual bullet, accord...
Jens Verwiebe [Wed, 19 Mar 2014 10:21:24 +0000 (11:21 +0100)]
OSX/bullet/scons: a better workaround for clang 3.4 issues with actual bullet, according cmake ( less speed penalty )

6 years agoFix T39247
Martijn Berger [Wed, 19 Mar 2014 06:36:34 +0000 (07:36 +0100)]
Fix T39247

Changes to interpolation break texture allocation on sm35 and greater.

6 years agoCode cleanup: unreachable break/return
Campbell Barton [Wed, 19 Mar 2014 01:46:33 +0000 (12:46 +1100)]
Code cleanup: unreachable break/return

6 years agoUI: Add splash link to gooseberry (remove user community link)
Campbell Barton [Tue, 18 Mar 2014 20:14:56 +0000 (07:14 +1100)]
UI: Add splash link to gooseberry (remove user community link)

6 years agoCode cleanup: double/float
Campbell Barton [Tue, 18 Mar 2014 20:07:59 +0000 (07:07 +1100)]
Code cleanup: double/float