Commit Graph

37126 Commits

Author SHA1 Message Date
Sergey Sharybin
82979d5ab5 Fix #30590: Crash in multires when undoing extrude [File incl.]
- Crash was caused by recursively copying directory into itself, fixed
  by switching from opendir() to scandir().
- Also do not try to unpack images which doesn't have name.
2012-03-19 20:47:17 +00:00
Nicholas Bishop
fe4ba0a462 Remove debug print in create_vert_poly_map 2012-03-19 20:28:22 +00:00
Campbell Barton
9c642781a6 style cleanup: minor change to bmesh py repr + comment on loop radial next/prev to avoid confusion. 2012-03-19 20:01:59 +00:00
Campbell Barton
4fa92f1e5f fix for error reported on IRC, sorting zero sized lists would cause a crash. 2012-03-19 19:27:39 +00:00
Bastien Montagne
3dbc34049a Spelling of UI messages (then -> than). 2012-03-19 19:17:17 +00:00
Brecht Van Lommel
d7b072f450 Fix #30456: transforming object with a hair particle system, on a frame after
the cache end frame would reset to the previous state on confirm. Was an issue
with object animation being evaluated unnecessarily, now make check more
precise.
2012-03-19 18:14:24 +00:00
Brecht Van Lommel
8e0493b290 Fix #30449: sampled motion blur not working with softbody. 2012-03-19 17:22:01 +00:00
Brecht Van Lommel
c2c0597239 Fix #30594: UV editor transform tools did not show help/pivot line to indicate
transform center as it did in 2.49.
2012-03-19 17:21:46 +00:00
Sergey Sharybin
73a4f7f4e2 Fix for drag-n-drop images into sequencer: it was impossible to select files
from a file browser after dropping image strip from an external application.
2012-03-19 10:52:16 +00:00
Campbell Barton
305da3a743 bmesh inset:
fix hole when 2+ faces a vert but no edges (would make a hole), now splice the verts back together.
2012-03-19 09:47:32 +00:00
Campbell Barton
543bf45ef0 style cleanup: + some spelling errors for inset 2012-03-19 08:49:49 +00:00
Campbell Barton
6f104aad3a code cleanup: bmesh api - make arg order consistent - htype before hflag or oflag. 2012-03-19 08:36:27 +00:00
Bastien Montagne
e9da46aec9 Grmml, dummy typo in previous UI message-fix commit… :/ 2012-03-19 07:57:35 +00:00
Campbell Barton
59759b23e7 bmesh inset:
improve inset code by not allocating an array the size of edges - instead count all inset edges and allocate an array only for those.
also fixes an error where edge lengths were being compared while the verts were being placed. (now do beforehand)
2012-03-19 07:20:54 +00:00
Campbell Barton
86796252da bmesh: inset tool, access from face menu (Ctrl+F)
- Even option (like solidify even option)
- Relative option (insets based on lengths of surrounding edges)

