Commit Graph

28486 Commits

Author SHA1 Message Date
Campbell Barton
331dd678c7 error with recent commit, thanks Ender79 for finding. 2011-11-18 17:28:19 +00:00
Campbell Barton
4f7ecd79fe speedup for editmesh tesselation (approx 4.4x speedup in optimized builds),
this is important because it runs while transforming the mesh in editmode.

also made this code a bit more efficient.
2011-11-18 16:06:20 +00:00
Campbell Barton
cb2b92ce27 mesh_recalcTesselation speedup, ski[ check for 3-4 sided faces - dont use scanfill in these cases.
overall 6x speedup on an optized build (Suzanne subsurf level 5, applied)
2011-11-18 12:18:44 +00:00
Campbell Barton
42c0250b28 fix [#28676] Tris to Quads: "Max Angle" is not interpreted correctly 2011-11-18 09:41:39 +00:00
Campbell Barton
e1250f2168 svn merge ^/trunk/blender -r41954:41961 2011-11-18 09:34:45 +00:00
Campbell Barton
d498dd3939 make RNA_def_float_rotation usable for single value rotations (not arrays). 2011-11-18 09:23:55 +00:00
Bastien Montagne
7084ab4f43 Moving spanish code from es_ES to es for now (as the best spanish translation is es.po...).
Else, gettext first search into es_ES (and es_MX it seems???), before using content from es, which currently is not good.
2011-11-18 09:16:29 +00:00
Sergey Sharybin
971065ec9a Set floor fails to make camera be in positive Z half-space if it was parented to other object. 2011-11-18 08:48:33 +00:00
Campbell Barton
aa19d53de1 edits to 41957, main changes to render layer removal.
- report an error if the layer can't be removed
- check the render layer is in the list before removing
2011-11-18 08:42:44 +00:00
Sergey Sharybin
9f0a6dca13 Added methods new and remove to scene.render.layers, so now render layers
can be created and removed from scripts.
2011-11-18 07:11:54 +00:00
Campbell Barton
5600d214f1 svn merge ^/trunk/blender -r41939:41954 2011-11-18 05:06:53 +00:00
Campbell Barton
8c6057d5e3 exclude addons_contrib/ for release builds. 2011-11-17 19:43:59 +00:00
Bastien Montagne
14e103b827 Tweaks and fixes to UI messages, found while translating in french. 2011-11-17 19:26:50 +00:00
Andrew Wiggin
8a8566c894 Fix [#29256] Import images as planes add on doesn't work correctly in bmesh 2011-11-17 18:48:49 +00:00
Campbell Barton
22b5a3735f add flag FUNC_USE_MAIN for rna functions which don't need the context. (currently unused) 2011-11-17 18:41:37 +00:00
Campbell Barton
d90e3759bc centralize some of the came install commands, were being copied between osx/win/linux 2011-11-17 18:23:34 +00:00
Campbell Barton
92ed90d2fa pyapi feature from 2.4x
allow collection subscript to contain the library or None.

eg:

  bpy.data.objects["Mesh", "/subsurf_test.blend"]

  bpy.data.scenes["Scene", None]

  # also works with get()
  bpy.data.armatures.get(("some_armature", "//some_lib.blend"), None)
2011-11-17 08:47:34 +00:00
Konrad Kleine
096f7c06b1 Fixed comment in BLI_dlrbTree_search_exact 2011-11-17 08:02:36 +00:00
Campbell Barton
db44a92a11 pydrivers: 'frame' is now in the driver namespace,
- no need to link to scenes when using a frame from the pydriver, this made linking rigs for eg, quite messy.
- advantage that we get subframe values (where scenes from was fixed to a whole number).
2011-11-17 07:08:09 +00:00
Andrew Wiggin
cc64af9bfa warning cleanup 2011-11-17 06:08:58 +00:00
Campbell Barton
dfeda8688e svn merge ^/trunk/blender -r41932:41939 2011-11-17 05:33:02 +00:00
Andrew Wiggin
1038c76c55 Add access to UVs from python, patch python unwrap scripts to work wtih ngons 2011-11-17 05:03:07 +00:00
Antony Riakiotakis
68fa959de5 BLI_mempool redefined causing compile time error, removing duplicate typedef 2011-11-16 22:20:17 +00:00
Brecht Van Lommel
7fbf5fbe87 UI: editor splitting widgets in corners now draw antialiased, also fix 1 pixel
inconsistency between bottom-left and top-right.
2011-11-16 20:36:06 +00:00
Bastien Montagne
819d1f417d Fix [#29190] VSE bugs.
Only real bug was, that effect strips' start frame and length were editable. Made all four frame properties readonly on RNA level for those kind of strips (those for which get_sequence_effect_num_inputs returns a non-null value).

Also fixed the tooltip of frame_final_duration.
2011-11-16 20:03:54 +00:00
Campbell Barton
3ed866d2fc svn merge -r41926:41932 ^/trunk/blender 2011-11-16 19:57:20 +00:00
Campbell Barton
3dcc9aef96 merge mempool changes from bmesh (adds mempool iterator). 2011-11-16 19:31:42 +00:00
Campbell Barton
93581ab815 remove NULL check for the pool, trunk doesnt have this, caller better check. 2011-11-16 19:26:11 +00:00
Sergey Sharybin
9b17d39ce0 Fix #29260: Missing "Extend" parameter for Border Select
Added "Extend" flag to border select operators for editors:
- UV Editor
- Sequencer
- NLA
- Info Space
- Graph Editor
- File Browser
- Clip Editor
- Action Editor
- Channels and markers regions

Can be used for custom keymaps.
2011-11-16 19:22:14 +00:00
Campbell Barton
508c7f3ebd better alignement for BLI_mempool struct 2011-11-16 19:17:33 +00:00
Campbell Barton
9d05ccf9e8 svn merge -r41899:41926 ^/trunk/blender. also sync mempool with trunk and move BLI_mempool_alloc out of mempools header where it was inlined 2011-11-16 19:06:38 +00:00
Miika Hamalainen
9f51785c4d Dynamic Paint:
* Wave simulation speed doesn't anymore depend on surface size, but uses relative distances instead. This change will likely change simulation behavior on existing saves, but can be easily tweaked back using the "Wave Speed" parameter.
* Added a new wave brush type, "Depth Change". It uses the change of brush intersection between frames, giving a better looking "wake" for moving objects. It also doesn't leave any "dent" to the surface while remaining still.
2011-11-16 18:32:28 +00:00
Campbell Barton
707fcc42a3 replace macros with math functions 2011-11-16 17:37:20 +00:00
Campbell Barton
9087cb91d4 quiet compiler warnings for BLI_array defines, split BLI_array_append into BLI_array_append / BLI_array_append_r, the latter returning the new array location. 2011-11-16 17:09:41 +00:00
Campbell Barton
1af839081b minor edits, move mempool stack vars into the nested scope when they aren't likely to be used, also formatting edits (was quite un-blender like). 2011-11-16 16:50:30 +00:00
Campbell Barton
4d9766aacf minor cleanup
- remove / comment unused python vars
- replace mul_v3_fl(somevec, -1.0f); with negate_v3(somevec);
2011-11-16 16:38:37 +00:00
Brecht Van Lommel
cb09ad43e1 Fix #29293: NLA Strip modifiers don't survive save/reload. One letter
can make a big difference :)
2011-11-16 16:08:45 +00:00
Campbell Barton
aaf14ead15 edit the _BLI_array_growone macro so it doesnt give the error that values are calculated but not used. 2011-11-16 15:49:48 +00:00
Brecht Van Lommel
c6bbe25c29 Fix #29093: world zenith up and down texture influence were not working
correct. These were decoupled from horizon influence for 2.5, but not
actually used in the render engine.
2011-11-16 15:47:25 +00:00
Campbell Barton
0c017bf146 tag index arrays as dirty when any element is removed, also check validity on operator init/exit (check was missed in some cases before) 2011-11-16 14:36:23 +00:00
Brecht Van Lommel
004cb6ba1b Fix #29160: material node "Texture" didn't use default texture coordinates
anymore when nothing was connected to the socket.
2011-11-16 14:13:43 +00:00
Brecht Van Lommel
ed5815fc7f Fix #29243: unlink texture datablock from material node in texture properties
could crash, RNA pointer from context was invalid.
2011-11-16 13:49:51 +00:00
Campbell Barton
e63399edda BM_Compute_Normals was setting invalid edge index values when it didn't need to. 2011-11-16 13:23:29 +00:00
Campbell Barton
bda9a2dc8b ensure dirty flags / index arrays are in a valid state before & after executing a BMO in debug mode. 2011-11-16 13:06:49 +00:00
Campbell Barton
496a078810 fix for error in last commit, also make BM_ElemIndex_Validate() check dirty flag and complain if its set when it didnt need to be (this function isnt called yet) 2011-11-16 12:56:33 +00:00
Brecht Van Lommel
c4e029a274 Fix #29287: cycles and other external render engines did not print correct frame
number in background render.
2011-11-16 12:47:37 +00:00
Lukas Toenne
391f40e8c9 Default cache file paths for ocean and fluidsim modifiers are now "<temp folder>/ocean_cache/" and "<temp_folder>/fluid_cache/" when the file is not saved yet at the time the modifiers are created.
If it has been saved, the file paths are relative to the .blend: "//ocean_cache/" and "//fluid_cache/".

This should at least partially fix bug #29273. Particle external point caches are not changed.

http://projects.blender.org/tracker/?func=detail&atid=498&aid=29273&group_id=9
2011-11-16 12:43:12 +00:00
Campbell Barton
da849bbfc0 prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.
- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.
2011-11-16 12:38:40 +00:00
Brecht Van Lommel
eff7e18dc5 Fix #29288: armature draw type wire + manipulator draw issue. 2011-11-16 12:27:24 +00:00
Sergey Sharybin
01af54c464 Camera tracking: forbid focal length=0 and small code cleanup 2011-11-16 10:00:02 +00:00