Commit Graph

49420 Commits

Author SHA1 Message Date
Campbell Barton
24b4d5569a fix [#30705] Playing animation in reverse prevents further forward playback 2012-03-28 22:43:26 +00:00
Campbell Barton
5591d03f21 fix invalid *= on an un-initialized value when adding primitives. 2012-03-28 22:11:19 +00:00
Nicholas Bishop
b8bb3f2e3c Partial fix for array modifier vertex merge (bug 30195).
Two fixes:

* The find-doubles operator was overriding the "dirty" element
  indices, so vertices were not being mapped correctly.

* In some cases a vertex can be set to merge with a vertex that is
  also set to be merged, so added a loop to find the first unmerged
  vert in this case.

Not yet working is the "First Last" merge option.

Also made some cleanups and added comments in the array/remove doubles
code.
2012-03-28 22:03:46 +00:00
Brecht Van Lommel
cb45d282fe Fix #30702: game engine softbody weld threshold was exposed in UI, but actually
disabled in code because it doesn't work well, so hide the property from the UI.
2012-03-28 12:18:25 +00:00
Campbell Barton
ed61bfc9a6 style cleanup 2012-03-28 11:53:18 +00:00
Nicholas Bishop
ca8d262e89 Small cleanup for r45238, remove empty/unused function. 2012-03-28 11:48:16 +00:00
Campbell Barton
1e5424564c expose image render_slot so keybindings can be configured to change 2012-03-28 09:10:19 +00:00
Brecht Van Lommel
0dd3408123 Cycles: add alpha output to image node. 2012-03-28 09:07:43 +00:00
Brecht Van Lommel
d87995a6b1 Cycles: add rendered draw mode option in 3d view header to show the active
render layer rather than the viewport layers.
2012-03-28 09:07:35 +00:00
Brecht Van Lommel
33740c5eb5 Cycles: viewport rendered draw mode now shows background images, also changed the
image editor checkerboard pattern to be the same as cycles viewport.
2012-03-28 09:07:10 +00:00
Campbell Barton
30d128c7a7 bmesh: be more strict with operator string formatting, no tabs and only accept slot=%x style. 2012-03-28 08:42:19 +00:00
Campbell Barton
8aa42f309c print error if rip does nothing (rather then grabbing the unripped verts as it did before) 2012-03-28 08:00:58 +00:00
Lukas Toenne
f342c7de45 Fix for the node tree nodes.new API function, this wasn't setting the scene and main context pointers in the node template, used by file output node. Also the file output node itself now works in case of scene==NULL (might happen in some contexts). 2012-03-28 07:48:08 +00:00
Campbell Barton
12655edc84 remove dissolve keybinding, conflicts with draw, add back to delete menu.
dissolve is now 'X -> D'
2012-03-28 07:44:20 +00:00
Campbell Barton
5f0ef4435c fix [#30699] blender crashes when dissolving faces
thanks to Francisco De La Cruz for investigating and providing fix.
2012-03-28 06:44:19 +00:00
Campbell Barton
f9fd5439eb code cleanup: Ctrl+Click extrude - replace inline axis/angle to matrix conversion with a call to axis_angle_to_mat3() 2012-03-28 06:34:18 +00:00
Campbell Barton
534f4ddb4d fix for vertex rip
wire edges connected to the vertex would confuse vertex rip.

- was only checking verts first edge had a face,  this is incorrect since other vert-edges may have a face.
- wasn't checking of edges connected to the vertex were hidden.
2012-03-28 05:44:38 +00:00
Campbell Barton
52984c2772 fix [#30701] bmesh: segfault when ripping partially connected vertices 2012-03-28 05:20:48 +00:00
Campbell Barton
711d7539e0 style cleanup: for creator.c & more useful assert message (file:line) 2012-03-28 05:09:50 +00:00
Campbell Barton
07065b27b8 style cleanup 2012-03-28 05:03:24 +00:00
Campbell Barton
c9f677d24d style cleanup: mainly whitespace around operators and indentation - paint/sculpt tools 2012-03-28 03:47:33 +00:00
Campbell Barton
274e243a67 own error r45225
- move defines to the top of the func.
- rename T -> EPS
- undefine at the end.
2012-03-28 03:17:22 +00:00
Campbell Barton
c9e1ced4dd code cleanup: (dont include ';' in defines), last commit also missed changes to paint_image.c 2012-03-28 01:06:43 +00:00
Campbell Barton
48afa89dd2 fix [#30666] Texturepaint "Soften" brush gets stuck
use derived mesh tessfaces since the mesh doesnt ensure this, also means non-project-painting in the viewport works with modifiers now.
2012-03-28 00:42:38 +00:00
Campbell Barton
046eb6531c fix [#30685] Solidify tool behaves like Shrink/Fatten (editmesh functionality stuff)
solidify had a limit imposed on how far vertices could move which didnt work well, removed (the modifier doesnt do this).

also missed freeing 2 arrays.
2012-03-27 23:23:47 +00:00
Bastien Montagne
e38bdaa04c Fix [#30700] Blend from Shape gives only selection for basis shapekey
RNA_enum_item_add already sets totitem, so it was increased twice…
2012-03-27 20:45:06 +00:00
Brecht Van Lommel
e8a226b38c Fix #30658: add new uv layer in object mode did not copy coordinates from
existing layer as it does in edit mode.
2012-03-27 18:35:49 +00:00
Brecht Van Lommel
606057b3af Fix tweak for #30638: use same BMesh Face area computation functions as Mesh,
it's a bit fuzzy how to compute area for ngons, but at least should be consistent.
2012-03-27 18:26:41 +00:00
Brecht Van Lommel
d421c7de0b Fix related to #30674: remove unnecessary global undo push during image paint,
not needed since it already has local image undo stack.
2012-03-27 17:58:50 +00:00
Thomas Dinges
bb8fa67f7e Patch [#30683] Editmesh_tools without descriptions by Harley Acheson (harley)
* Some Edit Mesh operators were missing the description after b-mesh merge.
2012-03-27 17:53:31 +00:00
Brecht Van Lommel
cbf09f7a16 Fix related to #30674: 2D image painting would do unnecessary full GL texture
delete at the end of the stroke, even when doing partial updates.
2012-03-27 17:19:13 +00:00
Nicholas Bishop
df5e551535 Fix bug 30697, strange shading on array modifier with offset object.
* An offset object can rotate output, so need to update normals to
  reflect that. Fix by adding a normals recalc, but only if there's an
  offset object.

* Added BMESH_TODO comment to check whether there are other cases were
  normals need to be updated.
2012-03-27 13:08:40 +00:00
Nicholas Bishop
f71f09d714 Partial fix for bug 30695, "Array broke crease, weird visibility and slowdown"
* Array modifier creates BMesh from DM; add missing CD_CREASE layer
  for edge creases.

* With a modifier stack like mirror+subsurf+array, face normals were
  wrong. Fix by removing CD_NORMAL layer from CCGDM output. Previously
  the elements in this layer were simply copied, so they did not
  reflect subdivision correctly.

* Minor style fixes in bmo_dupe.c.

Issues not yet addressed:

* Subsurf's optimal draw setting for hiding subdivision edges is not
  respected by the array output.

* Slowdown issue; array modifier is much slower than in 2.62.
2012-03-27 12:34:00 +00:00
Nicholas Bishop
9c9745ef30 Fix more truncated comments. 2012-03-27 11:03:10 +00:00
Nicholas Bishop
cd882a446a Spelling fix, sentine -> sentinel.
'sentine' apparently means "A place for dregs and dirt; a sink; a sewer" :)
2012-03-27 10:55:20 +00:00
Campbell Barton
7f1e9b8c41 bmesh py api:
added access to deform weights, access to weights acts like a python dict so you can do...

  print(group in dvert)
  dvert[group] = 0.5
  print(dvert[group])
  del dvert[group]
  print(dvert.items())
2012-03-27 10:30:10 +00:00
Nicholas Bishop
1e7bcece44 Fix bug 30696, circular mesh objects had wrong orientation.
Behavior now matches 2.62, circle, cone, and cylinder get first vertex
at 0 degrees.

Also fixed range for vertex property of add-cone and add-cylinder
operators, changed minumum from two to three.
2012-03-27 10:28:06 +00:00
Nicholas Bishop
6420dc23fd Fix bug 29123, subdivide smooth distorts shape with numcuts > 1.
Three fixes:

* When smoothing a coord, the original position should be based off
  the unsmoothed subdivision (i.e. the vertex coord rather than the
  smoothed position in the shapekey)

* The normal of new vertices created by edge split must be updated
  (used the same interpolation as pre-bmesh here)

* The vertices created inside the subdivided face should use the
  subdivided coords from edges, so copy the shapekey coords back to
  vertex coords after subdividing edges
2012-03-27 09:24:00 +00:00
Sergey Sharybin
d334f04ee6 reload_sequence_new_file now works with movie clip strips as well 2012-03-27 08:54:37 +00:00
Campbell Barton
05abdf344b minor code/style cleanup 2012-03-27 05:03:23 +00:00
Campbell Barton
fc7624a6be fix for undoMesh_to_editbtMesh not setting BMEditMesh.ob field.
error found by XercesBlue on IRC
2012-03-27 04:54:52 +00:00
Campbell Barton
09f29c0b70 style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions 2012-03-27 04:46:52 +00:00
Campbell Barton
ea270a6903 fix error in last commit 2012-03-27 01:52:49 +00:00
Campbell Barton
f83a93e454 bmesh todo, unlikly but possible - entering editmode with faces and no polys.
rather then printing a warning and failing - convert them to polys.
2012-03-27 01:28:25 +00:00
Campbell Barton
ae654301b0 style cleanup: wm, mosyly adding space around ops 2012-03-27 01:24:16 +00:00
Campbell Barton
126c9d4caa use cmake WITH_MOD_ * to exclude include paths which are not used. 2012-03-27 00:17:57 +00:00
Campbell Barton
ca05219f3e fix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.
problem was that BMesh had tessellation call when undo pushes were called.

if python called an operator with no undo push, tessfaces would not be created.

fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
2012-03-27 00:01:35 +00:00
Sergey Sharybin
4d802ff682 Return back sfra property to Sequence structure to prevent data loose
until things discussing in #30663 will be resolved.
2012-03-26 22:36:32 +00:00
Sergey Sharybin
40c667e75e Clean-up logic of behavior of refresh/reload operators in sequencer
After discussion with Campbell we found much nicer solution which
keeps operation with data much more clear:

- Refresh Sequencer is totally harmless, do not touch actual data
  and just removes everything from cache
- Reload Strip will reload data and adjust it's length for all
  selected strips without affecting on length of strip itself
- Reload Strip and Adjust length will do the same but will also
  adjust length of strip itself.
2012-03-26 22:26:30 +00:00
Campbell Barton
83e83e5eff quiet some warnings for gcc 4.7 2012-03-26 20:49:33 +00:00