TODO: merge tares when 2+ face corners meet but don't form a contiguous region.
2012-03-19 05:45:15 +00:00
Nicholas Bishop
e508c2d9e1 Add a multires function to delete MDisps.
The code was duplicated in various places, replaced with calls to
a new function, multires_customdata_delete().
2012-03-19 05:13:41 +00:00
Campbell Barton
753056d4e8 BMesh utility functions, not used yet,
- BM_edge_loop_pair incase you need the loops rather then the faces.
- BM_edge_ordered_verts_ex() - accepts a loop argument.
- BM_edge_length_calc() - simple length calc, useful if the edge is in some array, saves assigning a var and using len_v3v2().
2012-03-19 01:57:42 +00:00
Campbell Barton
ef2dc9b175 better error reporting when a bmesh operator fails. (give reason and show char number that fails) 2012-03-18 23:38:31 +00:00
Joerg Mueller
727f586a0d Fix for [#30495] Framerate goes crazy after changing Sync mode from "Frame Dropping" to "no Sync" while playing anim 2012-03-18 22:21:29 +00:00
Bastien Montagne
53b7078343 Fix [#30234] Various problems with CD layers and tesselation, related to modifiers stack.
Should also fix [#30266], [#29451], and partly [#30316].

Here are the changes made by this commit:
* It adds a "dirty" flag to DerivedMesh struct (for now, only DM_DIRTY_TESS_CDLAYERS, but more might be added as needed).
* It adds a new func, DM_update_tessface_data, which assumes tessfaces themselves are valid, but updates tessellated customdata from their poly/loop counter parts.
* At end of modstack, when valid tessellated faces are present in finaldm , but the cdlayers dirty flag is set, call that function (instead of recomputing the whole tessellation).
* Edits to the codes concerned (UVProject, DynamicPaint, and Subsurf modifiers).
* Also add to subsurf dm generation code the creation of a CD_POLYINDEX layer (mandatory for DM_update_tessface_data to work well, and imho all tessellated dm should have one).

Note: some pieces of old code are just #if 0’ed, will clean them later.
2012-03-18 22:06:57 +00:00
Janne Karhu
709ca0ece9 "Fix" for [#30098] Particle rotation wrong / explode modifier
- The main problem was that in order to be accurate all particle
  rotations have to be calculated incrementally so the only working
  solution is to store rotations to the point cache (previously
  this was only done for dynamic rotations). This can nearly double
  the point cache size so it's not ideal to have this as a default
  as in many cases you don't care about particle rotations.
- Particle rotation panel now has a new "enable" checkbox that
  enables rotation calculations and the storing of rotations to
  point cache.
- Old files will have rotations enabled via do_versions so that in
  the worst case old files will only get bigger point caches, but no
  sudden loss of particle rotations.
2012-03-18 21:33:00 +00:00
Campbell Barton
9db821a5db lattice & UV 'select all' menu items were missing action assignment. 2012-03-18 20:10:58 +00:00
Bastien Montagne
2635d78ec1 Grumph, more fixes in this Select menu (Invert had default op name for metaball and particules...). Also fixed "(De)select All" name of particule op. 2012-03-18 20:04:41 +00:00
Bastien Montagne
dd69e76d82 Fix [#30588] "select/deselect all"-menu for lattice doesn't default to TOGGLE 2012-03-18 19:55:42 +00:00
Peter Schlaile
90bc26631c == Sequencer ==
Small fix for the last fix. Mixed up x and y scale... oh dear.
2012-03-18 19:32:26 +00:00
Thomas Dinges
24ea793c27 Release cycle
* BCon3: Beta. Ongoing module work, bug fixes and polishing features.
2012-03-18 16:01:11 +00:00
Sv. Lockal
8720f2b512 Allow dropping image files from outside blender, or image datablocks from inside blender to the shader and texture node editors, to add an image node. Earlier this was possible only for compositing node editor. 2012-03-18 15:12:11 +00:00
Nicholas Bishop
110fa100ff Re-enable the clay strips sculpt brush.
Most of the tool code was already in place, only significant
functionality change is that anchored stroke works now.

TODO:
* Gave it a new icon, but could use a better one
* Default .blend should have a clay strips brush
2012-03-18 11:44:14 +00:00
Nicholas Bishop
c5860e6c5d Rename 'clay tubes' to 'clay strips' and include it in the capabilities RNA. 2012-03-18 11:44:00 +00:00
Nicholas Bishop
bb8bbc817e Use enums for brush flags and sculpt tools. 2012-03-18 11:43:51 +00:00
Peter Schlaile
982396425b == Sequencer ==
Fixes typos in RECORD_RUN_NO_GAPS timecode description.
2012-03-18 11:43:22 +00:00
Peter Schlaile
450685b156 == Sequencer ==
Fix for:
[#29758] Sequencer `Image Offset` error with render percentage

also:
* make preprocess parameters completely independent from render resolution
  (they are always relative to *final* resolution now)
* fix yesterdays fix for proxy resolution rendering (the case of unbuild
  proxies wasn't handled correctly)
2012-03-18 11:13:28 +00:00
Nicholas Bishop
7bea13ccd8 Style cleanup in sculpt.c, no functional changes. 2012-03-18 09:35:09 +00:00
Bastien Montagne
ed43b652ee Code style edits (mostly spliting long lines, and removing trailing spaces).
Note about long lines: I did not touch to two pieces of code (because I don’t see any way to keep a nicely formated, compact code, with shorter lines):
* The node types definitions into rna_nodetree_types.h
* The vgroup name functions into rna_particle.c
2012-03-18 09:27:36 +00:00
Campbell Barton
1fa0b86c28 fix for own mistake when refactoring bmesh - was treating the iterator as a type flag. 2012-03-18 09:21:24 +00:00
Campbell Barton
4f19c1a995 spelling cleanup 2012-03-18 07:38:51 +00:00
Campbell Barton
e56f714000 ngons draw with uniform normals in object mode now, I had this code disabled for speed (it was being called when it didnt need to), but for CDDM meshes without face normal layers this should still be called. 2012-03-18 06:49:32 +00:00
Campbell Barton
3633858fdb code cleanup:
* replace 2D vector copy with copy_v2_v2().
* use puts rather then printf for single strings.
* style cleanup for drawobject.c indentation.
2012-03-18 06:01:33 +00:00
Guillermo S. Romero
dd8504ed87 SVN maintenance. 2012-03-18 01:58:16 +00:00
Campbell Barton
b786d0d47c better not to use rgb_float_to_uchar() from last commit (comment as to why) 2012-03-17 23:37:14 +00:00
Campbell Barton
b0c0626cb0 fix for weightpaint color with recent loopcolor abgr --> rgba conversion. 2012-03-17 23:26:25 +00:00
Campbell Barton
560d8ad12c bmesh py api:
use different types for bm.verts.layers, bm.faces.layers, otherwise the layers look to have customdata type that isnt compatible, UV's on edges for eg.
2012-03-17 23:22:44 +00:00
Campbell Barton
05612c0419 code cleanup: not all mathutils callback creation functions tool unsigned char for type & subtype args. 2012-03-17 22:31:57 +00:00
Campbell Barton
6075a24fc4 fix for invalid use of strncat (N == how many bytes may be appended, not the final string size). 2012-03-17 22:14:52 +00:00
Antony Riakiotakis
be4b29b849 fix: UV Islands not selected properly with Ctrl-L. A simple misplacement of the BMFace iterating variable. Also cleaned up an unused nverts variable. 2012-03-17 22:12:17 +00:00
Campbell Barton
98b784a931 update vertex paint code for last commit, was still using ABGR order. 2012-03-17 21:11:28 +00:00
Campbell Barton
91580c0929 swap BMLoopCol r/b color, requires subversion bump.
old mesh MCol 'r' was blue, 'b' was red, but theres no reason to keep this for bmesh with MLoopCol.

Loading old files works, saving legacy format works too.

What wont work is loading a file after this revision and loading it in an older revision since the bmesh merge.
(it wont crash but the blue and red will be swapped on vertex color layers).
2012-03-17 20:39:28 +00:00
Campbell Barton
8b7ea6fc90 bmesh py api:
access to MLoopCol as mathutils.Color type
2012-03-17 19:34:02 +00:00
Peter Schlaile
8bf1615ce3 == Sequencer ==
Bugfix: [#28159] sequencer strip crop values on proxy not scene render size

Also: IMB saturation change moved into imbuf-module.
2012-03-17 19:31:28 +00:00
Bastien Montagne
02abb636a3 UI messages: unification of select/deselect stuff.
Previously we had three versions, Select/Deselect, Select or Deselect, and (De)select, choosen the third (shortest) one for now.
2012-03-17 19:14:08 +00:00