9 years agoDisable fancy scons output for buildbot. Should make reading build logs a bit more...
Sergey Sharybin [Sun, 26 Feb 2012 10:47:50 +0000 (10:47 +0000)]
Disable fancy scons output for buildbot. Should make reading build logs a bit more easier.

9 years agoChange boost librarie names for MinGW to use the recently added libraries
Antony Riakiotakis [Sun, 26 Feb 2012 09:28:06 +0000 (09:28 +0000)]
Change boost librarie names for MinGW to use the recently added libraries

9 years agoFix #30254: VSE: no red warning border on metastrips with Extend (E)
Sergey Sharybin [Sun, 26 Feb 2012 09:19:48 +0000 (09:19 +0000)]
Fix #30254: VSE: no red warning border on metastrips with Extend (E)

9 years agoFix #30337: missed Set Origin for Metaball
Sergey Sharybin [Sun, 26 Feb 2012 08:55:31 +0000 (08:55 +0000)]
Fix #30337: missed Set Origin for Metaball

Implemented Set Origin operator for Meta Balls.

9 years agoFixed for selected bundles drawing in 3D viewport:
Sergey Sharybin [Sun, 26 Feb 2012 08:14:14 +0000 (08:14 +0000)]
Fixed for selected bundles drawing in 3D viewport:

- If track was hidded in clip editor it wasn't highlighted in 3d viewport
  even if it's selected.
- If two tracks has got the same bundle coordinate and one of them is
  selected it might not be highlighted in 3d viewport because of
  draw order.

9 years agobmesh py api, add another interpolation function.
Campbell Barton [Sun, 26 Feb 2012 07:16:50 +0000 (07:16 +0000)]
bmesh py api, add another interpolation function.
BMVert.copy_from_vert_interp(vert_pair, fac)

9 years agoStyle cleanup: remove underscore prefix from CCG struct names.
Nicholas Bishop [Sun, 26 Feb 2012 06:50:54 +0000 (06:50 +0000)]
Style cleanup: remove underscore prefix from CCG struct names.

