Campbell Barton
6ca7d82932
code cleanup: white space, spelling & ';;' end of lines.
2012-02-25 16:04:03 +00:00
Campbell Barton
05725e7b6e
bmesh py api - add funcs
...
* BMFace.copy_from_face_interp(face)
* BMLoop.copy_from_face_interp(face, vert=True, multires=True)
These are important for rebuilding geometry from existing faces without loosing UV's, vcols etc.
2012-02-25 15:51:39 +00:00
Martin Poirier
3cfb637d7c
[ #30197 ] Snapping: Align rotation button
...
Reported by Pep Ribal
Volume snapping was showing invalid options.
2012-02-25 15:14:41 +00:00
Campbell Barton
69cf6adb84
fix for own regression in r44361 (broke BM_vert_in_face)
...
also fix py api: bmesh.utils.face_split(face, v1, v2)
2012-02-25 14:56:37 +00:00
Jens Verwiebe
f8d55b5bf0
OSX: scons: fix own mistake, truncate output of xcode-build -version to major.minor version in config to change the var not only the print
2012-02-25 11:21:20 +00:00
Jens Verwiebe
bbb77f5878
OSX: scons: corrected output string of xcode-build -version, so only major/minor version is used
2012-02-25 10:59:32 +00:00
Campbell Barton
b366813e37
bugfix
...
* ntreeCompositExecTree accessed 'ntree' before NULL check.
* BM_face_triangulate accessed 'f' before NULL check.
also quiet warning in BKE_text_to_curve() and add a check for BMesh bridge loops so it knows quicker if it can copy loop data or not.
2012-02-25 09:06:17 +00:00
Campbell Barton
c955272ec5
code cleanup
...
* correct cmake/clang warning.
* use same include guard names as everywhere else for BLI math inline.
* correct define for madd_sh_shfl
2012-02-25 09:02:05 +00:00
Campbell Barton
57fd1fe00e
remove redundant NULL check in draw_new_particle_system()
2012-02-25 08:37:51 +00:00
Tamito Kajiyama
9ca7f6659f
Merged changes in the trunk up to revision 44419.
...
Conflicts resolved:
doc/python_api/sphinx_doc_gen.py
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_view3d/drawobject.c
source/creator/CMakeLists.txt
2012-02-25 01:26:45 +00:00
Juha Mäki-Kanto
2d8227f204
Collada export: bone parenting is actually against the tail.
...
Don't know the reasoning for having it be against the tail and not the head.
2012-02-24 21:45:59 +00:00
Juha Mäki-Kanto
adba42beaa
Collada export: fix no polylist after bmesh-merge
...
Just needed a call to BKE_mesh_tessface_ensure when exporting geometries.
2012-02-24 21:15:58 +00:00
Joerg Mueller
697b494a30
Fix for #30336 : Couldn't playback from Python without having played back via logic bricks once.
...
Thanks Colin Nickerson for reporting.
2012-02-24 19:34:29 +00:00
Jens Verwiebe
2377bfe32f
OSX: set ffmpeg back in darwin-config according librenaming
2012-02-24 18:31:09 +00:00
Campbell Barton
fbd6d4488e
bmesh bridge - copy UVs and face data whem available.
2012-02-24 17:47:51 +00:00
Brecht Van Lommel
cf092e5a2f
Python: add MeshLoop.index, same as already existed for vert/edge/face/poly.
2012-02-24 15:53:26 +00:00
Brecht Van Lommel
f4bb31f26b
Cycles: tweak for AMD opencl compile of advanced shading, from Daniel Genrich,
...
still does not work correct but should compile if you have enough memory.
2012-02-24 15:53:19 +00:00
Sergey Sharybin
ae38adbf55
Blender should now compile fine with older FFmpeg libraries used.
2012-02-24 15:34:57 +00:00
Sergey Sharybin
e04f32a153
More consistent variable naming.
2012-02-24 14:03:18 +00:00
Sergey Sharybin
baf485918b
TODO item: zoom to mouse location in image editor
2012-02-24 14:01:42 +00:00
Campbell Barton
aca448f0b6
bmesh py api - fix for error creating a new face
2012-02-24 13:50:36 +00:00
Sergey Sharybin
3151ff825b
Code clean-up and make zoom in/out operator store mouse coordinate
...
so exec() callback will zoom in/out properly.
2012-02-24 13:44:45 +00:00
Sergey Sharybin
826cb60731
CLIP_OT_view_zoom (Ctrl-MMB) now takes into account Zoom to Mouse Position setting
2012-02-24 13:31:18 +00:00
Campbell Barton
f7c9485605
bmesh python api:
...
bm.verts.get(verts) / bm.faces.get(verts)
- use to find an edge or face from a vertex list passed.
2012-02-24 12:57:05 +00:00
Sergey Sharybin
aff0c6c0f4
Fixed crash in UV project modifier.
2012-02-24 12:30:49 +00:00
Campbell Barton
73e73ed1e0
change default name of Texture face layer to UVMap, while we fake UV's and texface as being the same.
2012-02-24 12:10:41 +00:00
Campbell Barton
c839ff3acb
bmesh py api - bmesh.utils.face_flip
2012-02-24 11:04:09 +00:00
Campbell Barton
8c501c2248
bmesh: minor speedup, use 1 iterator rather then 2 when normalizing verts.
2012-02-24 10:40:32 +00:00
Campbell Barton
068566f985
bmesh py api - normal_update() functions for vert/edge/face.
2012-02-24 10:35:52 +00:00
Campbell Barton
c8d6b7759e
bmesh py api, minor change - edges now take a seq of 2: bm.verts.new((v1, v2), example=None)
2012-02-24 10:17:30 +00:00
Campbell Barton
edb04d1461
bmesh docs now written in sphinx doc generator.
...
* http://www.blender.org/documentation/blender_python_api_2_62_0/bmesh.types.html
* http://www.blender.org/documentation/blender_python_api_2_62_0/bmesh.utils.html
2012-02-24 09:53:29 +00:00
Sergey Sharybin
dd0f151ba9
Changes in FFV1 codec settings
...
Since FFmpeg 0.10 release FFV1 codec supports alpha channel which is getting
enabled when using PIX_FMT_RGB32 pixel format. This leads to incompatibility of
videos rendered in Blender with almost all external players (especially in OSX).
Seems that PIX_FMT_BGR0 is recommended to be used to make videos compatible with
older players which doesn't support alpha channel in FFV1.
Also added an option to switch to RGBA rendering if FFV1 codec is used and if RGBA
rendering is used FFV1 will be using PIX_FMT_RGB32 format which supports alpha channel.
2012-02-24 09:49:44 +00:00
Campbell Barton
1fbd91b8a1
typo cleanup, no functional changes.
2012-02-24 06:44:04 +00:00
Campbell Barton
6b85b96952
bmesh py api (some api changes and doc additions)
...
* remove 'select' and 'hide' from BMLoop
* remove BMesh.update
* add BMesh.normal_update(skip_hidden=False)
* add BMElemSet.index_update(), eg: bm.verts.index_update()
bmesh api
* BM_mesh_normals_update() now takes skip_hidden as an argument
(previously this was default behavior), however this isnt good when
using BMesh modifiers, where you want all normals to be recalculated.
* add bm_iter_itype_htype_map[], to get the iter type from a BMesh
iterator.
2012-02-24 05:56:06 +00:00
Campbell Barton
b9b0c3dfb4
bmesh python api - add/improve rst docstrings.
2012-02-24 04:59:13 +00:00
Brecht Van Lommel
8aa569b52e
Fix #30325 : bmesh edges were marked as sharp by default, after recent
...
refactor to reuse BM_ELEM_SMOOTH flag for sharp flag.
2012-02-23 21:23:49 +00:00
Brecht Van Lommel
f39c149391
Fix #30268 : cloth collision and springs not working after bmesh merge,
...
these cloth and collision modifiers require tesselation still.
2012-02-23 21:07:22 +00:00
Brecht Van Lommel
d7155295bb
Fix #30326 : calling e.g. bpy.ops.object.proxy_make(object = 'Lamp') would
...
not pick the right object. This operator had two properties "object" and
"type", but the latter was used while the former had the right description.
Now changed it to have only an "object" property, so that the above code works.
2012-02-23 20:31:51 +00:00
Brecht Van Lommel
0cf38faea4
Fix #30140 : cycles multi GPU rendering with one device supporting full
...
shading and the other not can't work correct, disabled that now.
2012-02-23 20:27:17 +00:00
Brecht Van Lommel
c4b64343d0
Fix #30246 : rendering multiple render layers with CUDA still not working,
...
should really be fixed now.
2012-02-23 19:48:18 +00:00
Sergey Sharybin
2254d2bdca
Fix #30323 : Graph view in the Movie Clip Editor does not stay open
...
In fact, Graph View wasn't been supposed to be opened in Clip show editor mode.
Made curves view unavailable from Clip view mode and store it's alignment in
a runtime flag in SpaceClip structure.
2012-02-23 18:51:24 +00:00
Campbell Barton
6871860cfe
bmesh py api - ensure data layers to store bmesh pointers exist - removing all elements could free them for eg.
2012-02-23 17:22:37 +00:00
Campbell Barton
310af7d73f
bmesh py api
...
bmesh.utils.face_join(faces)
added a utility function for converting a list of python BMesh elements into a C array.
use for this face_join as well as BMesh.faces.new()
2012-02-23 17:14:53 +00:00
Brecht Van Lommel
fdc01b49c2
Fix #30306 : crash duplicating object with action actuator but no animation data.
2012-02-23 16:12:36 +00:00
Campbell Barton
107795af49
bmesh split tool (Ykey), was only splitting off faces, unlike EditMesh which could also split edges.
...
make this behavior optional and default to off (match EditMesh).
2012-02-23 16:00:53 +00:00
Campbell Barton
c6f340e6b0
previous fix wasnt working in edge mode, now selection +/- works in vert/edge/face modes.
2012-02-23 15:47:18 +00:00
Campbell Barton
668297c8b8
fix [ #30318 ] increase/decrease selection won't work (select-more/less)
...
This was a problem with bmesh merge, now it works as expected again.
2012-02-23 15:22:29 +00:00
Brecht Van Lommel
75f3ff0534
Fix #30298 : fluid simulation from older files not working when loaded into 2.62,
...
this was due to a wrong version patch which leaves simulation speed to 0.
2012-02-23 15:10:26 +00:00
Brecht Van Lommel
334416bdaf
Cycles: fix cuda kernel not getting rebuilt correctly after changes, due to
...
refactoring that changed variable names, also fixed OpenCL compile issue with
advanced shading.
2012-02-23 15:10:10 +00:00
Campbell Barton
6cfb67b549
fix for meshes not showing up in the game engine.
2012-02-23 14:24:45 +00:00