blender.git
8 years agocode cleanup: better use of BLI_array_* (grow in larger steps where possible), includ...
Campbell Barton [Mon, 23 Apr 2012 02:17:57 +0000 (02:17 +0000)]
code cleanup: better use of BLI_array_* (grow in larger steps where possible), include BMO_iter_new in for loops.

8 years agocode cleanup: change C naming convention (so py and C api match), eg:
Campbell Barton [Mon, 23 Apr 2012 01:19:50 +0000 (01:19 +0000)]
code cleanup: change C naming convention (so py and C api match), eg:

    C: BM_face_calc_area(f), Py: BMFace.calc_area()

8 years agoUpdate build files to use the new lib locations for MinGW. For builders: you will...
Antony Riakiotakis [Mon, 23 Apr 2012 01:11:42 +0000 (01:11 +0000)]
Update build files to use the new lib locations for MinGW. For builders: you will need to checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/mingw32/
to build with MinGW past this commit.

8 years agoclear the FGON edge flag when updating old meshes to polygons. (we may wan't to reuse...
Campbell Barton [Mon, 23 Apr 2012 00:58:17 +0000 (00:58 +0000)]
clear the FGON edge flag when updating old meshes to polygons. (we may wan't to reuse the flag later)

8 years agoadd mesh example with docs explaining polygon / loop relationship
Campbell Barton [Mon, 23 Apr 2012 00:20:32 +0000 (00:20 +0000)]
add mesh example with docs explaining polygon / loop relationship

8 years agorename Mesh.uv_loop_layers --> uv_layers
Campbell Barton [Sun, 22 Apr 2012 23:51:50 +0000 (23:51 +0000)]
rename Mesh.uv_loop_layers --> uv_layers

add filtering for document generator to support --partial bpy.types.SomeType

8 years agoBugfix [#30298] Fluid-Sytem does not work! (Part 2, Part 1 fixed by Brecht)
Daniel Genrich [Sun, 22 Apr 2012 17:31:39 +0000 (17:31 +0000)]
Bugfix [#30298] Fluid-Sytem does not work! (Part 2, Part 1 fixed by Brecht)

Canceling fluid simulation did not work when speed was zero.

8 years agoSolve restriction of MinGW that users have to turn ffmpeg on for cmake.
Antony Riakiotakis [Sun, 22 Apr 2012 14:33:40 +0000 (14:33 +0000)]
Solve restriction of MinGW that users have to turn ffmpeg on for cmake.

8 years agostyle cleanup: comments
Campbell Barton [Sun, 22 Apr 2012 11:54:53 +0000 (11:54 +0000)]
style cleanup: comments

8 years agoOSX/cmake: LESS must be VERSION_LESS for XCODE_VERSION
Jens Verwiebe [Sun, 22 Apr 2012 11:23:17 +0000 (11:23 +0000)]
OSX/cmake: LESS must be VERSION_LESS for XCODE_VERSION

8 years agobmesh py api: expose BM_face_split_n() to the python api;
Campbell Barton [Sun, 22 Apr 2012 10:19:24 +0000 (10:19 +0000)]
bmesh py api: expose BM_face_split_n() to the python api;
 face_fill(..., coords=(v1, v2, ...))

This is the same function the knife tool uses. should be handy for dicing up geometry in py.

8 years agocorrection to py docs from mgschwan on IRC.
Campbell Barton [Sun, 22 Apr 2012 08:36:39 +0000 (08:36 +0000)]
correction to py docs from mgschwan on IRC.

8 years agoCtrl+RMB to select an object in editmode didnt work in edge mode (which is not great...
Campbell Barton [Sun, 22 Apr 2012 05:30:34 +0000 (05:30 +0000)]
Ctrl+RMB to select an object in editmode didnt work in edge mode (which is not great usability imho and confusing),
now pass through if no edges can be tagged and select the object.

8 years agoMissed this file in my last commit.
Mitchell Stokes [Sun, 22 Apr 2012 04:01:14 +0000 (04:01 +0000)]
Missed this file in my last commit.

8 years agosmall speedup to VertDataMulN(av, n), when passed expressions to 'n' they were calcul...
Campbell Barton [Sun, 22 Apr 2012 03:25:48 +0000 (03:25 +0000)]
small speedup to VertDataMulN(av, n), when passed expressions to 'n' they were calculated 3 times, cuts 78 instructions from resulting assembly (gcc -O2).

8 years agosubsurf - avoid 'for' loop finding the edge index in a face multiple times when calli...
Campbell Barton [Sun, 22 Apr 2012 03:07:21 +0000 (03:07 +0000)]
subsurf - avoid 'for' loop finding the edge index in a face multiple times when calling _face_getIFCoEdge. add asset so passing wrong value errors out in debug mode. gives small speedup to subsurf.

8 years agoFix for bug #30219: "Obstacle Simulation of Steering Actuator does not work with...
Mitchell Stokes [Sun, 22 Apr 2012 02:16:33 +0000 (02:16 +0000)]
Fix for bug #30219: "Obstacle Simulation of Steering Actuator does not work with added objects"

The steering actuator was filling its m_obstacle member when it was created (i.e., conversion time), which meant it had the wrong pointer after the actuator was replicated. Now m_obstacle is reassigned when the actuator is replicated.

8 years ago- fix memory leak in mesh_strip_loose_polysloops(), occurred during 3ds import.
Campbell Barton [Sun, 22 Apr 2012 00:27:38 +0000 (00:27 +0000)]
- fix memory leak in mesh_strip_loose_polysloops(), occurred during 3ds import.
- updating normals in py/api's mesh.transform() wasn't working and gave annoying print, disable this, script authors can call calc_normals explicitly if they need.

8 years agostyle cleanup
Campbell Barton [Sun, 22 Apr 2012 00:20:58 +0000 (00:20 +0000)]
style cleanup

8 years agoFix [#30954] Fluid obstacle checkbox has no effect
Daniel Genrich [Sat, 21 Apr 2012 22:09:09 +0000 (22:09 +0000)]
Fix [#30954] Fluid obstacle checkbox has no effect

Note: Supporting obstacles which can be enabled/disabled as animated propoerty is not likely to happen. So I marked this as "Won't fix"/TODO.
I also reverted last commit on this bug because it didn't work and disabled the property from UI to avoid confusion.

8 years agofix [#31045]
Campbell Barton [Sat, 21 Apr 2012 15:56:50 +0000 (15:56 +0000)]
fix [#31045]

the blender game engine could reference a freed texface or mcolor array.

8 years agostyle cleanup: multi-line if statements.
Campbell Barton [Sat, 21 Apr 2012 15:11:03 +0000 (15:11 +0000)]
style cleanup: multi-line if statements.

8 years agostyle cleanup: correct typos
Campbell Barton [Sat, 21 Apr 2012 14:14:58 +0000 (14:14 +0000)]
style cleanup: correct typos

8 years agofix [#31049] New Faces (F) always solid shaded
Campbell Barton [Sat, 21 Apr 2012 13:58:29 +0000 (13:58 +0000)]
fix [#31049] New Faces (F) always solid shaded

8 years agostyle cleanup
Campbell Barton [Sat, 21 Apr 2012 13:37:26 +0000 (13:37 +0000)]
style cleanup

8 years agoFix for image node: has to check the number of actual node sockets before accessing...
Lukas Toenne [Sat, 21 Apr 2012 13:36:57 +0000 (13:36 +0000)]
Fix for image node: has to check the number of actual node sockets before accessing the output data stack, to avoid reading uninitialized memory.

8 years agofix [#31048] converting curve object to mesh makes object disapper from 3D view
Campbell Barton [Sat, 21 Apr 2012 13:08:26 +0000 (13:08 +0000)]
fix [#31048] converting curve object to mesh makes object disapper from 3D view

8 years agostyle cleanup
Campbell Barton [Sat, 21 Apr 2012 12:51:47 +0000 (12:51 +0000)]
style cleanup

8 years agofix [#31047] ctrl+mouse select in edit-mode does not select external object
Campbell Barton [Sat, 21 Apr 2012 12:14:07 +0000 (12:14 +0000)]
fix [#31047] ctrl+mouse select in edit-mode does not select external object
fix [#30535] Shortest Path Select not working well in vertex mode.

regression from after bmesh merge, Ctrl+Right mouse for selecting shortest path is meant for edge mode only.

8 years agofix error in recent rip refactor, also add comment.
Campbell Barton [Sat, 21 Apr 2012 06:42:21 +0000 (06:42 +0000)]
fix error in recent rip refactor, also add comment.

8 years agostyle cleanup: pep8, also quiet compiler warning.
Campbell Barton [Fri, 20 Apr 2012 18:50:18 +0000 (18:50 +0000)]
style cleanup: pep8, also quiet compiler warning.

8 years agofix for error using uninitialized variable with shape key conversion.
Campbell Barton [Fri, 20 Apr 2012 18:34:58 +0000 (18:34 +0000)]
fix for error using uninitialized variable with shape key conversion.

8 years agoFix [#31008] IK armature resize goes ugly (Pose mode resize).
Bastien Montagne [Fri, 20 Apr 2012 17:26:40 +0000 (17:26 +0000)]
Fix [#31008] IK armature resize goes ugly (Pose mode resize).

This affected legacy solver. Note that even if I don't expect any, this fix *may* break some other IK setups, so animators, please check your IK rigs using legacy solver. ;) Easy to revert if needed, anyway.

Note that iTaSC solver is also buggy with some scaled parent, but here IK'ed bones just can’t get scaled in any way (either from parent or from there own transformation)... Will try to find what's happenning, though the code is even harder than legacy solver to follow :/

8 years agocode cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when...
Campbell Barton [Fri, 20 Apr 2012 16:55:47 +0000 (16:55 +0000)]
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).

Add asserts so the correct types are ensured.

8 years agoattempt to fix [#31033], cant redo the bug but button layout wasnt great
Campbell Barton [Fri, 20 Apr 2012 16:17:52 +0000 (16:17 +0000)]
attempt to fix [#31033], cant redo the bug but button layout wasnt great
- no more blank space under XYZ
- scales with DPI

8 years agofix [#31036] image.gl_load() consistently segfault at gluBuild2DMipmaps
Campbell Barton [Fri, 20 Apr 2012 15:06:54 +0000 (15:06 +0000)]
fix [#31036] image.gl_load() consistently segfault at gluBuild2DMipmaps

incorrect argument to gluBuild2DMipmaps()

8 years agoaparently `yards` are not used a lot, suppress their use in button display (input...
Campbell Barton [Fri, 20 Apr 2012 14:59:24 +0000 (14:59 +0000)]
aparently `yards` are not used a lot, suppress their use in button display (input still knows about them) - was reported as a bug.

also fix minor rip bug where active selection was lost.

8 years agoKnife tool: Increase the header string length to avoid clipping the message.
Antony Riakiotakis [Fri, 20 Apr 2012 14:46:46 +0000 (14:46 +0000)]
Knife tool: Increase the header string length to avoid clipping the message.

8 years agorefactor rip tool out into vert/edge functions, was getting too unweildy having them...
Campbell Barton [Fri, 20 Apr 2012 14:36:06 +0000 (14:36 +0000)]
refactor rip tool out into vert/edge functions, was getting too unweildy having them mixed in.

8 years agoknife tool alpha values where being set to zero (intersection points weren't visible...
Campbell Barton [Fri, 20 Apr 2012 13:45:38 +0000 (13:45 +0000)]
knife tool alpha values where being set to zero (intersection points weren't visible), error made when converting to theme colors.

also minor bmesh style cleanup.

8 years agoFix for particle dupli group relative offsets. The relative transforms of objects...
Lukas Toenne [Fri, 20 Apr 2012 12:55:57 +0000 (12:55 +0000)]
Fix for particle dupli group relative offsets. The relative transforms of objects in the instanced group were not scaled according to the particle size, which would be expected when rendering as 'Whole Group'. Requested by Francesco Siddi (fsiddi) over IRC.

8 years agostyle cleanup
Campbell Barton [Fri, 20 Apr 2012 12:26:16 +0000 (12:26 +0000)]
style cleanup

8 years agoknife tool: use the knife mouse cursor, dont store the context in the knife tool...
Campbell Barton [Fri, 20 Apr 2012 12:19:09 +0000 (12:19 +0000)]
knife tool: use the knife mouse cursor, dont store the context in the knife tool data, also rename struct camel case (follow own style guide)

8 years agoknife tool: store color once on initializations, de-select only when cutting selected.
Campbell Barton [Fri, 20 Apr 2012 12:05:08 +0000 (12:05 +0000)]
knife tool: store color once on initializations, de-select only when cutting selected.

8 years agoknife tool now selects newly cut edges.
Campbell Barton [Fri, 20 Apr 2012 11:14:16 +0000 (11:14 +0000)]
knife tool now selects newly cut edges.

8 years agoknife tool modifications
Campbell Barton [Fri, 20 Apr 2012 10:52:13 +0000 (10:52 +0000)]
knife tool modifications

from user freedback it seems there are 2 use cases, both valid.
* Select geometry and cut the selection in half (as 2.4x worked)
* Point-to-point define the faces to cut, dont cut through everything (only cut what you see).

With the second, since you are already selecting the edges to cut and snapping to them. only cutting the selecting is limiting/annoying.

Modifying these options while the knife tool runs doesn't work well, so expose under 2 keys, K, Shift-K.

8 years agobmesh py api: remove bmesh.loops.index_update(), it wasn't working, as joe noticed.
Campbell Barton [Thu, 19 Apr 2012 23:23:29 +0000 (23:23 +0000)]
bmesh py api: remove bmesh.loops.index_update(), it wasn't working, as joe noticed.

8 years agorip tool wasnt working on a single edge selection in some cases (own error in recent...
Campbell Barton [Thu, 19 Apr 2012 23:16:57 +0000 (23:16 +0000)]
rip tool wasnt working on a single edge selection in some cases (own error in recent fix).

8 years agoadd asserts for invalid iteratpr values so we can catch them in debug mode.
Campbell Barton [Thu, 19 Apr 2012 22:40:09 +0000 (22:40 +0000)]
add asserts for invalid iteratpr values so we can catch them in debug mode.

8 years agobmesh: improve rip tool
Campbell Barton [Thu, 19 Apr 2012 21:47:32 +0000 (21:47 +0000)]
bmesh: improve rip tool
- When the rip extends into a fan, pick the opposite edge in the fan (rather then 2 along)
- When stepping over the fan to find the rip edge, walk in the direction closest to the mouse (generally works nicer)

8 years agoFixed crash in iter api, triggered by calling index_update() on the loop py seq in...
Joseph Eagar [Thu, 19 Apr 2012 21:14:11 +0000 (21:14 +0000)]
Fixed crash in iter api, triggered by calling index_update() on the loop py seq in the py api.  Note, I didn't fix the underlying problem (bad iter type) so loops.index_update() still isn't working (it's just not crashing).

8 years agobmesh py api: expose BMVert.calc_shell_factor()
Campbell Barton [Thu, 19 Apr 2012 19:13:57 +0000 (19:13 +0000)]
bmesh py api: expose BMVert.calc_shell_factor()

8 years agobmesh inset: add depth option (make use of relative and even offset options)
Campbell Barton [Thu, 19 Apr 2012 19:03:15 +0000 (19:03 +0000)]
bmesh inset: add depth option (make use of relative and even offset options)

8 years agoBMESH_TODO: randomize vertices working again.
Bastien Montagne [Thu, 19 Apr 2012 18:53:32 +0000 (18:53 +0000)]
BMESH_TODO: randomize vertices working again.

That whole "element re-arrange" area could use some love, though (e.g. make a single vert operator with more options, as faces; and make faces work in edit mode, probably no more reasons to switch to object mode?). Post-release TODO, anyway.

Also spotted a glitch in BLI_rand code, imho, which makes first element of an array not guarantied to be shuffled by BLI_array_randomize()... No correction though, as this might/would affect other parts of the code!

8 years agocommitted check by mistake, its not needed.
Campbell Barton [Thu, 19 Apr 2012 17:26:22 +0000 (17:26 +0000)]
committed check by mistake, its not needed.

8 years agobmesh rip: when there are selected faces call region_to_loop before ripping. gives...
Campbell Barton [Thu, 19 Apr 2012 16:57:50 +0000 (16:57 +0000)]
bmesh rip: when there are selected faces call region_to_loop before ripping. gives better results then previous fix when there are selected faces as apart of an edge selection.

8 years agofix [#31015] Rip has weird results in vertex selection mode vs face
Campbell Barton [Thu, 19 Apr 2012 16:20:07 +0000 (16:20 +0000)]
fix [#31015] Rip has weird results in vertex selection mode vs face

8 years agoFix #31016: rigid body joint constraint in game engine did not respect constraint
Brecht Van Lommel [Thu, 19 Apr 2012 15:14:28 +0000 (15:14 +0000)]
Fix #31016: rigid body joint constraint in game engine did not respect constraint
enable/disable option.

8 years agoFix exposure being applied to cycles AO pass.
Brecht Van Lommel [Thu, 19 Apr 2012 15:00:54 +0000 (15:00 +0000)]
Fix exposure being applied to cycles AO pass.

8 years agocode cleanup: remove unused BMesh args.
Campbell Barton [Thu, 19 Apr 2012 14:38:09 +0000 (14:38 +0000)]
code cleanup: remove unused BMesh args.

8 years agoChange knife header to reflect current key binding (RMB cancels now).
Howard Trickey [Thu, 19 Apr 2012 13:59:03 +0000 (13:59 +0000)]
Change knife header to reflect current key binding (RMB cancels now).

8 years agoremove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros...
Campbell Barton [Thu, 19 Apr 2012 13:47:58 +0000 (13:47 +0000)]
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).

8 years agoFor bug #30931, change knife hardcoded colors to ones derived from theme.
Howard Trickey [Thu, 19 Apr 2012 13:44:28 +0000 (13:44 +0000)]
For bug #30931, change knife hardcoded colors to ones derived from theme.

For now, just reusing some theme colors that are there for other reasons
but matched approximately the colors used now.
Except that cut lines are now purple-violet, so that they contrast
with grid and edges better, especially in wireframe.

8 years agocode cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.
Campbell Barton [Thu, 19 Apr 2012 12:45:56 +0000 (12:45 +0000)]
code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.

8 years agoBMESH_TODO: xsort of vertices working again.
Bastien Montagne [Thu, 19 Apr 2012 12:31:39 +0000 (12:31 +0000)]
BMESH_TODO: xsort of vertices working again.

This commits adds a new function which can remap vertices/edges/faces of a BMesh in a new given order:
void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx)

8 years agostyle cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
Campbell Barton [Thu, 19 Apr 2012 11:44:12 +0000 (11:44 +0000)]
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER

8 years agobmesh api function: BM_edge_face_tangent()
Campbell Barton [Thu, 19 Apr 2012 11:25:05 +0000 (11:25 +0000)]
bmesh api function: BM_edge_face_tangent()
 was used by inset but make into an api function since scripts can use this too.

8 years agoFix #30998: copy to selected in properties editor not working for bones.
Brecht Van Lommel [Thu, 19 Apr 2012 10:49:45 +0000 (10:49 +0000)]
Fix #30998: copy to selected in properties editor not working for bones.

8 years agoFix #31009: edge split did not split non-manifold edges correctly, it should
Brecht Van Lommel [Thu, 19 Apr 2012 09:38:07 +0000 (09:38 +0000)]
Fix #31009: edge split did not split non-manifold edges correctly, it should
create a separate edge for each face.

8 years agoFix #31007: text editor delete at end of last line did unnecessary undo push.
Brecht Van Lommel [Thu, 19 Apr 2012 09:27:11 +0000 (09:27 +0000)]
Fix #31007: text editor delete at end of last line did unnecessary undo push.
Patch by Justin Dailey, simplified a bit.

8 years agofix bevel edge angle (wasnt hooked up to new code), vertex-bevel angle isnt working...
Campbell Barton [Thu, 19 Apr 2012 07:00:29 +0000 (07:00 +0000)]
fix bevel edge angle (wasnt hooked up to new code), vertex-bevel angle isnt working still

8 years agostyle cleanup: bevel code, also remove unneeded flag setting.
Campbell Barton [Thu, 19 Apr 2012 06:10:21 +0000 (06:10 +0000)]
style cleanup: bevel code, also remove unneeded flag setting.

8 years agoFix for disabling noisy opennl output.
Nicholas Bishop [Thu, 19 Apr 2012 02:12:39 +0000 (02:12 +0000)]
Fix for disabling noisy opennl output.

More info from bf-committers:
http://lists.blender.org/pipermail/bf-committers/2012-April/036339.html

8 years agoFix: Mark seams in uv editor didn't work
Antony Riakiotakis [Wed, 18 Apr 2012 22:27:24 +0000 (22:27 +0000)]
Fix: Mark seams in uv editor didn't work

8 years agoFixing bug [#31005] Nurbs UI bug
Thomas Dinges [Wed, 18 Apr 2012 20:43:07 +0000 (20:43 +0000)]
Fixing bug [#31005] Nurbs UI bug
* W button was hidden, due to too small y alignment.

8 years agoRelease Status:
Thomas Dinges [Wed, 18 Apr 2012 20:07:35 +0000 (20:07 +0000)]
Release Status:
* Still BCon4, rc phase now.

8 years agoknife tool: Add state indicator in header for tool options
Antony Riakiotakis [Wed, 18 Apr 2012 19:59:27 +0000 (19:59 +0000)]
knife tool: Add state indicator in header for tool options

8 years agoimprove recent commit to copy loop data on extrude
Campbell Barton [Wed, 18 Apr 2012 19:05:28 +0000 (19:05 +0000)]
improve recent commit to copy loop data on extrude
- in some cases the is only a face on the new edge, so check for this as a source to copy from too.
- one of the asserts wasnt correct, if there are no adjacent faces found just return.

8 years agobmesh knife tool: cut through no longer initializes from view setting to limit select...
Campbell Barton [Wed, 18 Apr 2012 18:20:20 +0000 (18:20 +0000)]
bmesh knife tool: cut through no longer initializes from view setting to limit selection to front faces.

instead this is a toggle (Zkey) which is remembered between executions.

8 years agoFix: Transforming NLA strips leaks memory.
Antony Riakiotakis [Wed, 18 Apr 2012 17:50:30 +0000 (17:50 +0000)]
Fix: Transforming NLA strips leaks memory.

8 years agobmesh knife tool:
Campbell Barton [Wed, 18 Apr 2012 16:55:15 +0000 (16:55 +0000)]
bmesh knife tool:
fix for bug where not moving the mouse after pressing K and clicking would start the first point at the bottom left of the view.

8 years agobmesh knife tool:
Campbell Barton [Wed, 18 Apr 2012 16:27:11 +0000 (16:27 +0000)]
bmesh knife tool:
- only cut selected geometry.
- exclude hidden geometry from snapping.

8 years agocorrect ifdef'd scanfill code, incase someone wants to test.
Campbell Barton [Wed, 18 Apr 2012 15:09:13 +0000 (15:09 +0000)]
correct ifdef'd scanfill code, incase someone wants to test.

8 years agocode cleanup: more minor changes to scanfill
Campbell Barton [Wed, 18 Apr 2012 14:36:56 +0000 (14:36 +0000)]
code cleanup: more minor changes to scanfill

8 years agocode cleanup: replace magic numbers in scanfill with defines, also use some vector...
Campbell Barton [Wed, 18 Apr 2012 14:30:57 +0000 (14:30 +0000)]
code cleanup: replace magic numbers in scanfill with defines, also use some vector functions where possible

8 years agofix for eternal loop in scanfill,
Campbell Barton [Wed, 18 Apr 2012 14:06:59 +0000 (14:06 +0000)]
fix for eternal loop in scanfill,

The cause for this is bmesh faces which have zero area have their normals set to a fake value (Z-Up), this would break scanfill, possible fixes are to calculate the faces normal each time or tag as invalid but its easiest to avoid the eternal loop with an extra test.

8 years agofix [#30994] Extruding faces gives bad UV's
Campbell Barton [Wed, 18 Apr 2012 09:56:19 +0000 (09:56 +0000)]
fix [#30994] Extruding faces gives bad UV's

this had strange logic, there was no need to loop over all face loops.

8 years agostyle cleanup: mesh validate.
Campbell Barton [Wed, 18 Apr 2012 09:16:30 +0000 (09:16 +0000)]
style cleanup: mesh validate.

also add code cleanup script which runs uncrustify and then undoes trailing whitespace edits (reducing diff noise)

8 years agofix [#30995] Wavefront obj. file export/import issue with splited edge
Campbell Barton [Wed, 18 Apr 2012 09:04:07 +0000 (09:04 +0000)]
fix [#30995] Wavefront obj. file export/import issue with splited edge

8 years agoFix redo not working correct after keyboard input for shear, shrink/flatten,
Brecht Van Lommel [Wed, 18 Apr 2012 08:26:58 +0000 (08:26 +0000)]
Fix redo not working correct after keyboard input for shear, shrink/flatten,
push/pull, edge slide tools. Patch by Nicholas Rishel.

8 years agoadd missing NULL check for BM_vert_collapse_faces(), could crash in rare cases.
Campbell Barton [Wed, 18 Apr 2012 08:11:08 +0000 (08:11 +0000)]
add missing NULL check for BM_vert_collapse_faces(), could crash in rare cases.

8 years agofix [#30921] Bevel modifier's is not work correctly with bevel weights
Campbell Barton [Wed, 18 Apr 2012 07:29:12 +0000 (07:29 +0000)]
fix [#30921] Bevel modifier's is not work correctly with bevel weights

replace dissolve function with one from 2.62 (updated for the new bmesh api).

8 years agobmesh: fix own bug in BM_vert_collapse_faces() with option 'kill_degenerate_faces...
Campbell Barton [Wed, 18 Apr 2012 07:27:15 +0000 (07:27 +0000)]
bmesh: fix own bug in BM_vert_collapse_faces() with option 'kill_degenerate_faces', was removing data as it iterated, would crash in some cases.

8 years agomore replacement for BM_edge_face_count() use.
Campbell Barton [Wed, 18 Apr 2012 06:57:28 +0000 (06:57 +0000)]
more replacement for BM_edge_face_count() use.

8 years agocode cleanup: replace use of BM_edge_face_count with BM_edge_is_manifold and BM_edge_...
Campbell Barton [Wed, 18 Apr 2012 06:44:48 +0000 (06:44 +0000)]
code cleanup: replace use of BM_edge_face_count with BM_edge_is_manifold and BM_edge_is_boundary

8 years agofix error in last commit. Misunderstood BM_vert_is_manifold(), added some comments.
Campbell Barton [Wed, 18 Apr 2012 06:36:47 +0000 (06:36 +0000)]
fix error in last commit. Misunderstood BM_vert_is_manifold(), added some comments.

8 years agofix for own error in recent scanfill updates, scanfill can hang if run on a polygon...
Campbell Barton [Wed, 18 Apr 2012 05:52:18 +0000 (05:52 +0000)]
fix for own error in recent scanfill updates, scanfill can hang if run on a polygon with no area.

8 years agocode cleanup: minor edits to bmesh_jfke(), move simple checks first.
Campbell Barton [Wed, 18 Apr 2012 04:44:50 +0000 (04:44 +0000)]
code cleanup: minor edits to bmesh_jfke(), move simple checks first.

8 years agobmesh api: minor simplify & cleanup
Campbell Barton [Wed, 18 Apr 2012 04:32:55 +0000 (04:32 +0000)]
bmesh api: minor simplify & cleanup
- add BM_face_edge_share_loop(f, e) -- edge version of existing BM_face_vert_share_loop(f, v)
- simplify BM_edge_ordered_verts_ex(), check could be reduced.
- use BM_ELEM_INTERNAL_TAG for bmesh_jfke(), not BM_ELEM_TAG to avoid clobbering tagged data tools might use.

8 years agosave thumbnail from the 3D view if no camera is present.
Campbell Barton [Tue, 17 Apr 2012 20:51:11 +0000 (20:51 +0000)]
save thumbnail from the 3D view if no camera is present.