8 years agoSmall feature for the viewer linking operator: When no viewer node is present in...
Lukas Toenne [Sun, 4 Mar 2012 10:49:13 +0000 (10:49 +0000)]
Small feature for the viewer linking operator: When no viewer node is present in the tree, it automatically adds a new one next to the output socket.

Also changed the poll function of that operator to make sure it actually only works on compositor trees (others don't have viewer nodes).

8 years agostyle cleanup - comment spelling + translate some dutch.
Campbell Barton [Sun, 4 Mar 2012 04:35:12 +0000 (04:35 +0000)]
style cleanup - comment spelling + translate some dutch.

8 years agofix for issue raise by patch [#30154] non utf8 buildinfo, fails to import 'bpy' module.
Campbell Barton [Sun, 4 Mar 2012 03:14:38 +0000 (03:14 +0000)]
fix for issue raise by patch [#30154] non utf8 buildinfo, fails to import 'bpy' module.

we cant ensure buildinfo to have utf8 encoding so access it as bytes via python - a different workaround then this patch made.

also use C style string formatting for

8 years agoWhitespace tweaks
Joshua Leung [Sun, 4 Mar 2012 02:43:15 +0000 (02:43 +0000)]
Whitespace tweaks

8 years agobmesh: add back feature from 2.4x Ctrl+Shift+T subdivides quads in the alternate...
Campbell Barton [Sun, 4 Mar 2012 02:18:17 +0000 (02:18 +0000)]
bmesh: add back feature from 2.4x Ctrl+Shift+T subdivides quads in the alternate direction.

8 years agofix for crash in bmesh py api, was missing NULL checks for parsing sequences and...
Campbell Barton [Sun, 4 Mar 2012 02:09:02 +0000 (02:09 +0000)]
fix for crash in bmesh py api, was missing NULL checks for parsing sequences and had bad string formatting in exception.

8 years agochanges to ED_mesh_update() to work with OBJ import.
Campbell Barton [Sun, 4 Mar 2012 00:16:50 +0000 (00:16 +0000)]
changes to ED_mesh_update() to work with OBJ import.
* calculate vertex normals (previously was calculating face normals only)
* clear tessfaces unless theres an argument to build them. since no tessfaces is the default state right now.
* if convert_mfaces_to_mpolys() runs, dont calculate edges, since it already does that.

8 years ago#ifdef out ngon edge-ring loop support, from r44561, this is a nice feature but can...
Campbell Barton [Sat, 3 Mar 2012 22:27:34 +0000 (22:27 +0000)]
#ifdef out ngon edge-ring loop support, from r44561, this is a nice feature but can too easily give bad results, perhaps being it back with some sanity checks.

8 years agobmesh py api
Campbell Barton [Sat, 3 Mar 2012 22:07:58 +0000 (22:07 +0000)]
bmesh py api
* add BLI_rfindlink for reverse index lookup (used so bm.select_history[-1] doesn't have to loop the entire list twice).
* add so you can get the last selected item or None without having to check seq length.

8 years agoMany i18n fixings, based on [#30428] [2.62] Translation Issues.
Bastien Montagne [Sat, 3 Mar 2012 21:42:21 +0000 (21:42 +0000)]
Many i18n fixings, based on [#30428] [2.62] Translation Issues.

In fact, most "UI special cases" are not well translated, currently. :/ This affects especially the "Properties" panels. This commit should address problems in Graph editors, and 3D View (but probably not yet all of them). Yet it already adds more than 100 new messages (and fixes translated drawing of more).

Also done some style edits…

8 years agostyle cleanup - comment formatting
Campbell Barton [Sat, 3 Mar 2012 20:36:09 +0000 (20:36 +0000)]
style cleanup - comment formatting

8 years agostyle cleanup / comment formatting for bli/bke/bmesh
Campbell Barton [Sat, 3 Mar 2012 20:19:11 +0000 (20:19 +0000)]
style cleanup / comment formatting for bli/bke/bmesh

8 years agostyle cleanup - use aligned * prefixed blocks for descriptive comments (was already...
Campbell Barton [Sat, 3 Mar 2012 16:31:46 +0000 (16:31 +0000)]
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).

8 years agofix for leak in bmesh edge split - assert when invalid args are given rather then...
Campbell Barton [Sat, 3 Mar 2012 14:48:50 +0000 (14:48 +0000)]
fix for leak in bmesh edge split - assert when invalid args are given rather then returning NULL.

8 years agobmesh support for rotating multiple edges at once.
Campbell Barton [Sat, 3 Mar 2012 12:49:03 +0000 (12:49 +0000)]
bmesh support for rotating multiple edges at once.

8 years agobmesh edge rotate
Campbell Barton [Sat, 3 Mar 2012 12:35:37 +0000 (12:35 +0000)]
bmesh edge rotate
* improve check to see if edge rotate can be done,
  was checking if both edges verts have an edge count of 2, which is really a meaningless test since the verts can have stray edges connected and the result wont work right.
  instead check if the next verts in both faces share a vertex.

* add utility function BM_face_other_vert_loop() which gets the next loop in a face.
* add convenience function BM_edge_face_pair() which returns 2 faces for edges that have exactly 2 face users. (saves ugly e->l->radial_next ... in code) and is more readable.

8 years agostyle cleanup - spelling corrections & update some incorrect comments.
Campbell Barton [Sat, 3 Mar 2012 11:45:08 +0000 (11:45 +0000)]
style cleanup - spelling corrections & update some incorrect comments.

8 years agooption for the Armature Actuator to change the influence of a bone constraint.
Dalai Felinto [Sat, 3 Mar 2012 02:47:01 +0000 (02:47 +0000)]
option for the Armature Actuator to change the influence of a bone constraint.
Also adds DampedTrackTo to the list of supported constraints in the BGE

Test file:

Patch developed as part of a project to NF-UBC Nereus Program.
Development time 'sponsored' by the project.

8 years agofix for error report in property registration, it wasnt printing the error.
Campbell Barton [Sat, 3 Mar 2012 00:20:05 +0000 (00:20 +0000)]
fix for error report in property registration, it wasnt printing the error.

8 years ago"Fix" [#30431] UI string spelling & similar fixes.
Bastien Montagne [Fri, 2 Mar 2012 21:14:37 +0000 (21:14 +0000)]
"Fix" [#30431] UI string spelling & similar fixes.

All suggested changes looked good to me, thx to Michael Färber for this list of changes!

8 years agofix bug [#30426] crash in bmesh python api.
Campbell Barton [Fri, 2 Mar 2012 18:23:08 +0000 (18:23 +0000)]
fix bug [#30426] crash in bmesh python api.

if blender freed the BMesh before python was finished (on exit editmode for eg), python would attempt to access the bmesh to clear python pointers in it.

8 years agoremove prints committed by accident.
Campbell Barton [Fri, 2 Mar 2012 17:53:39 +0000 (17:53 +0000)]
remove prints committed by accident.

8 years agostyle cleanup
Campbell Barton [Fri, 2 Mar 2012 16:05:54 +0000 (16:05 +0000)]
style cleanup
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.

8 years agoFix #30421: Panorama option in camera properties always disabled
Sergey Sharybin [Fri, 2 Mar 2012 15:14:42 +0000 (15:14 +0000)]
Fix #30421: Panorama option in camera properties always disabled

Issue was caused by comparing camera's type with PERSPECTIVE instead of PERSP which is
declared in RNA files.

Patch by Susanne H., thanks!

8 years agomesh.update() now has option to calculate tessellation faces.
Campbell Barton [Fri, 2 Mar 2012 14:46:14 +0000 (14:46 +0000)]
mesh.update() now has option to calculate tessellation faces.

8 years ago== Python API docs ==
Luca Bonavita [Fri, 2 Mar 2012 14:39:18 +0000 (14:39 +0000)]
== Python API docs ==

- Works in macOSX now (hackish)
  (TODO: not check for OSX explicitly but handle exception if it fails)

- We can now generate rst files outside out of the source (was annoying)
  - Moved some vars at module level
  - Managing the command line args with argparse.
    Example usage:
    ./cmake/bin/blender -b -P ./blender/doc/python_api/ -- -o ./python_api

8 years agoCode Cleanup - naming consistancy for bmesh struct types
Campbell Barton [Fri, 2 Mar 2012 12:44:34 +0000 (12:44 +0000)]
Code Cleanup - naming consistancy for bmesh struct types

8 years agocode cleanup:
Campbell Barton [Fri, 2 Mar 2012 12:09:49 +0000 (12:09 +0000)]
code cleanup:
replace casts: '((Mesh *)ob->data)->edit_btmesh' with 'BMEdit_FromObject(ob)'

also minor style edits.

8 years agobmesh minor changes
Campbell Barton [Fri, 2 Mar 2012 10:49:15 +0000 (10:49 +0000)]
bmesh minor changes
* dont check selection and hiddent state (select + hide isnt allowed and api ensures this)
* MESH_OT_noise had incorrect check for texture (checked if slot [0] was filled but then used active texture)

8 years agoFix [#30419] Median wrongly setting lattice vertex weights.
Bastien Montagne [Fri, 2 Mar 2012 10:30:11 +0000 (10:30 +0000)]
Fix [#30419] Median wrongly setting lattice vertex weights.

In fact, the same bug affected curves' weights too. Now using the same method as for setting mesh edges' crease and bevel weights. Also factorized/simplified that part of code by defining a new utility func computing the scale factor.

Also greatly simplified UI code in same v3d_editvertex_buts() function, was really over-complicated (this fixes btw a few minor UI bugs in the transform editmode panel, like missing tips, etc.).

8 years agominor edits to last commit - use fixed chunksize, rather than the number of verts...
Campbell Barton [Thu, 1 Mar 2012 23:59:34 +0000 (23:59 +0000)]
minor edits to last commit - use fixed chunksize, rather than the number of verts/edges/faces in bm_mempool_init().

8 years agostyle cleanup for mempool
Campbell Barton [Thu, 1 Mar 2012 23:14:51 +0000 (23:14 +0000)]
style cleanup for mempool

8 years agoCode Cleanup: update to mempool, use flag rather then bool args.
Campbell Barton [Thu, 1 Mar 2012 22:59:18 +0000 (22:59 +0000)]
Code Cleanup: update to mempool, use flag rather then bool args.

8 years agobmesh - changes to mempool allocations
Campbell Barton [Thu, 1 Mar 2012 22:17:04 +0000 (22:17 +0000)]
bmesh - changes to mempool allocations
* double default edge allocation size (double the number of verts/faces).
* CustomData_bmesh_init_pool was using allocsize & chunksize as the same variable. Now use type specific chunk size.
* bmesh copy and editmode conversion now allocate the BMesh mempool size needed for the entire vert/edge/loop/face arrays since its known already.

8 years agoFix #30413: dynamic paint crash with texture slots with no texture assigned.
Brecht Van Lommel [Thu, 1 Mar 2012 20:41:13 +0000 (20:41 +0000)]
Fix #30413: dynamic paint crash with texture slots with no texture assigned.

8 years agobmmesh api - use struct rather than int[4] to initialize mesh sizes.
Campbell Barton [Thu, 1 Mar 2012 20:09:17 +0000 (20:09 +0000)]
bmmesh api - use struct rather than int[4] to initialize mesh sizes.

also correct bad assert() in previous commit.

8 years agoFix #30405: combine HSVA node not working correct with fixed color instead
Brecht Van Lommel [Thu, 1 Mar 2012 20:05:14 +0000 (20:05 +0000)]
Fix #30405: combine HSVA node not working correct with fixed color instead
of socket connected as input, patch by Denis Declara.

8 years agoFix related to #30416: python render_stats handler now also gets called when the
Brecht Van Lommel [Thu, 1 Mar 2012 19:19:10 +0000 (19:19 +0000)]
Fix related to #30416: python render_stats handler now also gets called when the
saved file message is printed.

8 years agoFix #30415: motion blur option still had an effect on external engines / cycles,
Brecht Van Lommel [Thu, 1 Mar 2012 19:19:04 +0000 (19:19 +0000)]
Fix #30415: motion blur option still had an effect on external engines / cycles,
should not be used then.

8 years agofix [#30280] bmesh: Dissolve with error message kills Crease
Campbell Barton [Thu, 1 Mar 2012 19:05:14 +0000 (19:05 +0000)]
fix [#30280] bmesh: Dissolve with error message kills Crease

CD_MASK_BMESH was didnt include crease of bevel weight - so copying the bmesh would skip these.

8 years agobmesh api:
Campbell Barton [Thu, 1 Mar 2012 17:38:04 +0000 (17:38 +0000)]
bmesh api:
* name bmesh operator func's BMO_slot_buffer_* rather then BMO_slot_* since it wasnt obvious some only dealt with buffer, some both.
* more typechecks and asserts of BMO_ functions (I lost some time calling a map with a buffer function that failed silently).
* small speedup for extrude check - test if the edge is wire _before_ doign a hash lookup.

8 years agoCode Cleanup: remove bmesh_radial_loop_next() function,
Campbell Barton [Thu, 1 Mar 2012 17:13:02 +0000 (17:13 +0000)]
Code Cleanup: remove bmesh_radial_loop_next() function,
just access l->radial_next

8 years agoSame fix for file output node as Brecht did in r44580, EXR compression is defined...
Lukas Toenne [Thu, 1 Mar 2012 17:02:05 +0000 (17:02 +0000)]
Same fix for file output node as Brecht did in r44580, EXR compression is defined in exr_codec instead compression.

8 years agofast-path for BM_edge_is_manifold, BM_edge_is_boundary functions.
Campbell Barton [Thu, 1 Mar 2012 16:56:42 +0000 (16:56 +0000)]
fast-path for BM_edge_is_manifold, BM_edge_is_boundary functions.

8 years agoFix related to #30384: multilayer exr files not saving compressed correctly.
Brecht Van Lommel [Thu, 1 Mar 2012 16:41:51 +0000 (16:41 +0000)]
Fix related to #30384: multilayer exr files not saving compressed correctly.

8 years agofix [#30399] bmesh: Extrusions adjacent to mirror plane leave stray edges.
Campbell Barton [Thu, 1 Mar 2012 16:27:44 +0000 (16:27 +0000)]
fix [#30399] bmesh: Extrusions adjacent to mirror plane leave stray edges.

thanks to Antony Riakiotakis for finding the cause.

8 years agobmesh regression with extrude.
Campbell Barton [Thu, 1 Mar 2012 16:12:11 +0000 (16:12 +0000)]
bmesh regression with extrude.

Extruding an edge where both verts were clipped would not create a face for this edge.

This is ok when a connected face is also extruded but not when the edge is selected on its own.

8 years agostyle cleanup
Campbell Barton [Thu, 1 Mar 2012 16:04:37 +0000 (16:04 +0000)]
style cleanup
* add extra argument to BMO_slot_map_to_flag() to filter by vert/edge/face
* made BMO_slot_map_* / BMO_slot_buffer_* functions stricter with type checking.

8 years agostyle cleanup: bmesh - have continue on new line, also avoid unneeded loop in bmo_ext...
Campbell Barton [Thu, 1 Mar 2012 13:13:08 +0000 (13:13 +0000)]
style cleanup: bmesh - have continue on new line, also avoid unneeded loop in bmo_extrude_face_region_exec() in some cases.

8 years agoSpelling Cleanup
Campbell Barton [Thu, 1 Mar 2012 12:20:18 +0000 (12:20 +0000)]
Spelling Cleanup

8 years agoCall the node freestorage callback _before_ actually freeing sockets, since this...
Lukas Toenne [Thu, 1 Mar 2012 12:07:59 +0000 (12:07 +0000)]
Call the node freestorage callback _before_ actually freeing sockets, since this is also responsible for freeing possible socket storage data.

8 years agoWhen adding a file output socket make it active, for convenience. Also move back...
Lukas Toenne [Thu, 1 Mar 2012 11:41:15 +0000 (11:41 +0000)]
When adding a file output socket make it active, for convenience. Also move back one index when deleting the last.

8 years agoFix for Multilayer EXR API. This was using implementation stubs directly in the heade...
Lukas Toenne [Thu, 1 Mar 2012 11:19:41 +0000 (11:19 +0000)]
Fix for Multilayer EXR API. This was using implementation stubs directly in the header file, causing problems with scons in particular.

8 years agoFix for wrong channel number in ImBuf when file node output format is something other...
Lukas Toenne [Thu, 1 Mar 2012 08:47:32 +0000 (08:47 +0000)]
Fix for wrong channel number in ImBuf when file node output format is something other than RGBA. This doesn't get set in the init function, has to be done manually (i guess?).

8 years ago* Removed DNA_DEPRECATED tag from old NodeImageFile struct typedef, it doesn't work...
Lukas Toenne [Thu, 1 Mar 2012 08:17:16 +0000 (08:17 +0000)]
* Removed DNA_DEPRECATED tag from old NodeImageFile struct typedef, it doesn't work that way (duh)

* Moved format field and added (deprecated) sfra and efra ints to ensure some forward compatibility of file output node. Earlier blender versions will simple interpret the struct as NodeFileImage, so by matching the first fields the numbers can stay somewhat valid.

8 years agoA number of improvements for the file output node(s).
Lukas Toenne [Thu, 1 Mar 2012 07:56:15 +0000 (07:56 +0000)]
A number of improvements for the file output node(s).

only CMP_NODE_OUTPUT_FILE remains. All functions renamed accordingly.

2) do_versions code for converting single-file output nodes into multi-file
output nodes. If a Z buffer input is used, the node is made into a multilayer
exr with two inputs. (see below). Also re-identifies multi-file output nodes
with the CMP_NODE_OUTPUT_FILE type.

3) "Global" format is stored in node now. By default this overrides any
per-socket settings.

4) Multilayer EXR output implemented. When M.EXR format is selected for node
format, all socket format details are ignored. Socket names are used for layer

5) Input buffer types are used as-is when possible, i.e. stored as B/W, RGB or
RGBA. In regular file output the format dictates the number of actual channels,
so the CompBuf is typechecked to the right type first. For multilayer EXR the
number of channels is more flexible, so an input buffer will store only the
channels it actually uses.

6) The editor socket type is updated from linked sockets as an indicator of the
actual data written to files. This may not be totally accurate for regular file
output though, due to restrictions of format setting.

8 years agoFix crash on edge slide when object has got multires modifier
Sergey Sharybin [Thu, 1 Mar 2012 07:10:45 +0000 (07:10 +0000)]
Fix crash on edge slide when object has got multires modifier

Issue was caused by fix for slide+automerge bug resulted in accessing to freed memory
from multires projection code. Solved by moving multires projection from cleanup callback
to special_aftertrans_update.

Patch by Antony Riakiotakis with some own corrections.

8 years agoRemove struct NgonInterpModifierData and related ModifierType Info.
Nicholas Bishop [Thu, 1 Mar 2012 02:20:10 +0000 (02:20 +0000)]
Remove struct NgonInterpModifierData and related ModifierType Info.

This modifier was already removed in r44288, looks like these were
just missed.

8 years agofix [#29135] NGons dont work with loop cut
Campbell Barton [Wed, 29 Feb 2012 17:23:41 +0000 (17:23 +0000)]
fix [#29135] NGons dont work with loop cut

patch by Andrew Wiggin

8 years agoChanges to startup.blend:
Sergey Sharybin [Wed, 29 Feb 2012 17:01:43 +0000 (17:01 +0000)]
Changes to startup.blend:

- Pinch/Magnify brush isn't available from vertex paint mode anymore.
- Switch default texture to Low Quality bump method
  The same method is used for new textures and it makes possible to
  view bump in 3D viewport with GLSL shading.
- Anisotropic filtering is set to 2x by default.

8 years agoadd an assert for inserting an egde with the same vertices and a BMESH_TODO for bevel.
Campbell Barton [Wed, 29 Feb 2012 16:29:09 +0000 (16:29 +0000)]
add an assert for inserting an egde with the same vertices and a BMESH_TODO for bevel.

8 years agoerror in recent header commit.
Campbell Barton [Wed, 29 Feb 2012 15:42:34 +0000 (15:42 +0000)]
error in recent header commit.

8 years agoMistake in previous commit test for API vert new: it failed for no-arg case.
Howard Trickey [Wed, 29 Feb 2012 15:35:10 +0000 (15:35 +0000)]
Mistake in previous commit test for API vert new: it failed for no-arg case.

8 years agouse floats rather then doubles for bmesh poly functions.
Campbell Barton [Wed, 29 Feb 2012 15:21:09 +0000 (15:21 +0000)]
use floats rather then doubles for bmesh poly functions.

8 years agoUndid part of commit 44552: can't use mathutils on doubles
Howard Trickey [Wed, 29 Feb 2012 15:10:01 +0000 (15:10 +0000)]
Undid part of commit 44552: can't use mathutils on doubles

8 years agoCode Cleanup: remove non existing function declarations.
Campbell Barton [Wed, 29 Feb 2012 15:00:37 +0000 (15:00 +0000)]
Code Cleanup: remove non existing function declarations.

added some missing functions too - which are not used yep but should be there for api completeness.
* CDDM_set_mloop
* CDDM_set_mpoly
* BLI_mempool_count

8 years agoFix #30328: Crash when using edge slide
Sergey Sharybin [Wed, 29 Feb 2012 14:32:09 +0000 (14:32 +0000)]
Fix #30328: Crash when using edge slide

Looks like it was missed BMesh element index for faces in emDM_drawMappedFacesMat.
There was already call of BM_mesh_elem_index_ensure to ensure there's element
index for vertices, added flag to ensure there's also index for faces.

8 years agoCode cleanup, no functional change: use mathutils copy
Howard Trickey [Wed, 29 Feb 2012 14:23:31 +0000 (14:23 +0000)]
Code cleanup, no functional change: use mathutils copy

Also renamed a variable to make intent clearer (else seemed like
there was a bug).

8 years agoFix 30401: Python API vert new((0,0,0)) crashes.
Howard Trickey [Wed, 29 Feb 2012 14:16:35 +0000 (14:16 +0000)]
Fix 30401: Python API vert new((0,0,0)) crashes.

Thanks to Campbell for fix, adding an & to an arg.
Also needed to negate the sense of a later test.

8 years agoUI: change shortcut to clear value in button with mouse over it (for the second
Brecht Van Lommel [Wed, 29 Feb 2012 14:10:12 +0000 (14:10 +0000)]
UI: change shortcut to clear value in button with mouse over it (for the second
time, sorry), from delete to backspace. Delete did not work on buttons in nodes,
because it would delete the node itself or if we changed the priority interfere
with deleting nodes if the cursor was placed accidentally over a button in a node.

Patch by Damir Prebeg.

8 years agobmesh py api - initial support for selection history.
Campbell Barton [Wed, 29 Feb 2012 14:05:03 +0000 (14:05 +0000)]
bmesh py api - initial support for selection history.

8 years agoBoolean modifier:
Sergey Sharybin [Wed, 29 Feb 2012 13:48:19 +0000 (13:48 +0000)]
Boolean modifier:

- Fixed convex quad detection (in some special cases non-convex quad was detecting as convex)
- Do not add faces with zero area to the output object.

This should resolve #30395: Degenerated triangles from BMesh + Difference

8 years agoCompilation error fix for recent indicer refactor commit.
Sergey Sharybin [Wed, 29 Feb 2012 13:17:11 +0000 (13:17 +0000)]
Compilation error fix for recent indicer refactor commit.

8 years agoReverting poll changes of last commit.
Joerg Mueller [Wed, 29 Feb 2012 12:11:06 +0000 (12:11 +0000)]
Reverting poll changes of last commit.

8 years agoRefactor of proxies build operators
Sergey Sharybin [Wed, 29 Feb 2012 12:08:26 +0000 (12:08 +0000)]
Refactor of proxies build operators

Split proxy build operator into three parts:
- Prepare context (IMB_anim_index_rebuild_context) which prepares all
  needed data and stores it in an anonymous structure used by specific
  builder lately.
- Build proxies/timecodes into temporary files (IMB_anim_index_rebuild)
  This function will build all selected proxies/timecodes into a temporary
  files so old proxies will be still available during building.
- Finish building proxies (IMB_anim_index_rebuild_finish) which copies
  temporary files over old proxies filed and releases all resources used
  by a context.

Context creation and finishing building happens in a main thread so
it's easy and safe to close all opened handles of proxies files and
refresh cache after rebuilding is finished.

This should finally fix #30315: Temporary proxy files are not erased and old proxys are not updated if the proxy is built more then once (windows)

8 years agoMaking crossfading sounds accessible in the sequencer menu.
Joerg Mueller [Wed, 29 Feb 2012 11:23:27 +0000 (11:23 +0000)]
Making crossfading sounds accessible in the sequencer menu.

8 years agoCode cleanup: replace a few macros in CCGSubSurf with inline functions.
Nicholas Bishop [Wed, 29 Feb 2012 08:35:23 +0000 (08:35 +0000)]
Code cleanup: replace a few macros in CCGSubSurf with inline functions.

8 years agoupdate doxygen comments for bmesh.
Campbell Barton [Wed, 29 Feb 2012 06:55:10 +0000 (06:55 +0000)]
update doxygen comments for bmesh.

8 years agoAdd blenlib function to initialize vectors from a single float.
Nicholas Bishop [Wed, 29 Feb 2012 04:17:26 +0000 (04:17 +0000)]
Add blenlib function to initialize vectors from a single float.

The new functions are copy_v2_fl, copy_v3_fl, and copy_v4_fl.

8 years agondof button handling improvements: Spaceball5000's A,B,C buttons can now be keymapped...
Mike Erwin [Wed, 29 Feb 2012 02:44:08 +0000 (02:44 +0000)]
ndof button handling improvements: Spaceball5000's A,B,C buttons can now be keymapped, ndof modifiers (shift,alt,etc.) are almost ready but still hardcoded to act like keyboard for now. added a check to prevent crash on Linux when device is plugged in after blender starts. also fixed a bug introduced by my last commit that affected the SpaceTraveler and serial devices.

8 years agoBugfix: vertexpaint blur brush was broken.
Nicholas Bishop [Wed, 29 Feb 2012 00:14:58 +0000 (00:14 +0000)]
Bugfix: vertexpaint blur brush was broken.

Just a minor loop iteration bug.

8 years agoCode cleanup for the neighbor_average() sculpt function.
Nicholas Bishop [Tue, 28 Feb 2012 23:08:40 +0000 (23:08 +0000)]
Code cleanup for the neighbor_average() sculpt function.

Moved some of the code into a couple new mesh functions for searching
in poly loops to simplify the function, the rest is just cosmetic

8 years agoStyle Cleanup, no functional changes.
Campbell Barton [Tue, 28 Feb 2012 22:54:09 +0000 (22:54 +0000)]
Style Cleanup, no functional changes.

8 years agofix [#30367] Face Fills Crossed
Campbell Barton [Tue, 28 Feb 2012 22:52:09 +0000 (22:52 +0000)]
fix [#30367] Face Fills Crossed

when making a quad from 2 edges - it was comparing the edge lengths to avoid making a bowtie quad. but this doesnt work in all cases, now compare normals instead.

8 years agoFix a couple typos in comments.
Nicholas Bishop [Tue, 28 Feb 2012 20:55:55 +0000 (20:55 +0000)]
Fix a couple typos in comments.

8 years agoAdd solid background behind text in search menu.
Nicholas Bishop [Tue, 28 Feb 2012 20:46:55 +0000 (20:46 +0000)]
Add solid background behind text in search menu.

This fixes the issue of text being hard to read due to (e.g.) black
text on a dark icon.

Reviewed by Brecht:

8 years agofix for leak in bmo_edgenet_fill_exec and remove invalid comment.
Campbell Barton [Tue, 28 Feb 2012 20:06:52 +0000 (20:06 +0000)]
fix for leak in bmo_edgenet_fill_exec and remove invalid comment.

8 years agoCycles: fix AO pass not rendering with AO enabled for world, and make mask
Brecht Van Lommel [Tue, 28 Feb 2012 19:43:33 +0000 (19:43 +0000)]
Cycles: fix AO pass not rendering with AO enabled for world, and make mask
layers work more like blender internal.

8 years agocode cleanup: de-duplicate bmesh face creation code,
Campbell Barton [Tue, 28 Feb 2012 19:30:44 +0000 (19:30 +0000)]
code cleanup: de-duplicate bmesh face creation code,

8 years agoCode Cleanup:
Campbell Barton [Tue, 28 Feb 2012 19:10:53 +0000 (19:10 +0000)]
Code Cleanup:
- apply some rules for function naming conventions, added to main bmesh doc in bmesh.h.
- remove unused function BM_loops_to_corners().

8 years agomore header re-arranging.
Campbell Barton [Tue, 28 Feb 2012 18:28:30 +0000 (18:28 +0000)]
more header re-arranging.

Some function comments were in headers, some in the C files, some in both.
Moved function comments from headers into the C files.

8 years agobmesh: re-arrange headers
Campbell Barton [Tue, 28 Feb 2012 16:47:12 +0000 (16:47 +0000)]
bmesh: re-arrange headers

8 years agoCycles: ambient occlusion support, with AO factor and distance, and a render pass.
Brecht Van Lommel [Tue, 28 Feb 2012 16:45:08 +0000 (16:45 +0000)]
Cycles: ambient occlusion support, with AO factor and distance, and a render pass.

8 years agoCycles: fix msvc compile warning, patch by Jason Wilkins.
Brecht Van Lommel [Tue, 28 Feb 2012 16:45:01 +0000 (16:45 +0000)]
Cycles: fix msvc compile warning, patch by Jason Wilkins.

8 years agoCycles: support for camera rendering an environment map with equirectangular
Brecht Van Lommel [Tue, 28 Feb 2012 16:44:54 +0000 (16:44 +0000)]
Cycles: support for camera rendering an environment map with equirectangular
environment map, by enabling the Panorama option in the camera.

The focal length or sensor settings are not used, the UI can be tweaked still to
communicate this, also panorama should probably become a proper camera type like
perspective or ortho.

8 years agoCycles: support for mask layers in render layer, this has the same effect as
Brecht Van Lommel [Tue, 28 Feb 2012 16:44:45 +0000 (16:44 +0000)]
Cycles: support for mask layers in render layer, this has the same effect as
assigning holdout shaders to every object in the specified layers.

8 years agoCycles: extra OpenCL NULL point check, maybe avoids some crashes. Don't think
Brecht Van Lommel [Tue, 28 Feb 2012 16:44:36 +0000 (16:44 +0000)]
Cycles: extra OpenCL NULL point check, maybe avoids some crashes. Don't think
this should ever happen in practice but maybe it does anyway.

8 years agocode cleanup,
Campbell Barton [Tue, 28 Feb 2012 16:29:48 +0000 (16:29 +0000)]
code cleanup,
- bmesh_newcore.c -> bmesh_core.c.
- add bmesh_interp header.

8 years agocode cleanup: use float vector size in function definitions, and const's where the...
Campbell Barton [Tue, 28 Feb 2012 14:05:00 +0000 (14:05 +0000)]
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.

8 years agofix [#30361] Edge Length will not be diplayed properly with Clipping Borders
Campbell Barton [Tue, 28 Feb 2012 13:18:20 +0000 (13:18 +0000)]
fix [#30361] Edge Length will not be diplayed properly with Clipping Borders

the clipping test done for text drawing was called with local=FALSE, however with mesh info text this needs the local argument to be set.