blender.git
7 years agofix for CcdPhysicsController::RelativeRotate reading 2 values past the input.
Campbell Barton [Tue, 24 Apr 2012 01:52:59 +0000 (01:52 +0000)]
fix for CcdPhysicsController::RelativeRotate reading 2 values past the input.
note: this function isn't used but may as well fix.

7 years agoadd inset and bridge to mesh specials menu (along side bevel) + typo fix.
Campbell Barton [Tue, 24 Apr 2012 01:04:37 +0000 (01:04 +0000)]
add inset and bridge to mesh specials menu (along side bevel) + typo fix.

7 years agofix for invalid use of memset when loading tiff images
Campbell Barton [Mon, 23 Apr 2012 23:57:17 +0000 (23:57 +0000)]
fix for invalid use of memset when loading tiff images
- memset(..., 1.0); // isnt valid
- memset(pointer, sizeof(pointer)) // was using the sizeof the pointer, not the size of the array, since this was to fill in alpha values it was obviously wrong.

7 years agofix own error with subdivision (broke icosphere), also noticed icosphere vanished...
Campbell Barton [Mon, 23 Apr 2012 23:01:03 +0000 (23:01 +0000)]
fix own error with subdivision (broke icosphere), also noticed icosphere vanished at subd-5 which didnt happen before bmesh.

7 years agoEnable support for OpenEXR on cmake for MinGW64
Antony Riakiotakis [Mon, 23 Apr 2012 22:56:34 +0000 (22:56 +0000)]
Enable support for OpenEXR on cmake for MinGW64

7 years agoUpdate knife tool header to reflect that spacebar can be used for confirm too.
Antony Riakiotakis [Mon, 23 Apr 2012 21:04:26 +0000 (21:04 +0000)]
Update knife tool header to reflect that spacebar can be used for confirm too.

7 years agoFirst MinGW-w64 support for cmake has been added. To test I recommend this build:
Antony Riakiotakis [Mon, 23 Apr 2012 20:09:59 +0000 (20:09 +0000)]
First MinGW-w64 support for cmake has been added. To test I recommend this build:

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-4.7.0-with-ada/mingw-w64-gcc-4.7.0-runtime-2.0.1-static-ada-20120330.7z/download

Other builds may also work but due to the constantly changing nature of the compiler this cannot be guaranteed. I often had to change compilers while building the libraries and this one is the one that did the job for most of them.

This first support is experimental and considered "advanced". To enable pass -DWITH_MINGW64 during cmake configuration. Also make sure to extract the compiler on C:/MinGW and that MinGW/bin is in your path. To build check out lib/mingw64.

Initially the support is lacking until I get every library compiled correctly. For now you should disable WITH_CYCLES(sorry, I know some people are dying to do benchmarks, but still a few libs to go), WITH_IMAGE_OPENEXR, WITH_OPENCOLLADA, WITH_LIBMV and WITH_CODEC_FFMPEG(links but hangs on startup).

Still the tools are working, the memory limit is increased and due to the experimental nature of the setup, full optimization with SSE2 is available, which makes the build quite fast. Also the compiler and especially, the linker are way faster than regular MinGW.

The wiki docs have also updated. Happy testing!

7 years agoFix #31065: cycles render crash with large node groups, increased the stack
Brecht Van Lommel [Mon, 23 Apr 2012 18:15:38 +0000 (18:15 +0000)]
Fix #31065: cycles render crash with large node groups, increased the stack
size now, this seems to work well after some testing.
Fix: material override not working on objects without a material assigned.

