10 years agoCycles:
Brecht Van Lommel [Fri, 2 Dec 2011 14:26:28 +0000 (14:26 +0000)]
* Fix broken compile of test app.
* Fix some warnings compiling with gcc for 32 bit.
* More tweaks to avoid extended precision issue from #29301.

10 years agoRename clip proxy rebuild function so it's no longer called in the same way
Sergey Sharybin [Fri, 2 Dec 2011 13:07:39 +0000 (13:07 +0000)]
Rename clip proxy rebuild function so it's no longer called in the same way
as proxy rebuild function in sequencer.

No functional changes.

10 years agocycles separateRGB: fix for cuda kernel building.
Dalai Felinto [Fri, 2 Dec 2011 07:13:48 +0000 (07:13 +0000)]
cycles separateRGB: fix for cuda kernel building.
Array indexing doesn't work there.

I'm yet to setup my CUDA computer, in the meantime this proved to work (tested by Daniel Salazar).
If I found other ways of doing it I get back to that.

10 years agomove editmesh derived mesh functions into their own file to match bmesh, without...
Campbell Barton [Fri, 2 Dec 2011 03:16:06 +0000 (03:16 +0000)]
move editmesh derived mesh functions into their own file to match bmesh, without this all merges in this area have to be done manually.

10 years agorenaming BooleanProperty to BoolProperty (rna structs shouldnt affect scripters)
Dalai Felinto [Thu, 1 Dec 2011 22:08:42 +0000 (22:08 +0000)]
renaming BooleanProperty to BoolProperty (rna structs shouldnt affect scripters)
Talked with Brecht and Campbell and they both agreed that bpy.types should match bpy.props
In the ideal world we would rename bpy.props to BooleanProperty. This would break scripts though. So we go for a compromise and at least have some consistency.

10 years agoSeparateRGB and CombineRGB nodes for Cycles materials
Dalai Felinto [Thu, 1 Dec 2011 21:46:10 +0000 (21:46 +0000)]
SeparateRGB and CombineRGB nodes for Cycles materials
reviewed and approved by Brecht

my first OpenCL code \o/

10 years agoCycles: fix glsl error when using light path node.
Brecht Van Lommel [Thu, 1 Dec 2011 19:31:36 +0000 (19:31 +0000)]
Cycles: fix glsl error when using light path node.

10 years agoCheck for mvert coords and normals when doing mesh.validate() and set invalid
Sergey Sharybin [Thu, 1 Dec 2011 19:21:58 +0000 (19:21 +0000)]
Check for mvert coords and normals when doing mesh.validate() and set invalid
coordinates to zero and zero-length normals to Z-up direction.

10 years agodynamic paint, possible use of uninitialized value - fix.
Campbell Barton [Thu, 1 Dec 2011 18:49:42 +0000 (18:49 +0000)]
dynamic paint, possible use of uninitialized value - fix.

10 years agoFix for RNA_warning crashing on MSVC release builds
Andrew Wiggin [Thu, 1 Dec 2011 18:38:03 +0000 (18:38 +0000)]
Fix for RNA_warning crashing on MSVC release builds

MSVC is not C99-compliant, but with the macro as it was, the "args" part was consuming and dropping one of the params, so the format string wanted N extra args, and there were only N-1... boom, crash! Without "args" this works correctly (checked on MSVC10 release build)

10 years agoFixed issue with multiple textures and editmode when VBOs are enabled
Sergey Sharybin [Thu, 1 Dec 2011 18:26:57 +0000 (18:26 +0000)]
Fixed issue with multiple textures and editmode when VBOs are enabled

10 years agoFixed crash caused by recent VBO's changes
Sergey Sharybin [Thu, 1 Dec 2011 18:26:48 +0000 (18:26 +0000)]
Fixed crash caused by recent VBO's changes

Crash was caused by non-initialized original index passing to compareDrawOptions
callback. Due to in some cases it's enough to know indices of faces in final DM
(like for comparing if the same texture used for mesh drawing) assume this
callback receives index in final DM and if it's needed it will make conversion
to original index itself.

This should help reaching extra speed if textured object is affected by
bevel modifiers, i.e.