9 years agobmesh - remove faces with <3 sides after dissolve/collapse (most tools already did...
Campbell Barton [Sun, 26 Feb 2012 05:48:12 +0000 (05:48 +0000)]
bmesh - remove faces with <3 sides after dissolve/collapse (most tools already did this).

9 years agochange vertex dissolve not to collapse edges when its only connected to 2, rather...
Campbell Barton [Sun, 26 Feb 2012 05:04:30 +0000 (05:04 +0000)]
change vertex dissolve not to collapse edges when its only connected to 2, rather then joining the faces on either side.

This way. IMHO is more useful since it means you can simplify the geometry between faces without joining them and it distinguishes vertex dissolve more from edge dissolve - which will join both faces still.

9 years agoCode cleanup: clarify multiresModifier_disp_run modes.
Nicholas Bishop [Sun, 26 Feb 2012 04:40:56 +0000 (04:40 +0000)]
Code cleanup: clarify multiresModifier_disp_run modes.

Previously the function took 'invert' and 'add' parameters to indicate
what operation should be performed on the displacements, replaced
these with three named modes: APPLY_DISPLACEMENTS, CALC_DISPLACEMENTS,

9 years agofix for a bug in bmesh_jekv (and its main caller BM_vert_collapse_faces).
Campbell Barton [Sun, 26 Feb 2012 04:38:37 +0000 (04:38 +0000)]
fix for a bug in bmesh_jekv (and its main caller BM_vert_collapse_faces).

Collapsing an edge could result on 2 edges sharing the same verts, now check for this and 'splice' one edge into another.

9 years agofix for vertex dissolve not doing anything with a single vertex on a single face.
Campbell Barton [Sun, 26 Feb 2012 00:43:47 +0000 (00:43 +0000)]
fix for vertex dissolve not doing anything with a single vertex on a single face.
now collapse the vertex into the edges.

also disable removing the vertrex when it could not be collapsed (old code), found it could would connected faces which isn't acceptable - now return fail in that case.

9 years agobmesh python api
Campbell Barton [Sat, 25 Feb 2012 23:56:20 +0000 (23:56 +0000)]
bmesh python api
* BMLoop attributes link_loop_next/prev
* BMVert.copy_from_face_interp

9 years agobmesh code cleanup
Campbell Barton [Sat, 25 Feb 2012 23:41:31 +0000 (23:41 +0000)]
bmesh code cleanup
* minor edits to header
* make BM_vert_dissolve() easier to read.

9 years agofix [#30352] Dissolving a vert in an edgeloop (no faces) just deletes the verts killi...
Campbell Barton [Sat, 25 Feb 2012 23:29:12 +0000 (23:29 +0000)]
fix [#30352] Dissolving a vert in an edgeloop (no faces) just deletes the verts killing connections

collapse the vertex into an edge when it has 2 edges connected to it.

9 years agobmesh api cleanup
Campbell Barton [Sat, 25 Feb 2012 22:23:40 +0000 (22:23 +0000)]
bmesh api cleanup
* better type safety for BM_elem_flag_* and BM_elem_index_* functions.
* add BMElem type to be used where BMFace/Edge/Vert/Loop can be interchanged.
* fix bug in select manifold, found when making functions more strict.

9 years agominor style edits
Campbell Barton [Sat, 25 Feb 2012 21:27:45 +0000 (21:27 +0000)]
minor style edits
- use GL_TRUE/FALSE for glLightModeli
- use set for python checks against multiple string values.

9 years agoadjustment to r44436.
Campbell Barton [Sat, 25 Feb 2012 21:15:02 +0000 (21:15 +0000)]
adjustment to r44436.

dont set the header text multiple times when many objects are selected, instead just print the difference thats applied.

when theres a single object selected, behavior us unchanged.

9 years agobmesh code cleanup
Campbell Barton [Sat, 25 Feb 2012 20:58:03 +0000 (20:58 +0000)]
bmesh code cleanup
* change BMO_elem_flag_* defines to inline functions.
* BMO_slot_map_insert() is too big for an inline function - un-inline it.
* remove redundant casts.

9 years agoPatch [#30341] by Davis Sorenson (dsavi). Thanks!
Thomas Dinges [Sat, 25 Feb 2012 19:49:23 +0000 (19:49 +0000)]
Patch [#30341] by Davis Sorenson (dsavi). Thanks!

* Now the 3D view header displays value changes, when changing a value in the Object Special value (w-key).

9 years agobmesh api:
Campbell Barton [Sat, 25 Feb 2012 19:43:51 +0000 (19:43 +0000)]
bmesh api:
* added BM_elem_flag_set, BMO_elem_flag_set. to avoid 'if(...) enable(); else disable();' all over the place.
* added bmesh_operator_api_inline.c, the header file was getting messy.

9 years agofix for own error edge tagging sharp.
Campbell Barton [Sat, 25 Feb 2012 18:13:58 +0000 (18:13 +0000)]
fix for own error edge tagging sharp.

9 years agoChanges in double side lighting usage
Sergey Sharybin [Sat, 25 Feb 2012 18:09:39 +0000 (18:09 +0000)]
Changes in double side lighting usage

Disabled double-side lighting by default and changed areas which are using
double sided lighting to switch it off just after doing stuff which requires
double side.

This makes code a bit more simple to follow (no all that disabling double side
lighting all over the code and so).

This change also fixes crash of blender caused by intel gme965 driver which
leads to stack corruption in some place when double side lighting isn't
disabled (probably driver still kind of using double side in some areas or so).

Hopefully it'll also fix #30293: Converting Text to Mesh

Thanks to Campbell to assist writing this patch!

9 years agostyle cleanup, use { on newline after function definition.
Campbell Barton [Sat, 25 Feb 2012 16:49:59 +0000 (16:49 +0000)]
style cleanup, use { on newline after function definition.
spelling 'impliment' -> 'implement'

9 years agocode cleanup: white space, spelling & ';;' end of lines.
Campbell Barton [Sat, 25 Feb 2012 16:04:03 +0000 (16:04 +0000)]
code cleanup: white space, spelling & ';;' end of lines.

9 years agobmesh py api - add funcs
Campbell Barton [Sat, 25 Feb 2012 15:51:39 +0000 (15:51 +0000)]
bmesh py api - add funcs
* BMFace.copy_from_face_interp(face)
* BMLoop.copy_from_face_interp(face, vert=True, multires=True)

These are important for rebuilding geometry from existing faces without loosing UV's, vcols etc.

9 years ago[#30197] Snapping: Align rotation button
Martin Poirier [Sat, 25 Feb 2012 15:14:41 +0000 (15:14 +0000)]
[#30197] Snapping: Align rotation button

Reported by Pep Ribal

Volume snapping was showing invalid options.

9 years agofix for own regression in r44361 (broke BM_vert_in_face)
Campbell Barton [Sat, 25 Feb 2012 14:56:37 +0000 (14:56 +0000)]
fix for own regression in r44361 (broke BM_vert_in_face)

also fix py api: bmesh.utils.face_split(face, v1, v2)

9 years agoOSX: scons: fix own mistake, truncate output of xcode-build -version to major.minor...
Jens Verwiebe [Sat, 25 Feb 2012 11:21:20 +0000 (11:21 +0000)]
OSX: scons: fix own mistake, truncate output of xcode-build -version to major.minor version in config to change the var not only the print

9 years agoOSX: scons: corrected output string of xcode-build -version, so only major/minor...
Jens Verwiebe [Sat, 25 Feb 2012 10:59:32 +0000 (10:59 +0000)]
OSX: scons: corrected output string of xcode-build -version, so only major/minor version is used

9 years agobugfix
Campbell Barton [Sat, 25 Feb 2012 09:06:17 +0000 (09:06 +0000)]
* ntreeCompositExecTree accessed 'ntree' before NULL check.
* BM_face_triangulate accessed 'f' before NULL check.

also quiet warning in BKE_text_to_curve() and add a check for BMesh bridge loops so it knows quicker if it can copy loop data or not.

9 years agocode cleanup
Campbell Barton [Sat, 25 Feb 2012 09:02:05 +0000 (09:02 +0000)]
code cleanup
* correct cmake/clang warning.
* use same include guard names as everywhere else for BLI math inline.
* correct define for madd_sh_shfl

9 years agoremove redundant NULL check in draw_new_particle_system()
Campbell Barton [Sat, 25 Feb 2012 08:37:51 +0000 (08:37 +0000)]
remove redundant NULL check in draw_new_particle_system()

9 years agoCollada export: bone parenting is actually against the tail.
Juha Mäki-Kanto [Fri, 24 Feb 2012 21:45:59 +0000 (21:45 +0000)]
Collada export: bone parenting is actually against the tail.

Don't know the reasoning for having it be against the tail and not the head.

9 years agoCollada export: fix no polylist after bmesh-merge
Juha Mäki-Kanto [Fri, 24 Feb 2012 21:15:58 +0000 (21:15 +0000)]
Collada export: fix no polylist after bmesh-merge

Just needed a call to BKE_mesh_tessface_ensure when exporting geometries.

9 years agoFix for #30336: Couldn't playback from Python without having played back via logic...
Joerg Mueller [Fri, 24 Feb 2012 19:34:29 +0000 (19:34 +0000)]
Fix for #30336: Couldn't playback from Python without having played back via logic bricks once.

Thanks Colin Nickerson for reporting.

9 years agoOSX: set ffmpeg back in darwin-config according librenaming
Jens Verwiebe [Fri, 24 Feb 2012 18:31:09 +0000 (18:31 +0000)]
OSX: set ffmpeg back in darwin-config according librenaming

9 years agobmesh bridge - copy UVs and face data whem available.
Campbell Barton [Fri, 24 Feb 2012 17:47:51 +0000 (17:47 +0000)]
bmesh bridge - copy UVs and face data whem available.

9 years agoPython: add MeshLoop.index, same as already existed for vert/edge/face/poly.
Brecht Van Lommel [Fri, 24 Feb 2012 15:53:26 +0000 (15:53 +0000)]
Python: add MeshLoop.index, same as already existed for vert/edge/face/poly.

9 years agoCycles: tweak for AMD opencl compile of advanced shading, from Daniel Genrich,
Brecht Van Lommel [Fri, 24 Feb 2012 15:53:19 +0000 (15:53 +0000)]
Cycles: tweak for AMD opencl compile of advanced shading, from Daniel Genrich,
still does not work correct but should compile if you have enough memory.

9 years agoBlender should now compile fine with older FFmpeg libraries used.
Sergey Sharybin [Fri, 24 Feb 2012 15:34:57 +0000 (15:34 +0000)]
Blender should now compile fine with older FFmpeg libraries used.

9 years agoMore consistent variable naming.
Sergey Sharybin [Fri, 24 Feb 2012 14:03:18 +0000 (14:03 +0000)]
More consistent variable naming.

9 years agoTODO item: zoom to mouse location in image editor
Sergey Sharybin [Fri, 24 Feb 2012 14:01:42 +0000 (14:01 +0000)]
TODO item: zoom to mouse location in image editor

9 years agobmesh py api - fix for error creating a new face
Campbell Barton [Fri, 24 Feb 2012 13:50:36 +0000 (13:50 +0000)]
bmesh py api - fix for error creating a new face

9 years agoCode clean-up and make zoom in/out operator store mouse coordinate
Sergey Sharybin [Fri, 24 Feb 2012 13:44:45 +0000 (13:44 +0000)]
Code clean-up and make zoom in/out operator store mouse coordinate
so exec() callback will zoom in/out properly.

9 years agoCLIP_OT_view_zoom (Ctrl-MMB) now takes into account Zoom to Mouse Position setting
Sergey Sharybin [Fri, 24 Feb 2012 13:31:18 +0000 (13:31 +0000)]
CLIP_OT_view_zoom (Ctrl-MMB) now takes into account Zoom to Mouse Position setting

9 years agobmesh python api:
Campbell Barton [Fri, 24 Feb 2012 12:57:05 +0000 (12:57 +0000)]
bmesh python api:
 bm.verts.get(verts) / bm.faces.get(verts)

 - use to find an edge or face from a vertex list passed.

9 years agoFixed crash in UV project modifier.
Sergey Sharybin [Fri, 24 Feb 2012 12:30:49 +0000 (12:30 +0000)]
Fixed crash in UV project modifier.

9 years agochange default name of Texture face layer to UVMap, while we fake UV's and texface...
Campbell Barton [Fri, 24 Feb 2012 12:10:41 +0000 (12:10 +0000)]
change default name of Texture face layer to UVMap, while we fake UV's and texface as being the same.

9 years agobmesh py api - bmesh.utils.face_flip
Campbell Barton [Fri, 24 Feb 2012 11:04:09 +0000 (11:04 +0000)]
bmesh py api - bmesh.utils.face_flip

9 years agobmesh: minor speedup, use 1 iterator rather then 2 when normalizing verts.
Campbell Barton [Fri, 24 Feb 2012 10:40:32 +0000 (10:40 +0000)]
bmesh: minor speedup, use 1 iterator rather then 2 when normalizing verts.

9 years agobmesh py api - normal_update() functions for vert/edge/face.
Campbell Barton [Fri, 24 Feb 2012 10:35:52 +0000 (10:35 +0000)]
bmesh py api - normal_update() functions for vert/edge/face.

9 years agobmesh py api, minor change - edges now take a seq of 2:, v2), exampl...
Campbell Barton [Fri, 24 Feb 2012 10:17:30 +0000 (10:17 +0000)]
bmesh py api, minor change - edges now take a seq of 2:, v2), example=None)

9 years agobmesh docs now written in sphinx doc generator.
Campbell Barton [Fri, 24 Feb 2012 09:53:29 +0000 (09:53 +0000)]
bmesh docs now written in sphinx doc generator.

9 years agoChanges in FFV1 codec settings
Sergey Sharybin [Fri, 24 Feb 2012 09:49:44 +0000 (09:49 +0000)]
Changes in FFV1 codec settings

Since FFmpeg 0.10 release FFV1 codec supports alpha channel which is getting
enabled when using PIX_FMT_RGB32 pixel format. This leads to incompatibility of
videos rendered in Blender with almost all external players (especially in OSX).

Seems that PIX_FMT_BGR0 is recommended to be used to make videos compatible with
older players which doesn't support alpha channel in FFV1.

Also added an option to switch to RGBA rendering if FFV1 codec is used and if RGBA
rendering is used FFV1 will be using PIX_FMT_RGB32 format which supports alpha channel.

9 years agotypo cleanup, no functional changes.
Campbell Barton [Fri, 24 Feb 2012 06:44:04 +0000 (06:44 +0000)]
typo cleanup, no functional changes.

9 years agobmesh py api (some api changes and doc additions)
Campbell Barton [Fri, 24 Feb 2012 05:56:06 +0000 (05:56 +0000)]
bmesh py api (some api changes and doc additions)
* remove 'select' and 'hide' from BMLoop
* remove BMesh.update
* add BMesh.normal_update(skip_hidden=False)
* add BMElemSet.index_update(), eg: bm.verts.index_update()

bmesh api
* BM_mesh_normals_update() now takes skip_hidden as an argument
(previously this was default behavior), however this isnt good when
using BMesh modifiers, where you want all normals to be recalculated.
* add bm_iter_itype_htype_map[], to get the iter type from a BMesh

9 years agobmesh python api - add/improve rst docstrings.
Campbell Barton [Fri, 24 Feb 2012 04:59:13 +0000 (04:59 +0000)]
bmesh python api - add/improve rst docstrings.

9 years agoFix #30325: bmesh edges were marked as sharp by default, after recent
Brecht Van Lommel [Thu, 23 Feb 2012 21:23:49 +0000 (21:23 +0000)]
Fix #30325: bmesh edges were marked as sharp by default, after recent
refactor to reuse BM_ELEM_SMOOTH flag for sharp flag.

9 years agoFix #30268: cloth collision and springs not working after bmesh merge,
Brecht Van Lommel [Thu, 23 Feb 2012 21:07:22 +0000 (21:07 +0000)]
Fix #30268: cloth collision and springs not working after bmesh merge,
these cloth and collision modifiers require tesselation still.

9 years agoFix #30326: calling e.g. bpy.ops.object.proxy_make(object = 'Lamp') would
Brecht Van Lommel [Thu, 23 Feb 2012 20:31:51 +0000 (20:31 +0000)]
Fix #30326: calling e.g. bpy.ops.object.proxy_make(object = 'Lamp') would
not pick the right object. This operator had two properties "object" and
"type", but the latter was used while the former had the right description.
Now changed it to have only an "object" property, so that the above code works.

9 years agoFix #30140: cycles multi GPU rendering with one device supporting full
Brecht Van Lommel [Thu, 23 Feb 2012 20:27:17 +0000 (20:27 +0000)]
Fix #30140: cycles multi GPU rendering with one device supporting full
shading and the other not can't work correct, disabled that now.

9 years agoFix #30246: rendering multiple render layers with CUDA still not working,
Brecht Van Lommel [Thu, 23 Feb 2012 19:48:18 +0000 (19:48 +0000)]
Fix #30246: rendering multiple render layers with CUDA still not working,
should really be fixed now.

9 years agoFix #30323: Graph view in the Movie Clip Editor does not stay open
Sergey Sharybin [Thu, 23 Feb 2012 18:51:24 +0000 (18:51 +0000)]
Fix #30323: Graph view in the Movie Clip Editor does not stay open

In fact, Graph View wasn't been supposed to be opened in Clip show editor mode.
Made curves view unavailable from Clip view mode and store it's alignment in
a runtime flag in SpaceClip structure.

9 years agobmesh py api - ensure data layers to store bmesh pointers exist - removing all elemen...
Campbell Barton [Thu, 23 Feb 2012 17:22:37 +0000 (17:22 +0000)]
bmesh py api - ensure data layers to store bmesh pointers exist - removing all elements could free them for eg.

9 years agobmesh py api
Campbell Barton [Thu, 23 Feb 2012 17:14:53 +0000 (17:14 +0000)]
bmesh py api

added a utility function for converting a list of python BMesh elements into a C array.
use for this face_join as well as

9 years agoFix #30306: crash duplicating object with action actuator but no animation data.
Brecht Van Lommel [Thu, 23 Feb 2012 16:12:36 +0000 (16:12 +0000)]
Fix #30306: crash duplicating object with action actuator but no animation data.

9 years agobmesh split tool (Ykey), was only splitting off faces, unlike EditMesh which could...
Campbell Barton [Thu, 23 Feb 2012 16:00:53 +0000 (16:00 +0000)]
bmesh split tool (Ykey), was only splitting off faces, unlike EditMesh which could also split edges.
make this behavior optional and default to off (match EditMesh).

9 years agoprevious fix wasnt working in edge mode, now selection +/- works in vert/edge/face...
Campbell Barton [Thu, 23 Feb 2012 15:47:18 +0000 (15:47 +0000)]
previous fix wasnt working in edge mode, now selection +/- works in vert/edge/face modes.

9 years agofix [#30318] increase/decrease selection won't work (select-more/less)
Campbell Barton [Thu, 23 Feb 2012 15:22:29 +0000 (15:22 +0000)]
fix [#30318] increase/decrease selection won't work (select-more/less)

This was a problem with bmesh merge, now it works as expected again.

9 years agoFix #30298: fluid simulation from older files not working when loaded into 2.62,
Brecht Van Lommel [Thu, 23 Feb 2012 15:10:26 +0000 (15:10 +0000)]
Fix #30298: fluid simulation from older files not working when loaded into 2.62,
this was due to a wrong version patch which leaves simulation speed to 0.

9 years agoCycles: fix cuda kernel not getting rebuilt correctly after changes, due to
Brecht Van Lommel [Thu, 23 Feb 2012 15:10:10 +0000 (15:10 +0000)]
Cycles: fix cuda kernel not getting rebuilt correctly after changes, due to
refactoring that changed variable names, also fixed OpenCL compile issue with
advanced shading.

9 years agofix for meshes not showing up in the game engine.
Campbell Barton [Thu, 23 Feb 2012 14:24:45 +0000 (14:24 +0000)]
fix for meshes not showing up in the game engine.

9 years agobmesh py api, added: bmesh.utils.edge_rotate(edge, ccw=False)
Campbell Barton [Thu, 23 Feb 2012 14:15:26 +0000 (14:15 +0000)]
bmesh py api, added: bmesh.utils.edge_rotate(edge, ccw=False)

    also improved docstrings.

9 years agoquiet error message when saving (WM_OT_save_as_mainfile.use_mesh_compat not found).
Campbell Barton [Thu, 23 Feb 2012 13:14:59 +0000 (13:14 +0000)]
quiet error message when saving (WM_OT_save_as_mainfile.use_mesh_compat not found).

9 years agoelsyiun theme
Campbell Barton [Thu, 23 Feb 2012 13:08:42 +0000 (13:08 +0000)]
elsyiun theme
* too light unselected vertex color.
* active color was darker then selected color (make active a lighter tint of selected).

9 years agoFix #30320: Shading issue with boolean modifier
Sergey Sharybin [Thu, 23 Feb 2012 12:28:18 +0000 (12:28 +0000)]
Fix #30320: Shading issue with boolean modifier

Seems that after converting tessfaces into faces normals should be re-calculated.
At least that's what happening in some other modifiers and what makes boolean
work fine with smooth normals.

9 years agoadding icosphere was broken with own recent commit
Campbell Barton [Thu, 23 Feb 2012 12:11:27 +0000 (12:11 +0000)]
adding icosphere was broken with own recent commit

9 years agoSegments and rings for UV Sphere were swapped.
Sergey Sharybin [Thu, 23 Feb 2012 12:06:49 +0000 (12:06 +0000)]
Segments and rings for UV Sphere were swapped.

9 years agobmesh py api, new elements now take optional 'example' arguments, so the new data...
Campbell Barton [Thu, 23 Feb 2012 11:27:22 +0000 (11:27 +0000)]
bmesh py api, new elements now take optional 'example' arguments, so the new data copies from the existing.

9 years agouse __ prefix on header guards to avoid mixing up defines with api functions / classes.
Campbell Barton [Thu, 23 Feb 2012 10:41:31 +0000 (10:41 +0000)]
use __ prefix on header guards to avoid mixing up defines with api functions / classes.

9 years agoBugfix: don't read from a write-only VBO when updating grid buffers.
Nicholas Bishop [Thu, 23 Feb 2012 10:35:23 +0000 (10:35 +0000)]
Bugfix: don't read from a write-only VBO when updating grid buffers.

9 years agobmesh py api functions:
Campbell Barton [Thu, 23 Feb 2012 10:29:04 +0000 (10:29 +0000)]
bmesh py api functions:
bmesh.utils.vert_collapse_edge, vert_collapse_faces, vert_dissolve, face_split

9 years agobmesh api cleanup, remove unused header.
Campbell Barton [Thu, 23 Feb 2012 10:24:20 +0000 (10:24 +0000)]
bmesh api cleanup, remove unused header.

9 years agoFix #30315: Temporary proxy files are not erased and old proxys are not updated if...
Sergey Sharybin [Thu, 23 Feb 2012 10:18:10 +0000 (10:18 +0000)]
Fix #30315: Temporary proxy files are not erased and old proxys are not updated if the proxy is built more then once (windows)

Two issues are fixed here:
- On windows rename() doesn't actually renames file if destination file is already exist.
  Solved by ulinking previously built proxy/timecode.
- IMB_TC_MAX_SLOT was set to incorrect value leading to record run timecode calculating
  several times.

9 years agoBGE is compilable by MSVC again
Sergey Sharybin [Thu, 23 Feb 2012 09:40:10 +0000 (09:40 +0000)]
BGE is compilable by MSVC again

Compilation error was mostly caused by trying to use namespace std before it was
actually defined (e.g. before any include of stl header).
It's not actually good idea to use namespaces in header files -- it's really easy to
run into namespace conflicts and so. Resolved by not using "using namespace" in header
files and using full quality accessing to stl collections (e.g. std::vector).

9 years agobmesh minor api refactor
Campbell Barton [Thu, 23 Feb 2012 09:26:53 +0000 (09:26 +0000)]
bmesh minor api refactor
* BM_vert_in_face now loops over a vert's faces rather then every vert in the face.
* rename bmesh_radial_find_first_facevert --> bmesh_radial_find_first_faceloop
* rename bmesh_radial_find_next_facevert --> bmesh_radial_find_next_faceloop
* rename BM_vert_collapse_edges --> BM_vert_collapse_edge (only collapses one)

9 years ago* Fixed some typos in the code, patch [#30247] by Vladimir Rutsky (rutsky). Thanks!
Thomas Dinges [Thu, 23 Feb 2012 09:23:29 +0000 (09:23 +0000)]
* Fixed some typos in the code, patch [#30247] by Vladimir Rutsky (rutsky). Thanks!

9 years agoCycles:
Thomas Dinges [Thu, 23 Feb 2012 09:11:17 +0000 (09:11 +0000)]
* Remove obsolete comments in the Oren Nayar code.

9 years agoRefresh all cached ibmufs used by sequencer after all proxies are built.
Sergey Sharybin [Thu, 23 Feb 2012 08:41:13 +0000 (08:41 +0000)]
Refresh all cached ibmufs used by sequencer after all proxies are built.

Hopefully this will fix #30196: Proxies Not Visible in VSE Preview Window until Blender Reboot

9 years agoCode cleanup: replace some common CCG operations with functions.
Nicholas Bishop [Thu, 23 Feb 2012 07:21:33 +0000 (07:21 +0000)]
Code cleanup: replace some common CCG operations with functions.

The new functions are ccg_gridsize, ccg_edgesize, ccg_spacing, and
ccg_edgebase. These target most of the left-shift operations in the

9 years agobmesh py api, new submodules
Campbell Barton [Thu, 23 Feb 2012 05:20:09 +0000 (05:20 +0000)]
bmesh py api, new submodules
* bmesh.types, just allows access to BMVert, BMEdge etc.
* bmesh.utils, so far only added edge_split() function, this module will give access to mesh editing functions.

9 years agoswap arg order for BM_edge_split(), makes sense to have edge as first
Campbell Barton [Thu, 23 Feb 2012 05:17:07 +0000 (05:17 +0000)]
swap arg order for BM_edge_split(), makes sense to have edge as first

9 years ago- swap arg order for BM_face_copy() boolean options.
Campbell Barton [Thu, 23 Feb 2012 04:26:24 +0000 (04:26 +0000)]
- swap arg order for BM_face_copy() boolean options.
- use edge example for BM_face_split().

9 years agobmesh py api, more wrapped funcs:
Campbell Barton [Thu, 23 Feb 2012 04:19:25 +0000 (04:19 +0000)]
bmesh py api, more wrapped funcs:
* BMFace.copy(verts=True, faces=Trur)
* BMEdge.other_vert(vert)

9 years agobmesh py api: functions for getting the area/angle/center of BMesh elements.
Campbell Barton [Thu, 23 Feb 2012 03:39:39 +0000 (03:39 +0000)]
bmesh py api: functions for getting the area/angle/center of BMesh elements.

9 years agocode cleanup: dont set the namespace in STR_String.h - 'using namespace std', since...
Campbell Barton [Thu, 23 Feb 2012 02:36:30 +0000 (02:36 +0000)]
code cleanup: dont set the namespace in STR_String.h - 'using namespace std', since this is included in many places.

9 years agocode style cleanup, no functional changes.
Campbell Barton [Thu, 23 Feb 2012 02:23:42 +0000 (02:23 +0000)]
code style cleanup, no functional changes.

9 years agostyle cleanup for blenkernel, no functional changes.
Campbell Barton [Thu, 23 Feb 2012 02:17:50 +0000 (02:17 +0000)]
style cleanup for blenkernel, no functional changes.

9 years agoMove PBVH bitmap to separate header in blenlib.
Nicholas Bishop [Wed, 22 Feb 2012 23:57:31 +0000 (23:57 +0000)]
Move PBVH bitmap to separate header in blenlib.

The implementation was also changed in a couple ways: use unsigned
integers as its base type rather than unsigned chars, and uses macros
rather than functions. (These could be changed to inline functions.)

Currently it is still only used during PBVH building, but now it's
accessible elsewhere.