Commit Graph

30875 Commits

Author SHA1 Message Date
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
Campbell Barton
abf551b1a5 style cleanup: py api 2012-03-26 20:41:54 +00:00
Nicholas Bishop
57f7aca8ee Fix for position of array-modifier end cap when not using a fixed count.
Moved calculation of final offset so that correct count value has been set.
2012-03-26 19:50:45 +00:00
Nicholas Bishop
f02d679183 Fix run-time warning of freeing null pointer in array modifier. 2012-03-26 19:44:25 +00:00
Bastien Montagne
9ffdad9f9c Renaming pt_BR to pt, as a recent reform [1] made most country speaking portugese use a same, common version of it, which we want to use here.
[1] http://www.reformaortografica.com/
2012-03-26 17:24:54 +00:00
Nicholas Bishop
47cd3d4b8e Fix for truncation of 64-bit CustomDataMasks.
Can't use GET_INT_FROM_POINTER anymore with CD masks, as this
truncates to 32-bit.

Bug: http://projects.blender.org/tracker/index.php?func=detail&aid=30680&group_id=9&atid=498
CR: http://codereview.appspot.com/5905059/
2012-03-26 16:25:21 +00:00
Sergey Sharybin
03336c0ba7 Style cleanup of movie cache module 2012-03-26 16:04:10 +00:00
Sergey Sharybin
adbe628a1b Fix crash of Refresh Sequencer when some Movie / MovieClip strips doesn't have animation opened 2012-03-26 15:57:00 +00:00
Sergey Sharybin
3d5111a5ed Fix #30675: Default .blend should have clay strips brush 2012-03-26 15:29:27 +00:00
Sergey Sharybin
52b26c4e4e Default settings for new movie clip tracking now is the same as Default preset 2012-03-26 14:30:30 +00:00