9 years agosvn merge ^/trunk/blender -r42261:42290
Campbell Barton [Wed, 30 Nov 2011 09:31:11 +0000 (09:31 +0000)]
svn merge ^/trunk/blender -r42261:42290

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

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

9 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

9 years agoremove wrong solidify & draw changes i had checked in here and had also proposed...
Andrew Wiggin [Wed, 30 Nov 2011 06:27:38 +0000 (06:27 +0000)]
remove wrong solidify & draw changes i had checked in here and had also proposed for trunk, because the problem was fixed differently in trunk.

#-This line, and those below, will be ignored--

M    source/blender/modifiers/intern/MOD_solidify.c
M    source/blender/blenkernel/intern/cdderivedmesh.c

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

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

9 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

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

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

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

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

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

9 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

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

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

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

9 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

9 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

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

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

9 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)

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

9 years agosvn merge ^/trunk/blender -r42245:42261
Campbell Barton [Tue, 29 Nov 2011 18:18:56 +0000 (18:18 +0000)]
svn merge ^/trunk/blender -r42245:42261

9 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

9 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

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

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

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

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

9 years agosubsurf-specific implementations of getVert/Edge/TessFaceData
Andrew Wiggin [Tue, 29 Nov 2011 13:11:14 +0000 (13:11 +0000)]
subsurf-specific implementations of getVert/Edge/TessFaceData

9 years agoMore DM func renames, this one includes renames of the function pointer members of...
Andrew Wiggin [Tue, 29 Nov 2011 13:01:51 +0000 (13:01 +0000)]
More DM func renames, this one includes renames of the function pointer members of the DerivedMesh struct

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

9 years agoAllow scanfill caller to specify boundary edges and use to fix knifetool extra-face bug
Howard Trickey [Tue, 29 Nov 2011 11:49:53 +0000 (11:49 +0000)]
Allow scanfill caller to specify boundary edges and use to fix knifetool extra-face bug

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

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

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


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

9 years agosvn merge ^/trunk/blender -r42221:42245
Campbell Barton [Tue, 29 Nov 2011 06:58:16 +0000 (06:58 +0000)]
svn merge ^/trunk/blender -r42221:42245

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

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

9 years agomacro for defining a fixed size array which may be heap or stack allocated, replaces...
Campbell Barton [Tue, 29 Nov 2011 06:06:59 +0000 (06:06 +0000)]
macro for defining a fixed size array which may be heap or stack allocated, replaces inline code.


9 years agoRename DM *_face_* funcs to be either *_tessface_* or *_poly_* to avoid confusion
Andrew Wiggin [Tue, 29 Nov 2011 05:09:54 +0000 (05:09 +0000)]
Rename DM *_face_* funcs to be either *_tessface_* or *_poly_* to avoid confusion

This is the first step in a few changes to cleanup confusing/missing DM funcs

9 years ago- add BM_NGON_STACK_SIZE define to use wherever ngon stack arrays are used.
Campbell Barton [Tue, 29 Nov 2011 04:11:17 +0000 (04:11 +0000)]
- add BM_NGON_STACK_SIZE define to use wherever ngon stack arrays are used.
- renamed BM_Compute_Face_Center() to BM_Compute_Face_CenterBounds() and added BM_Compute_Face_CenterMean() since there was code inline to find the mean center in transform.

9 years agofix for duplifaces with quads/ngons, bmesh was using triangulated faces so each quad...
Campbell Barton [Tue, 29 Nov 2011 02:58:38 +0000 (02:58 +0000)]
fix for duplifaces with quads/ngons, bmesh was using triangulated faces so each quad would result in 2 duplis.

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

9 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

9 years agoutility function for getting the center of a polygon, needed for up coming changes
Campbell Barton [Mon, 28 Nov 2011 23:50:40 +0000 (23:50 +0000)]
utility function for getting the center of a polygon, needed for up coming changes

9 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)

9 years agoinline BMIter_Step() and BMIter_New() since the compiler can optimize out the switch...
Campbell Barton [Mon, 28 Nov 2011 20:21:44 +0000 (20:21 +0000)]
inline BMIter_Step() and BMIter_New() since the compiler can optimize out the switch statement when BMIter_New() is called with the define (which is common).

9 years agogpl header cleanup, some files didnt have a gpl header.
Campbell Barton [Mon, 28 Nov 2011 19:49:05 +0000 (19:49 +0000)]
gpl header cleanup, some files didnt have a gpl header.
also added inline iterator file (not yet used)

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

9 years agotrust 'bm->elem_index_dirty' is correct, this avoids looping over edges/faces/verts...
Campbell Barton [Mon, 28 Nov 2011 18:52:35 +0000 (18:52 +0000)]
trust 'bm->elem_index_dirty' is correct, this avoids looping over edges/faces/verts if its not needed, but if set wrong it could crash too so added verification when built with debeg.

also added debug define to help solve invalid values with valgrind's memcheck.

gives noticeable speedup since there was a loop no all faces to set index values on redraw.

9 years agovalidate the index values when an operator finishes since the arrays are looped over...
Campbell Barton [Mon, 28 Nov 2011 18:43:34 +0000 (18:43 +0000)]
validate the index values when an operator finishes since the arrays are looped over anyway.

