Lukas Toenne
d02aed6c64
Fix for image node: has to check the number of actual node sockets before accessing the output data stack, to avoid reading uninitialized memory.
2012-04-21 13:36:57 +00:00
Campbell Barton
7e7d28e3ad
fix [ #31048 ] converting curve object to mesh makes object disapper from 3D view
2012-04-21 13:08:26 +00:00
Campbell Barton
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
Campbell Barton
96b024333e
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.
2012-04-21 12:14:07 +00:00
Campbell Barton
f910abadda
fix error in recent rip refactor, also add comment.
2012-04-21 06:42:21 +00:00
Tamito Kajiyama
cdbfd1db38
Merged changes in the trunk up to revision 45820.
...
Conflicts resolved:
source/creator/creator.c
2012-04-21 00:33:36 +00:00
Campbell Barton
15eb3452ec
style cleanup: pep8, also quiet compiler warning.
2012-04-20 18:50:18 +00:00
Campbell Barton
2e20d3dc96
fix for error using uninitialized variable with shape key conversion.
2012-04-20 18:34:58 +00:00
Bastien Montagne
3dcd5a196d
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 :/
2012-04-20 17:26:40 +00:00
Campbell Barton
b26865ba99
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.
2012-04-20 16:55:47 +00:00
Campbell Barton
91dc245f93
attempt to fix [ #31033 ], cant redo the bug but button layout wasnt great
...
- no more blank space under XYZ
- scales with DPI
2012-04-20 16:17:52 +00:00
Campbell Barton
6ef9f021bc
fix [ #31036 ] image.gl_load() consistently segfault at gluBuild2DMipmaps
...
incorrect argument to gluBuild2DMipmaps()
2012-04-20 15:06:54 +00:00
Campbell Barton
f627745053
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.
2012-04-20 14:59:24 +00:00
Antony Riakiotakis
cb3dc8ff0e
Knife tool: Increase the header string length to avoid clipping the message.
2012-04-20 14:46:46 +00:00
Campbell Barton
380e6c2a58
refactor rip tool out into vert/edge functions, was getting too unweildy having them mixed in.
2012-04-20 14:36:06 +00:00
Campbell Barton
ed81982049
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.
2012-04-20 13:45:38 +00:00
Sergey Sharybin
f380a5430f
Merging r45801 through r45809 from trunk into soc-2011-tomato
2012-04-20 13:15:57 +00:00
Lukas Toenne
71ac500fc2
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.
2012-04-20 12:55:57 +00:00
Campbell Barton
5874106ea7
style cleanup
2012-04-20 12:26:16 +00:00
Campbell Barton
4d1faf1fd9
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)
2012-04-20 12:19:09 +00:00
Campbell Barton
aa02acfe95
knife tool: store color once on initializations, de-select only when cutting selected.
2012-04-20 12:05:08 +00:00
Campbell Barton
617af9d99d
knife tool now selects newly cut edges.
2012-04-20 11:14:16 +00:00
Campbell Barton
3d851bfd5b
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.
2012-04-20 10:52:13 +00:00
Sergey Sharybin
7c202e84bf
Merging r45792 through r45800 from trunk into soc-2011-tomato
2012-04-20 09:57:03 +00:00
Campbell Barton
80ff1984f8
bmesh py api: remove bmesh.loops.index_update(), it wasn't working, as joe noticed.
2012-04-19 23:23:29 +00:00
Campbell Barton
384f87cd1c
rip tool wasnt working on a single edge selection in some cases (own error in recent fix).
2012-04-19 23:16:57 +00:00
Campbell Barton
028dbb132d
add asserts for invalid iteratpr values so we can catch them in debug mode.
2012-04-19 22:40:09 +00:00
Campbell Barton
741a177a74
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)
2012-04-19 21:47:32 +00:00
Joseph Eagar
ebbfcd71e5
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).
2012-04-19 21:14:11 +00:00
Campbell Barton
417117e207
bmesh py api: expose BMVert.calc_shell_factor()
2012-04-19 19:13:57 +00:00
Sergey Sharybin
7156973d05
Merging r45748 through r45791 from trunk into soc-2011-tomato
2012-04-19 19:03:35 +00:00
Campbell Barton
e387ccdb42
bmesh inset: add depth option (make use of relative and even offset options)
2012-04-19 19:03:15 +00:00
Bastien Montagne
c7f8af329b
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!
2012-04-19 18:53:32 +00:00
Campbell Barton
e730c1af6d
committed check by mistake, its not needed.
2012-04-19 17:26:22 +00:00
Campbell Barton
a82eaf36ca
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.
2012-04-19 16:57:50 +00:00
Campbell Barton
bea1a12751
fix [ #31015 ] Rip has weird results in vertex selection mode vs face
2012-04-19 16:20:07 +00:00
Brecht Van Lommel
6b006059ec
Fix #31016 : rigid body joint constraint in game engine did not respect constraint
...
enable/disable option.
2012-04-19 15:14:28 +00:00
Campbell Barton
b40476455e
code cleanup: remove unused BMesh args.
2012-04-19 14:38:09 +00:00
Howard Trickey
ac6b702c93
Change knife header to reflect current key binding (RMB cancels now).
2012-04-19 13:59:03 +00:00
Campbell Barton
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
Howard Trickey
9276d7aeb2
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.
2012-04-19 13:44:28 +00:00
Campbell Barton
3ef7943910
code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros.
2012-04-19 12:45:56 +00:00
Bastien Montagne
7cadd242d3
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)
2012-04-19 12:31:39 +00:00
Campbell Barton
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
Campbell Barton
db2edfcfde
bmesh api function: BM_edge_face_tangent()
...
was used by inset but make into an api function since scripts can use this too.
2012-04-19 11:25:05 +00:00
Brecht Van Lommel
250560a423
Fix #30998 : copy to selected in properties editor not working for bones.
2012-04-19 10:49:45 +00:00
Brecht Van Lommel
2251e05c30
Fix #31009 : edge split did not split non-manifold edges correctly, it should
...
create a separate edge for each face.
2012-04-19 09:38:07 +00:00
Brecht Van Lommel
2e734e4735
Fix #31007 : text editor delete at end of last line did unnecessary undo push.
...
Patch by Justin Dailey, simplified a bit.
2012-04-19 09:27:11 +00:00
Campbell Barton
84f3ade1e5
fix bevel edge angle (wasnt hooked up to new code), vertex-bevel angle isnt working still
2012-04-19 07:00:29 +00:00
Campbell Barton
d403722722
style cleanup: bevel code, also remove unneeded flag setting.
2012-04-19 06:10:21 +00:00