7 years agocorrected more issues from [#31069] Analyzing the Blender project with PVS-Studio.
Daniel Genrich [Mon, 23 Apr 2012 17:33:12 +0000 (17:33 +0000)]
corrected more issues from [#31069] Analyzing the Blender project with PVS-Studio.

Remark: I think that "!(nbored & CFBnd)" would be correct but it introduced other bugs so, I just quiet compiler warnings leaving the running system untouched.

7 years agocorrected more issues from [#31069] Analyzing the Blender project with PVS-Studio
Campbell Barton [Mon, 23 Apr 2012 16:29:13 +0000 (16:29 +0000)]
corrected more issues from [#31069] Analyzing the Blender project with PVS-Studio

7 years agocorrections from an article about using PVS-Studio static checker with blender -...
Campbell Barton [Mon, 23 Apr 2012 15:54:43 +0000 (15:54 +0000)]
corrections from an article about using PVS-Studio static checker with blender - viva64.com/en/b/0145/

7 years agoFix #31072: Making texture single user was modifying textures of original material
Sergey Sharybin [Mon, 23 Apr 2012 15:51:25 +0000 (15:51 +0000)]
Fix #31072: Making texture single user was modifying textures of original material

7 years agorip tool again (this in infact an old bug), when selecting an edge to extend the...
Campbell Barton [Mon, 23 Apr 2012 15:35:07 +0000 (15:35 +0000)]
rip tool again (this in infact an old bug), when selecting an edge to extend the splitting to, dont step over manifold edges. - would result in duplicate edges.

7 years agofix memory leak in rip tool (again own fault).
Campbell Barton [Mon, 23 Apr 2012 15:26:06 +0000 (15:26 +0000)]
fix memory leak in rip tool (again own fault).

7 years agominor changes to rip internals
Campbell Barton [Mon, 23 Apr 2012 15:18:12 +0000 (15:18 +0000)]
minor changes to rip internals
- check if vertex ripping has no effect.
- no need to flush selection for vertex rip.

7 years agorip was incorrectly giving an error when ripping a vertex from a face fan (own mistake).
Campbell Barton [Mon, 23 Apr 2012 14:57:47 +0000 (14:57 +0000)]
rip was incorrectly giving an error when ripping a vertex from a face fan (own mistake).

7 years agobmesh py api: functions to add/renmove customdata layers, eg.
Campbell Barton [Mon, 23 Apr 2012 14:52:28 +0000 (14:52 +0000)]
bmesh py api: functions to add/renmove customdata layers, eg.

  bm.loops.layers.color.new("Testing")

7 years agopy/rna api: remove selection and pin variable for texture faces - this is now stored...
Campbell Barton [Mon, 23 Apr 2012 11:36:40 +0000 (11:36 +0000)]
py/rna api: remove selection and pin variable for texture faces - this is now stored in the loops.

7 years agoadd spacebar to confirm knife cut, space confirms - enter isnt so handy, This is...
Campbell Barton [Mon, 23 Apr 2012 11:19:39 +0000 (11:19 +0000)]
add spacebar to confirm knife cut, space confirms - enter isnt so handy, This is consistent with fly mode and grab.

7 years agofix [#30937] Pose UI hack needed to be undone, alternate fix is needed.
Campbell Barton [Mon, 23 Apr 2012 09:17:37 +0000 (09:17 +0000)]
fix [#30937] Pose UI hack needed to be undone, alternate fix is needed.

rather then assigning the enum, default to the active pose when the property isnt set.

7 years agoi18n: Re-enabling uk_UA, as we are going to have a nice mo in upcomming update.
Bastien Montagne [Mon, 23 Apr 2012 08:24:03 +0000 (08:24 +0000)]
i18n: Re-enabling uk_UA, as we are going to have a nice mo in upcomming update.

7 years agocode cleanup: remove unused defines
Campbell Barton [Mon, 23 Apr 2012 08:05:02 +0000 (08:05 +0000)]
code cleanup: remove unused defines

7 years agocode cleanup: comment unused functions (removed one which isnt useful anymore).
Campbell Barton [Mon, 23 Apr 2012 07:32:13 +0000 (07:32 +0000)]
code cleanup: comment unused functions (removed one which isnt useful anymore).

7 years agopy api:
Campbell Barton [Mon, 23 Apr 2012 07:26:08 +0000 (07:26 +0000)]
py api:
bpy.data.scenes.tag() was missing.

7 years agofix [#31064] Save confirmation stops showing
Campbell Barton [Mon, 23 Apr 2012 06:37:16 +0000 (06:37 +0000)]
fix [#31064] Save confirmation stops showing

also comment unused functions.

7 years ago- fix for python freeing its own bmesh clearing the global mirror cache.
Campbell Barton [Mon, 23 Apr 2012 04:24:11 +0000 (04:24 +0000)]
- fix for python freeing its own bmesh clearing the global mirror cache.
- fix for own mistake (Ctrl+T didnt set beauty peroperty).
- remove bad level includes in bmesh.

7 years agocode cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operato...
Campbell Barton [Mon, 23 Apr 2012 03:43:02 +0000 (03:43 +0000)]
code cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operator was passing a flag about in a fairly confusing way.

since we will eventually have python bmesh operator access better expose this as multiple booleans.

remove remaining editbutflag's

7 years agocode cleanup: remove editbutflag flag from toolsettings & related defines.
Campbell Barton [Mon, 23 Apr 2012 02:48:05 +0000 (02:48 +0000)]
code cleanup: remove editbutflag flag from toolsettings & related defines.

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

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

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

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

7 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

7 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

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

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

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

7 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

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

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

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

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

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

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

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

7 years agoSuppressed a compiler warning about an empty controlled statement.
Tamito Kajiyama [Sun, 22 Apr 2012 01:23:02 +0000 (01:23 +0000)]
Suppressed a compiler warning about an empty controlled statement.
Reported by flokkievids, thanks!

7 years agoAdded operators for adding the data paths to Freestyle edge/face mark properties of
Tamito Kajiyama [Sun, 22 Apr 2012 00:59:27 +0000 (00:59 +0000)]
Added operators for adding the data paths to Freestyle edge/face mark properties of
selected edges/polygons into the active keying set.  This makes it easy to keyframe
a number of Freestyle edge/face marks.

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

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

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

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

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

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

7 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

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

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

7 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

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

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

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

7 years agoMerged changes in the trunk up to revision 45820.
Tamito Kajiyama [Sat, 21 Apr 2012 00:33:36 +0000 (00:33 +0000)]
Merged changes in the trunk up to revision 45820.

Conflicts resolved:
source/creator/creator.c

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

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

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

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

7 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7 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

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

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

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

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

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

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

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

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

7 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

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

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

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