Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
195d6c1b1a minor speedup for scanfill, dont calculate the normal if its already known - use for editmode ngon filling. 2012-04-16 18:24:49 +00:00
Campbell Barton
67f8e3a3a7 inline function for "Newell's Method" used for normal calc. 2012-04-16 16:49:37 +00:00
Campbell Barton
e889fa4678 improve scanfill for uneven ngons, previously scanfill would use the most angular corner, but this made non planer ngons rip frequently (often reported problem).
now calculate the normal as with ngons.
2012-04-16 16:24:55 +00:00
Campbell Barton
0f7ab89b4e fix for fail thumbs being used when the failed thumbnail image is older then the image/movie/blend. 2012-04-16 15:13:21 +00:00
Campbell Barton
e0605cca9a fix error when a failed thumb overrides a newer good thumbnail.
on saving blend file remove failed thumb.
2012-04-16 14:34:48 +00:00
Sergey Sharybin
caafc8184b Fix #30720: Creating Navmesh crashes blender
In fact there were several issues fixed (all of them regressions since bmesh merge):

- Creating navmesh crashed because creating new faces for mesh was trying to set
  default values for all customdata layers in this face. This requires memory
  pool created for this datablock.
  Usually this pool is creating on creating datablock if there're some elements
  to be stored in this block. In cases of regular primitive creating it wasn't
  an issue because they doesn't create customdata layers, they only creates
  geometry.
  Navigation mesh creates geometry and customdata layers (CD_RECAST layer)
  which used to confuse a bit custom data functions. Solved by ensuring there's
  memory pool created for polygons datablock after adding new custom data layer.
  Most probably it's better to be resolved on CD level (like smarter track on
  changed amount of stored data and so) but prefer not to make such global changes
  so close to the release.
- Toggling edit mode lead to loosing recast datalayer. Solved by adding recast
  layer to bmesh mask so it'll be copied to/from edit mesh.
- Some part of code assumed raycast layer is in face datablock, some that it's in
  polygon datablock. Made it to be in polygons datablock.
  Kind of temporary solution to make navmesh working, probably it'll fail if one
  will want to edit navmesh by hand after it was generated.
  Proper way would be to ensure the whole navmesh things are using ngons.