9 years agofix for error filling in index data
Campbell Barton [Mon, 28 Nov 2011 18:21:10 +0000 (18:21 +0000)]
fix for error filling in index data

9 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

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

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

9 years agosvn merge ^/trunk/blender -r42197:42221
Campbell Barton [Mon, 28 Nov 2011 17:09:13 +0000 (17:09 +0000)]
svn merge ^/trunk/blender -r42197:42221

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

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

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

9 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

9 years agofix for missing NULL check in remove doubles.
Campbell Barton [Mon, 28 Nov 2011 15:31:34 +0000 (15:31 +0000)]
fix for missing NULL check in remove doubles.

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

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

9 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

9 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/

9 years agofix for [#29437] normals incorrect using bevel modifier in edit mode
Andrew Wiggin [Mon, 28 Nov 2011 10:57:30 +0000 (10:57 +0000)]
fix for [#29437] normals incorrect using bevel modifier in edit mode

9 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

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

9 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

9 years agomore work on getting bmesh dirty index flags reliable.
Campbell Barton [Mon, 28 Nov 2011 06:49:16 +0000 (06:49 +0000)]
more work on getting bmesh dirty index flags reliable.

now there very close, some hard to redo cases to check on.

9 years agominor changes
Campbell Barton [Mon, 28 Nov 2011 05:56:00 +0000 (05:56 +0000)]
minor changes
- comment BM_SetIndex as setting dirty.
- have alloc_flag_layer validate the index data and clear the dirty flag since it loops on the data anyway.

9 years agofix for minor memory leak for BMO_VInitOpf() in an error case, also use the BLI versi...
Campbell Barton [Mon, 28 Nov 2011 05:00:34 +0000 (05:00 +0000)]
fix for minor memory leak for BMO_VInitOpf() in an error case, also use the BLI version of strdup().

9 years agobasic bevel modifier working again in bmesh, closely matches the edge split modifier...
Campbell Barton [Mon, 28 Nov 2011 04:19:44 +0000 (04:19 +0000)]
basic bevel modifier working again in bmesh, closely matches the edge split modifier since it calls out to the bevel operator.
- edge angles are ok
- width is interpreted as percent

added BMESH_TODO comments with details about what needs working on.

9 years agochange edge split modifier to loop over all edges and compare the face angles, rather...
Campbell Barton [Mon, 28 Nov 2011 03:41:14 +0000 (03:41 +0000)]
change edge split modifier to loop over all edges and compare the face angles, rather then looping over all faces and looking at every faces-edges-fance which would compare faces twice.

9 years agouse lower angle when checking to draw an edge, adding uv sphere looked strange
Campbell Barton [Mon, 28 Nov 2011 03:07:12 +0000 (03:07 +0000)]
use lower angle when checking to draw an edge, adding uv sphere looked strange

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

9 years agowhen comparing lengths no need to sqrt
Campbell Barton [Mon, 28 Nov 2011 01:20:53 +0000 (01:20 +0000)]
when comparing lengths no need to sqrt

9 years ago2 of the 3 places that check 2 edges share a vertex were incorrect (silly mistake)
Campbell Barton [Mon, 28 Nov 2011 00:27:26 +0000 (00:27 +0000)]
2 of the 3 places that check 2 edges share a vertex were incorrect (silly mistake)

    so make into a function: BM_Edge_Share_Vert()

9 years agosvn merge ^/trunk/blender -r42194:42197
Campbell Barton [Sun, 27 Nov 2011 23:56:29 +0000 (23:56 +0000)]
svn merge ^/trunk/blender -r42194:42197

9 years agoremove redundant check
Campbell Barton [Sun, 27 Nov 2011 23:49:09 +0000 (23:49 +0000)]
remove redundant check

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

9 years agosvn merge ^/trunk/blender -r42182:42194
Campbell Barton [Sun, 27 Nov 2011 21:18:59 +0000 (21:18 +0000)]
svn merge ^/trunk/blender -r42182:42194

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

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

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

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

9 years agoenable multires baking code, this works between different multires levels but current...
Campbell Barton [Sun, 27 Nov 2011 16:50:25 +0000 (16:50 +0000)]
enable multires baking code, this works between different multires levels but currently not baking to level 0, added TODO in code.

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

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

9 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

9 years agouse faster method of getting vert/edge/face indices which uses BLI_mempool_findelem...
Campbell Barton [Sun, 27 Nov 2011 02:05:46 +0000 (02:05 +0000)]
use faster method of getting vert/edge/face indices which uses BLI_mempool_findelem to skip over chunks rather than going over every element

9 years agosvn merge ^/trunk/blender -r42172:42182
Campbell Barton [Sun, 27 Nov 2011 01:42:56 +0000 (01:42 +0000)]
svn merge ^/trunk/blender -r42172:42182

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

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

9 years agofix [#29380] VParent + Mask Mod,
Campbell Barton [Sat, 26 Nov 2011 20:48:18 +0000 (20:48 +0000)]
fix [#29380] VParent + Mask Mod,
    line was out of sync with trunk

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

9 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