Commit Graph

37154 Commits

Author SHA1 Message Date
Brecht Van Lommel
8b4c1f729b Cycles: fix issue reported in IRC, rendering a material that mixes a transparent
and glass BSDF would give a different result with/without using light passes.
2012-03-20 16:16:17 +00:00
Sergey Sharybin
6628318fdb Port mball_to_mesh to use polys. 2012-03-20 14:23:22 +00:00
Janne Karhu
ad1a181316 Fix for [#30445] Particle simulation, rekey crashes blender
- Entering particle mode crashed due to missing checks if a particle didn't have any baked keys.
- The rekey functionality is only supported for hair, so replaced the operator poll function with the correct one.
- Also replaced a couple of other "only hair" operator poll functions to the correct ones.
2012-03-20 12:59:45 +00:00
Sergey Sharybin
12be17bfa4 Fix #30590: Crash in multires when undoing extrude [File incl.]
Missed initialization of hidden array when copying mdisps data from
one face to another.
2012-03-20 11:51:04 +00:00
Campbell Barton
1272492445 temp disable inset boundary option, it can make invalid meshes, need to look into this further. 2012-03-20 11:45:55 +00:00
Campbell Barton
db13daff24 replace SETCOL defines with inline function: rgba_char_args_set 2012-03-20 09:45:17 +00:00
Campbell Barton
9dd0c4c232 rename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines. 2012-03-20 08:42:26 +00:00
Nicholas Bishop
a0ea68a584 Fix uninitialized variable in multires apply base.
Reported on BlenderArtists by Guffy, was causing ugly spikes in lower
levels.
2012-03-20 08:23:53 +00:00
Campbell Barton
c5f15da34e py/rna api - fix for an empty enum flag with no members being displayed as {}, now check for this case and display as set() 2012-03-20 07:52:39 +00:00
Campbell Barton
3b9b53d876 fix [#30589] RNA function descriptions not showing in Python console on autocomplete
show rna function description and arguments now.
2012-03-20 07:41:47 +00:00
Campbell Barton
65a71a1bbf fix [#30583] very old blend files are loading post-bmesh with no face/uv information, just wires
versioning code called a customdata update function which ended up clearing tessfaces - before converting polygons to tessfaces.
Added check so tessfaces aren't cleared when there are no polygons.
2012-03-20 05:04:51 +00:00
Campbell Barton
be116242d4 style cleanup 2012-03-20 04:27:14 +00:00
Daniel Genrich
3427749090 Make collision function more general so it can be used by other modifiers, too. [This is preparation work for animated smoke collision] 2012-03-20 04:15:41 +00:00
Campbell Barton
46f157c340 style cleanup 2012-03-20 04:09:43 +00:00
Campbell Barton
bfcd1afe9c compile fix: linux BLI_gzopen declare was conflicting. 2012-03-20 03:48:32 +00:00
Campbell Barton
b163e19b8d py api:
fix for collection functions not showing up in __dir__,

eg, console autocomplete didnt show up bpy.data.libraries.load

also fix refcounting leak with returning attributes from collections.
2012-03-20 03:13:25 +00:00
Alexander Kuznetsov
f11a6d3a84 Adds support for utf paths on Windows.
Not all file formats/calls are supported yet. It will be expended.

Please from now on use BLI_fopen, BLI_* for file manipulations.
For non-windows systems BLI_fopen just calls fopen.
For Windows, the utf-8 string is translated to utf-16 string in order to call UTF version of the function.
2012-03-20 02:17:37 +00:00
Campbell Barton
deea1f38b1 real fix for booleans and face shading this time.
CDDM_tessfaces_to_faces wasbt updating the polyindex (missed incrementing the polyindex pointer).

also added an assert so non release builds will complain when CDDM_calc_edges_tessface() needs to run before CDDM_tessfaces_to_faces().
2012-03-20 01:33:24 +00:00
Janne Karhu
fcd5550a42 Some advanced particle rotation modes and reorganization of the rotation panel:
- More angular velocity modes to support creative effects.
- Renamed "Initial Rotation" to "Initial Orientation" to better reflect the functionality
- Renamed "Spin" angular velocity mode to "Velocity".
- Organized the rotation panel a bit better.
- Also some better names and tooltips for the different rotation values.
2012-03-20 01:00:28 +00:00
Campbell Barton
1362523ce6 CDDM_calc_edges_tessface was being called twice for boolean and explide modifiers, now leave it up to the caller to run. 2012-03-20 00:59:51 +00:00
Campbell Barton
cdfffafd20 partial fix for bug where booleans were using invalid face/poly normals.
the problem remains (though not quite as bad) but think this is because of a bug elsewhere.
2012-03-20 00:51:37 +00:00
Campbell Barton
7ba8c9e3bf patch [#30595] Wiki Quick Hacks: Make Tooltip Background Colour Themeable
from luke frisken (lfrisken)
2012-03-19 22:29:16 +00:00
Nicholas Bishop
ccbed13343 Quiet warnings about unused functions and variables.
Commented or '#if 0' these functions/variables and marked with
'UNUSED' comment so they can be restored in the future if needed.
2012-03-19 22:21:40 +00:00
Campbell Barton
e6834fcf85 bmesh inset: outset option 2012-03-19 21:40:17 +00:00
Nicholas Bishop
9beef61199 Fix format string warnings (gcc) by using string literals.
gcc 4.6 was giving warnings like this:
"warning: format not a string literal and no format arguments [-Wformat-security]"
2012-03-19 21:38:35 +00:00
Campbell Barton
d91deb9e97 bmesh inset:
option to inset boundaries.
2012-03-19 21:27:24 +00:00
Nicholas Bishop
9b5151dbdc Redraw data properties after selecting a bone.
This is so that selecting bones while in weight paint mode will show
the correct active vertex group.
2012-03-19 21:21:23 +00:00
Brecht Van Lommel
f18dab65ad Fix #30531: mirror modifier with vertex groups did not add both the left and
right groups to merged vertices, only one. This made the result asymmetric,
now merged vertices will be part of both groups with half weight.
2012-03-19 21:09:16 +00:00
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