10 years ago- remove redundant line in makesdna pointed out by 'troubled' in IRC
Campbell Barton [Thu, 1 Dec 2011 17:51:01 +0000 (17:51 +0000)]
- remove redundant line in makesdna pointed out by 'troubled' in IRC
- comment remove unused mesh edge flag.

10 years agoCycles
Brecht Van Lommel [Thu, 1 Dec 2011 16:33:21 +0000 (16:33 +0000)]
* Compile all of cycles with -ffast-math again
* Add scons compilation of cuda binaries, tested on mac/linux.
* Add UI option for supported/experimental features, to make it
  more clear what is supported, opencl/subdivision is experimental.
* Remove cycles xml exporter, was just for testing.

10 years agoSlight refactor of VBO code to deal with multiple textures.
Sergey Sharybin [Thu, 1 Dec 2011 12:12:39 +0000 (12:12 +0000)]
Slight refactor of VBO code to deal with multiple textures.

Added compareDrawSettings callback to driver mesh's callbacks which are
drawing textured faces (mapped and not mapped). This new callback checks
if two faces are drawing with the same settings (testures, shading etc)
and if they not, flush of faces happens into ogl using glDrawArrays and
next face would be drawn with it's own settings.

Currently implemented compareDrawSettings is used to resolve issue from
bug report only, probably there are extra places where this callback is
needed, but haven't seen configuration where current logic will fail,
so it should be ok.

Also reordered arguments passing to drawMappedFaces DM's callbacks,
so now all drawing callback are accepting list of callbacks and then
userData, instead of using mixed order of callbacks and userData which
was a bit confusing to work with.

This commit fixes:
- #26410: VBO & multitexture doesnt work
- #29464: VBO enabled causes UV coruption

10 years agoFix #29469: Latest motion tracking not working.
Sergey Sharybin [Thu, 1 Dec 2011 10:25:16 +0000 (10:25 +0000)]
Fix #29469: Latest motion tracking not working.

It was error in CMakeLists.txt caused by automatic bundling script which
expanded variables instead of substituting them as-is.

Fixed both of bundling script and CMakeLists.txt

10 years agoAnother possible fix for #29301: issue with BVH intersection, reorder code a
Brecht Van Lommel [Wed, 30 Nov 2011 16:29:26 +0000 (16:29 +0000)]
Another possible fix for #29301: issue with BVH intersection, reorder code a
bit so that it's more symmetric and resulting float ops are compiled the same
way. Otherwise extended float precision being used in one place and not the
other can make comparisons fail.

10 years agoRemove MTEX_BUMP_FLIPPED flag which was added temporary when white/black colors
Sergey Sharybin [Wed, 30 Nov 2011 16:26:30 +0000 (16:26 +0000)]
Remove MTEX_BUMP_FLIPPED flag which was added temporary when white/black colors
for bump maps were toggled.

10 years agoUpdate space text's viewlines even if no text selected. It's needed for
Sergey Sharybin [Wed, 30 Nov 2011 15:10:44 +0000 (15:10 +0000)]
Update space text's viewlines even if no text selected. It's needed for
proper positioning to cursor when switching to text datablock in case
there was no datablock opened in text editor.

10 years agoForcing multires update when doing multires baking
Sergey Sharybin [Wed, 30 Nov 2011 11:04:57 +0000 (11:04 +0000)]
Forcing multires update when doing multires baking

Prevents issues with missed strokes baked into image when baking from sculpt mode.

10 years agodynamic paint
Campbell Barton [Wed, 30 Nov 2011 10:04:14 +0000 (10:04 +0000)]
dynamic paint
- replace inline code with existig defvert_find_index()
- use madd_v3_v3fl() func and remove redundant normalize call.

10 years agofix for parenting bug introduced by own commit r42273, adding dummy object didnt...
Campbell Barton [Wed, 30 Nov 2011 08:03:20 +0000 (08:03 +0000)]
fix for parenting bug introduced by own commit r42273, adding dummy object didnt initialize delta vectors.
also remove redundant NULL initializers, where the value is initialized immediately after.

10 years agouse consistent naming for deform.c, also moved defvert_remove_index into deform.c...
Campbell Barton [Wed, 30 Nov 2011 07:39:54 +0000 (07:39 +0000)]
use consistent naming for deform.c, also moved defvert_remove_index into deform.c, was local in modifier code.