2012-04-16 13:53:30 +00:00
Lukas Toenne
f4498e62a7 Dynamic output sockets for the image input node. This is needed to enable the node to read arbitrary multilayer exr files. Output sockets of this node are now generated dynamically when the image is updated. The image buffer has to be loaded to detect multilayer files on update. 2012-04-16 13:49:33 +00:00
Campbell Barton
37a79f4727 fix [#30972] Editmesh split by materials not working. 2012-04-16 13:49:04 +00:00
Sergey Sharybin
5ebd70b7b5 Merging r45620 through r45692 from trunk into soc-2011-tomato 2012-04-16 12:47:34 +00:00
Lukas Toenne
c509f687ca Avoid invalid delete call when loading multilayer EXR files with that don't fit the Blender pass naming scheme. If the imb_exr_begin_read_mem function fails reading the EXR (e.g. because of too many channels per pass) it deletes the file internally, leading to segfault on second delete. 2012-04-16 11:57:22 +00:00
Sergey Sharybin
34814e4755 Port multires_topology_changed to new bmesh api
This call is still needed when loading editmesh because some operations
are not creating CD layer for new loops (like crating new face) and
to prevent loosing all sculpted data when running disps correct
displacement maps should be allocated on loading edit mesh.
2012-04-16 11:03:42 +00:00
Lukas Toenne
5c646e7e3a Reverted r43219 "Improved auto-hiding of unused sockets for collapsed nodes."
This feature did have a number of flaws and caused some controversy, so removal is the better option. Hiding nodes without prior connections would just hide all the sockets, leaving an unusable node. Better way is to use the ctrl+h shortcut to explicitly hide unused sockets when necessary.
2012-04-16 10:50:57 +00:00
Campbell Barton
bd613739ae bmesh todo: remove unused code. 2012-04-16 10:29:59 +00:00
Campbell Barton
a72076a2da bmesh todo: snap to volume with dupli's works again 2012-04-16 10:09:26 +00:00
Campbell Barton
dbc3955253 code cleanup: remove bmesh todo, which infact is working fine. 2012-04-16 10:02:52 +00:00
Sergey Sharybin
987dd55245 Fix #30958: Right click menu and add shortcut for importers/exporters doesn't work
This was caused by how keymap is guessing for importer/exporter:

- In some cases if detected wrong keymap like for IMPORT_CURVE_OT_svg
  curve editing context was used because of CURVE_OT substring in
  operator name
- In other cases no keymap was detected because of substrings
  WM_keymap_guess_opname cheched.

Fixed by using Window keymap for any operator with EXPORT_/IMPORT_ substring
which seems to detect importer/exporter operator and only them nicely.
2012-04-16 09:55:54 +00:00
Campbell Barton
4ebcae7158 bmesh todos:
- dont do name based object lookup to find the object for a mesh undo state (possibly object is renamed inbetween undos which would crash)
- remove some todo comments for things that are working as they should.
2012-04-16 09:34:43 +00:00
Campbell Barton
1492754c8f bmesh todo: ctrl+l now delimits by hidden faces. 2012-04-16 08:44:11 +00:00
Brecht Van Lommel
9cf2e5baf6 Fix windows compile issue with missing isnan. 2012-04-16 08:11:07 +00:00
Campbell Barton
52023f9e88 bmesh todos:
- curve undo now runs ED_curve_updateAnimPaths() again.
- comment out unneeded index setting.
2012-04-16 08:04:12 +00:00
Campbell Barton
0635f8101c make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe. 2012-04-16 06:48:57 +00:00
Campbell Barton
fb1e60762f style cleanup: scanfill, spelling and use NULL rather then 0 2012-04-16 05:23:40 +00:00
Campbell Barton
79693e4543 code cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(), was 'mat_nr', now 'do_quad_tri_speedup' 2012-04-16 05:03:04 +00:00
Campbell Barton
d89db25c53 bmesh api todo:
emDM_getTessFaceDataArray now returns UV's and Colors from editmode loops.
2012-04-16 04:17:33 +00:00
Campbell Barton
034d5194ab fix [#30967] Straighten X/Y in the UV/Image Editor bug
patch by Bastien Montagne, checked this works the same as 2.62.
2012-04-16 01:55:25 +00:00
Thomas Dinges
5496e87eee Fluid Simulation:
* Replaced the hard coded viscosity presets with Python ones.

* Added version check, so older files load fine.
Loading new files into 2.62 also works fine.
2012-04-15 21:02:08 +00:00
Francisco De La Cruz
86508076d8 Fix [#30943] Crash when edge mode enabled and use the bmesh vertex slide(shift-V)
Also fixed snapping sensitivity. Gave BMOp a more consistent name "vertex_slide".
2012-04-15 18:34:13 +00:00
Campbell Barton
6520aa97a9 add 'idprop' module so we can document idprop.types.*, currently doc generator has no access to ID Property types. 2012-04-15 14:54:15 +00:00
Nicholas Bishop
24286ba5bd Fix bug [#30953] Changing brush preset irreversibly undoes things
Remove REGISTER/UNDO flags from brush preset operator.
2012-04-15 14:54:01 +00:00
Bastien Montagne
6fed4fdd5e Style cleanup (mostly line length, also no final point in tips...). 2012-04-15 13:41:07 +00:00
Benoit Bolsee
6627fe3f75 BGE bug #30555: crash in Replace Mesh when physics shape is triangle mesh and new mesh has no collision faces. The fix consists in keeping the previous physics shape, which is not quite correct, but the situation is unusual anyway. 2012-04-15 12:49:34 +00:00
Brecht Van Lommel
cda6230a85 Fix #30952: uv unwrapper not working as well as 2.62 on some topologies, let the
unwrapper itself decide how to split quads since it has specific checks for the
best unwrapping split built in, gives better results.
2012-04-15 10:31:07 +00:00
Campbell Barton
db53faffa3 make ngon_perimeter into a public api function and expose to python. 2012-04-15 10:09:27 +00:00
Brecht Van Lommel
97538bd9ed Fix #30960: various mesh operators were missing tooltip descriptions. 2012-04-15 10:07:57 +00:00
Brecht Van Lommel
46146ecd08 Tweak knife/unwrap tesselation code a bit, it uses a random offset, now also
seed the random number generator to at least make these operator repeatable.

I don't know why it is using random numbers at all, we should really not be
doing this in my opinion, but I don't understand why it's being done so won't
remove it.
2012-04-15 10:06:36 +00:00
Thomas Dinges
9ef26d145c Fix [#30959] "undocumented operator" tooltip for Collada im- and export
* Also change UI name for ColorRamp node in rna_nodetree_types.h (Had a different name than in the actual UI)
2012-04-15 09:39:51 +00:00
Brecht Van Lommel
637387b8ac Fix #30949: live unwrap when marking seams did not work with bmesh. 2012-04-15 09:20:42 +00:00
Brecht Van Lommel
ac07f89838 Fix #30948: add scene > copy settings did not copy settings like units, audio, game
data, and tool settings.

What exactly should be copied is a bit up to interpretation, but I think these make
sense, and things like audio or game data used to be part of render settings which
do get copied so at least for those it was a regression.
2012-04-15 08:48:11 +00:00
Campbell Barton
a73d0d3e72 code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows. 2012-04-15 07:54:07 +00:00
Campbell Barton
e7f1033dcb style cleanup: for loop macros, also add a config file for uncrustify source formatter (able to get very close to our own style guide). 2012-04-15 07:24:14 +00:00
Thomas Dinges
3f605bff4b Scons:
* Add new scons options to 'blenderlite' target

* Remove ancient yafray comment
2012-04-14 22:33:48 +00:00
Thomas Dinges
f725a3d6c4 Scons ToDo:
* Made Frameserver building optional, added WITH_BF_FRAMESERVER.
* Enabled per default in btools.py
2012-04-14 22:19:29 +00:00
Thomas Dinges
48ed63b1a5 Scons ToDo:
* Made Smoke building optional, added WITH_BF_SMOKE.
* Enabled per default in btools.py
2012-04-14 21:55:38 +00:00
Thomas Dinges
44f10d889e Blender Internal:
* Remove some remaining (already commented) radiosity cruft.
2012-04-14 21:48:34 +00:00
Daniel Genrich
73a77650d0 Fluidsim: Text fix. 2012-04-14 20:35:39 +00:00
Daniel Genrich
ab6c8c2565 Fluidsim:
a) Remove "animatable" flag from resolution property
b) "Hide fluid surface": Add description and changed prperty name. Nobody really understood the purpose of that checkbox.
2012-04-14 20:24:12 +00:00
Thomas Dinges
51211b9419 Revert rename of ColorRamp node from r45629.
Don't make such changes based on an assumption, it could be wrong and coordinate with the UI team first!
2012-04-14 18:05:44 +00:00
Bastien Montagne
6c285ce1a6 Minor fix to UI messages. 2012-04-14 16:24:30 +00:00
Bastien Montagne
9cd72eef99 Minor fix to recent i18n commits. 2012-04-14 16:06:59 +00:00
Bastien Montagne
e5bda9f827 Fixed some UI message typos (spotted by Leon Cheung, thx). 2012-04-14 15:44:31 +00:00