10 years agofix [#29450] Mirror Vertex Groups issue
Campbell Barton [Wed, 30 Nov 2011 07:11:29 +0000 (07:11 +0000)]
fix [#29450] Mirror Vertex Groups issue

10 years agofix [#29462] libraries.load can't have link=False when relative=True
Campbell Barton [Wed, 30 Nov 2011 06:15:35 +0000 (06:15 +0000)]
fix [#29462] libraries.load can't have link=False when relative=True

was doing an unnecessary (and incorrect) library lookup.

10 years agoDeduplicate code used for drawing text information at the top of space region.
Sergey Sharybin [Wed, 30 Nov 2011 06:03:10 +0000 (06:03 +0000)]
Deduplicate code used for drawing text information at the top of space region.

10 years agoRename Movie to Movie Clip source for background image
Sergey Sharybin [Wed, 30 Nov 2011 05:34:32 +0000 (05:34 +0000)]
Rename Movie to Movie Clip source for background image

10 years agofix [#29459] Crash making a linked object group local
Campbell Barton [Wed, 30 Nov 2011 00:32:13 +0000 (00:32 +0000)]
fix [#29459] Crash making a linked object group local

was an error with make-local refactor & path updating.

10 years agoUI: another tweak to panel header drawing, to get the checkboxes positioned right.
Brecht Van Lommel [Tue, 29 Nov 2011 23:00:10 +0000 (23:00 +0000)]
UI: another tweak to panel header drawing, to get the checkboxes positioned right.

10 years agoFix: defining properties would fail with argument update=None instead of not
Brecht Van Lommel [Tue, 29 Nov 2011 22:57:35 +0000 (22:57 +0000)]
Fix: defining properties would fail with argument update=None instead of not
specifying the argument.

10 years agoFix #27981: opengl render + render slots not working.
Brecht Van Lommel [Tue, 29 Nov 2011 22:37:16 +0000 (22:37 +0000)]
Fix #27981: opengl render + render slots not working.

This also revealed an issue where the opengl render float buffer was not linear,
and toggling back to a render slot would show wrong colors. Now it converts the
float buffer to linear so that this goes ok, disadvantage is that it's slower.

10 years agoFix #29393: operator preset compatibility issue due to renaming property to
Brecht Van Lommel [Tue, 29 Nov 2011 21:23:58 +0000 (21:23 +0000)]
Fix #29393: operator preset compatibility issue due to renaming property to
avoid c++ keyword conflict. Added property back now duplicated, code generator
will avoid the conflict and this should keep things compatible.

10 years agofix [#29111] Wrong application of delta scale
Campbell Barton [Tue, 29 Nov 2011 21:13:37 +0000 (21:13 +0000)]
fix [#29111] Wrong application of delta scale

apply delta scale as a multiplier & do-versions on existing files.

- bumps subversion to 2.60.6

10 years agooption to disable/enable individual background images
Dalai Felinto [Tue, 29 Nov 2011 21:05:18 +0000 (21:05 +0000)]
option to disable/enable individual background images

*** use-case:
"I have 10 reference images that overlap each other and every time I want to see one, I need to change the transparency of all the others.
therefore it would be nice to have a little button by each menu to allow enable/disabling individual background images"

To avoid subversioning bump I created a define that is negative (DISABLED) and of course a rna that is a boolean_negative.
Talked with Campbell and he actually prefers this way over do_version, so there it goes.

10 years agoReverting previous ZCombine commit.
Sergey Sharybin [Tue, 29 Nov 2011 20:36:34 +0000 (20:36 +0000)]
Reverting previous ZCombine commit.

ZCombine solves particular cases only and confused other cases.

10 years agoAdded comments to the workaround made in r42266 (node line drawing bug on Intel hardw...
Lukas Toenne [Tue, 29 Nov 2011 20:35:30 +0000 (20:35 +0000)]
Added comments to the workaround made in r42266 (node line drawing bug on Intel hardware). Also did the same workaround to straight line drawing (currently not in use).

10 years agoformatting edits (120 width max) and remove some redundant casts
Campbell Barton [Tue, 29 Nov 2011 20:22:35 +0000 (20:22 +0000)]
formatting edits (120 width max) and remove some redundant casts

10 years agoBlender 2.61 Release links and readme:
Thomas Dinges [Tue, 29 Nov 2011 20:13:20 +0000 (20:13 +0000)]
Blender 2.61 Release links and readme:
* Updated links to
* Update readme file for 2.61

10 years agoFix link errors for MinGW debug for blenderplayer. This bizarre error, not present...
Antony Riakiotakis [Tue, 29 Nov 2011 20:06:36 +0000 (20:06 +0000)]
Fix link errors for MinGW debug for blenderplayer. This bizarre error, not present in release builds, happens due to name clashes between tracker functions. static-fied them so the linker stops complaining.

10 years agoFix for errors in node line drawing on some Intel hardware (bug #29427). This seems...
Lukas Toenne [Tue, 29 Nov 2011 19:50:34 +0000 (19:50 +0000)]
Fix for errors in node line drawing on some Intel hardware (bug #29427). This seems to be caused by a driver bug that breaks GL_LINE_STRIP drawing in combination with color changes inside the begin/end block. Simply replacing by GL_LINES seems to fix the problem and should not cause trouble for this small amount of drawing.

There has been a comment on the bug tracker about similar issues with drawing in logic buttons, this should be checked as well (Note on the bf-committers ML).

10 years agotreat 4d vectors as 3d for vector.angle(other)
Campbell Barton [Tue, 29 Nov 2011 19:40:27 +0000 (19:40 +0000)]
treat 4d vectors as 3d for vector.angle(other)

10 years agoFix #27696: record animation in game engine not working with pre made fcurves.
Brecht Van Lommel [Tue, 29 Nov 2011 18:37:10 +0000 (18:37 +0000)]
Fix #27696: record animation in game engine not working with pre made fcurves.

10 years agoAdded Z-Combine node to default tracking scene setup
Sergey Sharybin [Tue, 29 Nov 2011 17:41:15 +0000 (17:41 +0000)]
Added Z-Combine node to default tracking scene setup

10 years agoFixed wrong operator usage in clip editor's reconstruction menu
Sergey Sharybin [Tue, 29 Nov 2011 17:26:48 +0000 (17:26 +0000)]
Fixed wrong operator usage in clip editor's reconstruction menu

10 years agoFix #29028: dupli objects missing speed vectors. Check for avoiding creation of
Brecht Van Lommel [Tue, 29 Nov 2011 15:46:33 +0000 (15:46 +0000)]
Fix #29028: dupli objects missing speed vectors. Check for avoiding creation of
speed vectors was checking object instead of object instance layer, which is the
one that is actually used for render layer checks.

10 years agoFix for memory leak in multires baker.
Sergey Sharybin [Tue, 29 Nov 2011 15:45:16 +0000 (15:45 +0000)]
Fix for memory leak in multires baker.

10 years agoFix #27328: Undoing an operation while baking fluids freezes Blender
Sergey Sharybin [Tue, 29 Nov 2011 15:26:46 +0000 (15:26 +0000)]
Fix #27328: Undoing an operation while baking fluids freezes Blender

Prevent Undo be run if there are any jobs are currently running.
This also makes sense with such jobs as multires baker, for example.

10 years agoFixes and tweaks to RNA messages (found while translating in french).
Bastien Montagne [Tue, 29 Nov 2011 14:49:47 +0000 (14:49 +0000)]
Fixes and tweaks to RNA messages (found while translating in french).

Also moved traditional chinese to "almost done" part of translation menu.

10 years agoFix #29411: displacement texture not working anymore, seems part of delta
Brecht Van Lommel [Tue, 29 Nov 2011 12:12:12 +0000 (12:12 +0000)]
Fix #29411: displacement texture not working anymore, seems part of delta
scale patch got accidentally committed in revision 41485, reverted now.

10 years agoremove header text:
Campbell Barton [Tue, 29 Nov 2011 10:54:47 +0000 (10:54 +0000)]
remove header text:

  "The Blender Foundation also sells licenses for use in proprietary software under the Blender Licens"

also remove NaN references from files that have been added since blender went opensource.

10 years agomissed removing these files
Campbell Barton [Tue, 29 Nov 2011 10:34:23 +0000 (10:34 +0000)]
missed removing these files

10 years agopatch [#29421] Python Noise Module Updates
Campbell Barton [Tue, 29 Nov 2011 10:28:52 +0000 (10:28 +0000)]
patch [#29421] Python Noise Module Updates
from Andrew Hale (trumanblending)

Tracker description

The current python noise module included with Blender has yet to be updated to the new Py API. This patch does so, with the following major points:

- The noise module has now been moved to a submodule of mathutils, it can be accessed by mathutils.noise. It was moved from it's own module as it will now return mathutils types and also have greater visibility to the user.
- All functions which return vectors will now return mathutils.Vector types to be consistent with the rest of the API. Previously (x, y, z) tuples were returned.
- A different implementation of random_unit_vector is now used, this allows 2D, 3D and 4D vectors to be returned. Previously only 3D was possible.
- Some function names have been changed to remove ambiguities and make naming consistent within the module. noise.vector is now noise.noise_vector and noise.vl_vector is now noise.variable_lacunarity
- Doc strings have been updated to be compatible with auto docs.
- Code style and internal naming has been changed to match the conventions in other mathutils code.


10 years agoFix #29443: Outliner buttons hover on shrink
Sergey Sharybin [Tue, 29 Nov 2011 08:36:24 +0000 (08:36 +0000)]
Fix #29443: Outliner buttons hover on shrink

Issue was caused by drawing icon instead of button due to column clip.
This icons was drawing without taking icons' alpha into account.

10 years agoremove unused vars & minor formatting.
Campbell Barton [Tue, 29 Nov 2011 06:50:18 +0000 (06:50 +0000)]
remove unused vars & minor formatting.

10 years agoavoid allocating verts & faces for dupliface + editmode.
Campbell Barton [Tue, 29 Nov 2011 06:34:11 +0000 (06:34 +0000)]
avoid allocating verts & faces for dupliface + editmode.

10 years agoThe locking + multi-paint section of code needed correction and simplification:
Jason Hays [Tue, 29 Nov 2011 02:23:59 +0000 (02:23 +0000)]
The locking + multi-paint section of code needed correction and simplification:
The ratios were only being maintained between the altered weights when they were redistributed,
and the resulting weights did not fully respect the locks--now they do.

10 years agofix for crash adding empty object
Campbell Barton [Tue, 29 Nov 2011 01:05:26 +0000 (01:05 +0000)]
fix for crash adding empty object

10 years agoCamera tracking: SAD tracker now supports patterns with any size
Sergey Sharybin [Mon, 28 Nov 2011 21:48:49 +0000 (21:48 +0000)]
Camera tracking: SAD tracker now supports patterns with any size
(rectangle patterns are getting enlarged to square like it's happening for KLT)

10 years agoNow wiki link in help menu opens the 2.6 index... Better to do it now than one day...
Bastien Montagne [Mon, 28 Nov 2011 19:22:26 +0000 (19:22 +0000)]
Now wiki link in help menu opens the 2.6 index... Better to do it now than one day before release, and good incitation to finish 2.5/6 index before release!

10 years agoReset V3D_RENDER_SHADOW flag on file loading.
Sergey Sharybin [Mon, 28 Nov 2011 17:55:01 +0000 (17:55 +0000)]
Reset V3D_RENDER_SHADOW flag on file loading.

This flag shouldn't be saved in .blend files but because of strange reason
some files contains this flags which leads to object disappearing when
disabling buffer shadow in material. Current trunk shouldn't be saving
this flag and most probably buggy files were saved in some intermediate
version of blender where this flag can be be saved.

This should fix remained issue in #29255: Object invisible and weird polygons appearance

10 years agocorrections for docs
Campbell Barton [Mon, 28 Nov 2011 17:19:25 +0000 (17:19 +0000)]
corrections for docs

10 years ago* Never, ever use "col2" or something like that as UI variable name.
Thomas Dinges [Mon, 28 Nov 2011 17:10:32 +0000 (17:10 +0000)]
* Never, ever use "col2" or something like that as UI variable name.

10 years agoview3d - replace magic numbers with an enum to be used with mesh_foreachScreenVert...
Campbell Barton [Mon, 28 Nov 2011 16:44:17 +0000 (16:44 +0000)]
view3d - replace magic numbers with an enum to be used with mesh_foreachScreenVert, mesh_foreachScreenEdge since it wasnt clear how the values are used.

also resolved use of un-initialized variable.

10 years agoFix #29434: Cone collision bounds is on the wrong axis
Sergey Sharybin [Mon, 28 Nov 2011 16:25:42 +0000 (16:25 +0000)]
Fix #29434: Cone collision bounds is on the wrong axis

Because of strange reason, cone boundbox was rotated and it wasn't
reflecting physics engine which used "correct" cone boundbox.

Changed displaying of cone bounding box type.

10 years agoRename tracking settings presets to something which makes more sense.
Sergey Sharybin [Mon, 28 Nov 2011 16:10:50 +0000 (16:10 +0000)]
Rename tracking settings presets to something which makes more sense.

10 years agoFixes and tweaks to RNA messages (found while translating in french).
Bastien Montagne [Mon, 28 Nov 2011 15:41:32 +0000 (15:41 +0000)]
Fixes and tweaks to RNA messages (found while translating in french).

Also setting better default values in WeightVGProximity modifier

10 years agoFix #29389: cycles viewport render not updating on frame changes. This sort of
Brecht Van Lommel [Mon, 28 Nov 2011 14:55:35 +0000 (14:55 +0000)]
Fix #29389: cycles viewport render not updating on frame changes. This sort of
worked by accident before, because of flags that weren't cleared properly. Now
moved the call to update render engines into scene_update_* itself.

10 years agoCamera tracking: moved camera solver into it's own job
Sergey Sharybin [Mon, 28 Nov 2011 13:49:42 +0000 (13:49 +0000)]
Camera tracking: moved camera solver into it's own job

In some cases solving can take a while (especially when refining is used)
and keeping interface locked is a bit annoying. Now camera solver is moved
to job system and interface isn't locking.

Reporting progress isn't really accurate, but trying to make it more linear
can lead to spending more effort on it than having benefit. Also, changing
status in the information line helps to understand that blender isn't hang
up and solving is till working nicely.

Main changes in code:
- libmv_solveReconstruction now accepts additional parameters:
  * progress_update_callback - a function which is getting called
    from solver algorithm to report progress back to Blender.
  * callback_customdata - a user-defined context which is passing
    to progress_update_callback so progress can be updated in needed
    blender-side data structures.

  This parameters are optional.

- Added structure MovieTrackingStats which is placed in MovieTracking
  structure. It's supposed to be used for displaying information about
  different operations (currently it's only camera solver, but can be
  easily used for something else in the future) in clip editor.
  This statistics structure is getting allocated for time operator is
  working and not saving into .blend file.

- Clip Editor now displays statistics stored in MovieTrackingStats structure
  like it's done for rendering.

10 years agoCamera tracking: missed this presets files in previous commit
Sergey Sharybin [Mon, 28 Nov 2011 13:27:48 +0000 (13:27 +0000)]
Camera tracking: missed this presets files in previous commit

10 years agoCamera tracking: merging tracking presets stuff from tomato branch
Sergey Sharybin [Mon, 28 Nov 2011 13:26:46 +0000 (13:26 +0000)]
Camera tracking: merging tracking presets stuff from tomato branch

This commit implements:

- Configurable settings for newly creating tracks
  Now it's possible to set tracking algorithm and it's settings for
  all newly creating tracks including manual tracks creation and
  tracks creation by "Detect Features" operator.
- Moves margin, frames limit and adjust frame inside per-track
  Was request from Francois for this.
- Adjust Frames replaced with menu called Pattern Match where it's
  possible to choose between matching pattern from keyframe frame
  or from previously tracked frame.
  Didn't see somebody used adjust frames values differ from 0 and 1,
  and this menu should make things more clear here/

10 years agoremove duplicate extern_colamd from blenderplayer cmake
Antony Riakiotakis [Mon, 28 Nov 2011 08:38:08 +0000 (08:38 +0000)]
remove duplicate extern_colamd from blenderplayer cmake

10 years agoFix typo in track selection operator.
Sergey Sharybin [Mon, 28 Nov 2011 07:18:53 +0000 (07:18 +0000)]
Fix typo in track selection operator.

Found by Campbell Barton, thanks.

10 years agofix for building as a python module
Campbell Barton [Mon, 28 Nov 2011 07:02:38 +0000 (07:02 +0000)]
fix for building as a python module

10 years agoSuperficial changes for bmesh bevel to sync with bmesh branch, also noticed length...
Campbell Barton [Mon, 28 Nov 2011 03:01:06 +0000 (03:01 +0000)]
Superficial changes for bmesh bevel to sync with bmesh branch, also noticed length comparison can be done without sqrt for baking.

10 years agoquiet some warnings and logical errors.
Campbell Barton [Sun, 27 Nov 2011 23:41:01 +0000 (23:41 +0000)]
quiet some warnings and logical errors.
- curve map insert point had a nested loop which used the same value to index different arrays.
- dynamic paint used ternary operator where both outcomes were the same.

10 years agoBLI_mempool_findelem() only worked when no elements were freed, use the iterator...
Campbell Barton [Sun, 27 Nov 2011 21:11:17 +0000 (21:11 +0000)]
BLI_mempool_findelem() only worked when no elements were freed, use the iterator for now.

10 years agoDo not use search area of unselected tracks when searching for nearest
Sergey Sharybin [Sun, 27 Nov 2011 19:27:13 +0000 (19:27 +0000)]
Do not use search area of unselected tracks when searching for nearest
track on mouse selection operator.

10 years agoBuildbot configuration tweaks
Sergey Sharybin [Sun, 27 Nov 2011 19:21:49 +0000 (19:21 +0000)]
Buildbot configuration tweaks
- Force libsamplerate linking statically
- Remove global compiler flags for sse2 and sse.
  Tests of release builds didn't show big difference in time of
  tracking using SAD algorithm or time of solving,
  so this shouldn't introduce big slowdown.

10 years agoCamera tracking: refactor of tracks synchronization stuff
Sergey Sharybin [Sun, 27 Nov 2011 19:17:59 +0000 (19:17 +0000)]
Camera tracking: refactor of tracks synchronization stuff

Currently this stuff is used for 2d tracking job only, but the same
thing would necessary for camera solver job, so moved it into more
general utility stuff.

10 years agoaccessing rna 'default_flag' attribute of a non enum-flag could crash. eg.
Campbell Barton [Sun, 27 Nov 2011 14:13:10 +0000 (14:13 +0000)]
accessing rna 'default_flag' attribute of a non enum-flag could crash. eg.["type"].default_flag

now check the default/default_flag match the enum property they are used with.

10 years agoUI: tweak to panel header padding, made region expander a bit smaller and
Brecht Van Lommel [Sun, 27 Nov 2011 14:06:47 +0000 (14:06 +0000)]
UI: tweak to panel header padding, made region expander a bit smaller and
fix bug #29422, left expander drawing over adjacent editor.

10 years agominor cycles edits
Campbell Barton [Sun, 27 Nov 2011 03:49:09 +0000 (03:49 +0000)]
minor cycles edits
- use sets rather then tuples
- use relative imports

10 years agomempool utility function to get the element at an index BLI_mempool_findelem(), not...
Campbell Barton [Sun, 27 Nov 2011 01:20:08 +0000 (01:20 +0000)]
mempool utility function to get the element at an index BLI_mempool_findelem(), not used yet.

10 years agoFix [#29410] Blender svn 2.60.5 r42177, compositor, glare node bug.
Bastien Montagne [Sat, 26 Nov 2011 21:42:04 +0000 (21:42 +0000)]
Fix [#29410] Blender svn 2.60.5 r42177, compositor, glare node bug.

The problem was in fact in the changes made to blend_ramp() func at rev42164. The checks on green pointer (if(g) {...) were checking the existance of a valid value (i.e. if input color was rgb or only shades of grey in r pointer), but as we get now a full float[3] pointer, this test is no more possible. And doing if(r_col[1]) {... was wrong, as it only broke things in case green was 0.0 (which was the case with the generated glare color of bug report).

So, just removed all those tests!

10 years agoFix #29406: show Sequence as render layer when rendering from sequencer, to make
Brecht Van Lommel [Sat, 26 Nov 2011 18:33:31 +0000 (18:33 +0000)]
Fix #29406: show Sequence as render layer when rendering from sequencer, to make
it more clear what was rendered.
Fix #29407: external engine api doesn't support full sample yet, would give too
dark render result.

10 years agocheck if an addon exists before getting its mtime
Campbell Barton [Sat, 26 Nov 2011 17:41:56 +0000 (17:41 +0000)]
check if an addon exists before getting its mtime

10 years agofix for own error with id props when adding byte strings
Campbell Barton [Sat, 26 Nov 2011 17:22:11 +0000 (17:22 +0000)]
fix for own error with id props when adding byte strings

10 years agominor bpy api edits
Campbell Barton [Sat, 26 Nov 2011 15:18:30 +0000 (15:18 +0000)]
minor bpy api edits
- strict check for rna properties
- formatting edits (120 line width)
- use PyDoc_STRVAR macros for getset docstrings

10 years agoAdd missing GLEW_STATIC definition, causing link errors.
Antony Riakiotakis [Sat, 26 Nov 2011 15:08:01 +0000 (15:08 +0000)]
Add missing GLEW_STATIC definition, causing link errors.

10 years ago* Fix some wrong icon names in MESH_MT_vertex_group_specials, they caused errors.
Thomas Dinges [Sat, 26 Nov 2011 14:04:33 +0000 (14:04 +0000)]
* Fix some wrong icon names in MESH_MT_vertex_group_specials, they caused errors.
Reported by Uncle_Entity in IRC.

10 years agoA bunch of fixes and tweaks in RNA messages, found while translating them in french...
Bastien Montagne [Sat, 26 Nov 2011 12:30:01 +0000 (12:30 +0000)]
A bunch of fixes and tweaks in RNA messages, found while translating them in french...

10 years agoFix for linking cycles group nodes in the sidebar menu (bug #29403). The template...
Lukas Toenne [Sat, 26 Nov 2011 11:08:20 +0000 (11:08 +0000)]
Fix for linking cycles group nodes in the sidebar menu (bug #29403). The template for ntreeAddNode needs not only the node group pointer but also the NODE_GROUP id for the base type.

10 years agopass args as vectors to opengl functions where possible.
Campbell Barton [Sat, 26 Nov 2011 05:10:53 +0000 (05:10 +0000)]
pass args as vectors to opengl functions where possible.

10 years agoreplace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
Campbell Barton [Sat, 26 Nov 2011 04:07:38 +0000 (04:07 +0000)]

10 years agominor edit - weight_to_rgb() and ramp_blend() now take a float vector rather than...
Campbell Barton [Sat, 26 Nov 2011 03:13:54 +0000 (03:13 +0000)]
minor edit - weight_to_rgb() and ramp_blend() now take a float vector rather than 3 float pointers.
also make particle draw use a float vec.

10 years agoadd null check, crashes py 3.3 which isn't released but adding the check is harmless
Campbell Barton [Sat, 26 Nov 2011 02:33:57 +0000 (02:33 +0000)]
add null check, crashes py 3.3 which isn't released but adding the check is harmless

10 years agoDo not use transparent rendering in 3d viewport for objects which are in edit mode
Sergey Sharybin [Fri, 25 Nov 2011 12:55:42 +0000 (12:55 +0000)]
Do not use transparent rendering in 3d viewport  for objects which are in edit mode

Transparent rendering can't be implemented in way it gives accurate shading in
3d viewport. It's acceptable for object mode, but when you're in edit mode
it gives more problems than benefits of seeing transparent faces.

This is possible fix for for weird polygons in [#29255] Object invisible and weird polygons appearance

10 years agolibmv: don't replace flags with rel_flags but add, to preserve all flags
Jens Verwiebe [Fri, 25 Nov 2011 11:31:51 +0000 (11:31 +0000)]
libmv: don't replace flags with rel_flags but add, to preserve all flags

10 years agoPatch #29394: Error in VIEW3D_MT_EDIT_CURVE menu
Sergey Sharybin [Fri, 25 Nov 2011 09:22:36 +0000 (09:22 +0000)]
Patch #29394: Error in VIEW3D_MT_EDIT_CURVE menu

Wrong shortcut was displaying for Curve -> Control Point -> Tilt operator

Patch by Mike Sloman, thanks!

10 years agoImage save as operator 'BW' option wasnt working on some formats, now only show when...
Campbell Barton [Fri, 25 Nov 2011 03:47:34 +0000 (03:47 +0000)]
Image save as operator 'BW' option wasnt working on some formats, now only show when its supported.