Commit Graph

35432 Commits

Author SHA1 Message Date
Sergey Sharybin
4e981dc566 Fix #33345: Crash when using bpy.ops.sculpt.brush_stroke
It was kind of a regression in behavior in svn rev46862 which made it so
blender crashes if stroke is done from the script.

It should bring back the behavior back and made it so blender doesn't crash,
however it's probably not full fix and some further work is needed to make
call of stroke operator usable from the addon.
2012-11-29 13:24:02 +00:00
Campbell Barton
149b607141 py/bmesh api: add radial prev/next attributes to the loop 2012-11-29 05:54:35 +00:00
Mitchell Stokes
5ce13d0c6c BGE: Fixing the double-click issue for mouse events too. The previous fix only fixed double-click keyboard events. 2012-11-29 05:21:24 +00:00
Campbell Barton
858149d7c7 bmesh py api: add bmesh.update_edit_mode(), there was no way to redraw the 3d view or re-calculate face tessellation from python.
add py template for editing meshes in editmode.

also remove double call to CTX_wm_region which does a string lookup.
2012-11-29 05:02:06 +00:00
Campbell Barton
ede703ab85 some minor edits
- script stub printed resource warning with py3.3 (not closing a file).
- bmesh customdata layer access had bad docstring.
- float/double conversion warnings in sequencer code (use doubles since result is double)
- remove unused var
2012-11-29 03:55:07 +00:00
Campbell Barton
c86045d7a2 bmesh py api: use generic checking macros to see if an object if from the same bmesh.
- was such a common operation so this saves having exceptions set inline all over the place.
2012-11-29 03:25:37 +00:00
Campbell Barton
078487e98e bmesh py api: add BMeshFaceSeq.active attribute- bm.faces.active 2012-11-29 02:44:06 +00:00
Campbell Barton
9653c929ed skip recalculating tessface when adding objects if 'EnterEdit-mode' is disabled. 2012-11-29 02:37:39 +00:00
Brecht Van Lommel
0aad9f674a Move to Layer: optimization so that the first change in the popup menu does
not do an undo push & undo step, there's no reason this is needed.

In principle this particular operator doesn't ever need an undo on changes,
even for further steps, but that's harder to solve.
2012-11-28 16:42:39 +00:00
Campbell Barton
96136d3d88 bmesh operator py api:
- fix for incorrect bmesh operator type-check for mapping slots.
- fix for python causing an assert when invalid args are given.
- fix memory leak with some exceptions.
2012-11-28 15:07:57 +00:00
Campbell Barton
cac253a502 fix for minor annoyance - when extruding a circle there would always be one face flipped, now edges are all ordered in the same direction. 2012-11-28 14:15:54 +00:00
Brecht Van Lommel
1212237ae4 Fix normal compositing/shader node not showing normal widget.
It would actually show after save and reload, the subtype and min/max were
not properly initialized for node output sockets.
2012-11-28 13:20:45 +00:00
Sergey Sharybin
b91cf60962 Fix #33330: Proxies are not built in Sequencer if preview is visible
Was own regression when was solving conflict between sequencer preview
and compositor jobs. Made it so now only compositor jobs are being
killed from sequencer preview.
2012-11-28 09:36:23 +00:00
Sergey Sharybin
2eb21ef30c Fix #33295: Shifted movie strip when rendering <100% resolution for strip with complex transform
That was kind of a regression since fix for #32091: Crop and offset coordinates changes proxy
render settings on image strips, which is now fixed in other way.

Namely Offset/Crop values are filling in 100% scene resolution values, but getting scaled to
proxy / scene percentage values.
2012-11-28 09:01:00 +00:00
Campbell Barton
0b9be70591 typo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN when invalid args are given. 2012-11-28 06:43:04 +00:00
Nicholas Bishop
71e7f9028f Copy face attributes when creating new faces in BMO_symmetrize
Fixes bug [#33269] Symmetrize doesnt honor shadesmooth
projects.blender.org/tracker/index.php?func=detail&aid=33269&group_id=9&atid=498
2012-11-28 05:07:04 +00:00
Campbell Barton
e35b235925 fix [#33320] Decimate modifer in collapse is inconsistent when limiting to a vertex group 2012-11-28 02:49:06 +00:00
Campbell Barton
c5a8bd498d use radians for 'spin' bmesh operator (since the rest of the py api uses radians). also rename BMO_OP_SLOT_SUBTYPE_MAP_FLOAT -> BMO_OP_SLOT_SUBTYPE_MAP_FLT for consistency. 2012-11-28 00:47:33 +00:00
Campbell Barton
8ecce451ab bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge -> use_single_edge)
also remove duplicate docs for operator arg formatting.
2012-11-28 00:16:06 +00:00
Campbell Barton
69948150ad improve docstring for BMO_op_vinitf(). 2012-11-27 23:37:02 +00:00
Brecht Van Lommel
134bbf3791 GPU: remove GPU Mipmap Generation option and just always enable it, it's an old
OpenGL 1.4 feature that is stable, there's no reason not to use it. Also fixed
GPU mipmap generation not working in the game player.
2012-11-27 22:51:28 +00:00
Brecht Van Lommel
390ddd9103 Fix #33168: collada export added incorrect -material postfix to material names.
In the bug report it was also mentioned that special characters should be
preserved for names, however the collada 1.4 specification does not allow this.
Version 1.5 does, but we are still writing 1.4 files and files with such special
characters will then fail to open in some applications.
2012-11-27 21:26:06 +00:00
Brecht Van Lommel
a31cc2aeb7 Fix #33326: outliner numpad minus collapse followed by numpad plus expand did not work. 2012-11-27 20:12:00 +00:00
Brecht Van Lommel
e066601fdd Fix #33324: Auto IK not working after recent changes. iTaSC it seems never worked
with Auto IK, now that's fixed too.
2012-11-27 20:07:12 +00:00
Mitchell Stokes
936fca57c3 BGE: Fix for [#33027] "logic.keyboard polling rate extremely low" reported by Josiah Lane (solarlune). The embedded player now treats KM_DBL_CLICK the same as KM_PRESS. 2012-11-27 17:41:39 +00:00
Brecht Van Lommel
5a6d695218 CMake: hide some unnecessary LLVM/OSL/EXR prints. 2012-11-27 17:30:46 +00:00
Antony Riakiotakis
c0a7830733 fix crash with path conversion, not all materials have nodes 2012-11-27 17:21:58 +00:00
Campbell Barton
2dbbcb4c73 add osl shader scripts to bpath walker (so making paths absolute or relative applies to shader paths too).
also remove "RNA_types.h" include from BKE_nodes.h.
2012-11-27 16:19:52 +00:00
Brecht Van Lommel
b43c022373 Move to layer: remove the OK button and make it apply immediately like it did
before, is much nicer workflow. Now only if global undo is disabled will the
OK button show.

This is also a more generic fix for #26891 that solves other operators that
were also broken with global undo disabled.
2012-11-27 16:02:15 +00:00
Brecht Van Lommel
2b080dbc4e Fix part of #32248: transform with a size limit constraint did not preserve negative scale. 2012-11-27 16:02:03 +00:00
Campbell Barton
21db9ac0f4 replace and exception macro's for static functions and fix some bad assumptions. 2012-11-27 15:26:10 +00:00
Sergey Sharybin
eda56398af Camera Tracking: fixed camera solve operator not updating scene camera
Was own regression caused by fix of crash when non-camera object is used
as scene camera.
2012-11-27 15:10:22 +00:00
Campbell Barton
c9d84ab5ed split py->slot & slot->py into their own functions & fixed some mistakes with conversion. 2012-11-27 14:25:38 +00:00
Campbell Barton
492af7cc6b move bmesh operator calling into its own file. 2012-11-27 13:54:34 +00:00
Campbell Barton
2d5b8172e9 add empty files (will move bmesh operator calling here) 2012-11-27 13:45:28 +00:00
Jens Verwiebe
1fa12f09d5 OSX/scons: introducing and testing an unexported_symbols_list to prevent clashes, todo: cmake 2012-11-27 11:38:59 +00:00
Sergey Sharybin
f79c61c166 Masking: fixed bug with vector handles not updating when CV is parented to a motion track. 2012-11-27 11:28:39 +00:00
Sergey Sharybin
9b14d3608f Mark boost symbols as local
This was needed to resolve conflict between blender's and pylux's boost symbols.

Ideally visibility should be changed to local in lux as well, since if blender is
dynamically linked against boost it'll still crash.

Anyway, having this change wouldn't hurt and will solve issues with lux for official
linux builds at least.
2012-11-27 10:24:18 +00:00
Campbell Barton
a7555a81c7 remove unmaintained eltopo, keeping scons/cmake entries, but commenting out user visible config to make branch merging less of a hassle. 2012-11-27 09:52:20 +00:00
Campbell Barton
7c36100930 new bevel was still referring to old property name (holding shift wasnt working while beveling). 2012-11-27 09:47:22 +00:00
Campbell Barton
c00a1b7493 use clearer names for 'single' bmesh operator args & add '%e' to BMO_op_vinitf comments. 2012-11-27 09:41:08 +00:00
Campbell Barton
a9855c227e py/bmesh api - add support for single item buffers (odd feature but used quite a bit with bmesh operators).
also add utility functions BMO_slot_buffer_from_single(), BMO_slot_buffer_get_single()
2012-11-27 09:21:57 +00:00
Brecht Van Lommel
0cd26e6066 Fix crash opening .blend file with missing lib linked scene and no local scene. 2012-11-27 08:19:34 +00:00
Campbell Barton
90666d3436 code cleanup: bmesh operator comments, readying for doc-generation. 2012-11-27 06:53:26 +00:00
Campbell Barton
9982b283e6 fix for asserts added in own recent commit with more strict type-checking
- BMO_slot_copy now only copies compatible elements.

other minor changes
- don't use text.format(...), convention for UI scripts is C style string formatting.
- rename bmo_edgenet_prepare --> bmo_edgenet_prepare_exec
- float/double warning in bevel.
2012-11-27 02:34:40 +00:00
Howard Trickey
33c92a02e4 Bevel: better round profile code.
Easier to understand, no touchy intersect code, and works
even when arms aren't equal length.
Old code ifdef'd for now, will remove soon.
2012-11-27 01:07:22 +00:00
Campbell Barton
f8bc346eff bmesh/py operator api:
add type checking for element buffers, there was nothing stopping python from passing any element type into an argument when in some cases only verts/edges/faces were expected.
now operator args define which types they support.
2012-11-27 00:50:59 +00:00
Campbell Barton
f9e339ef00 fix/workaround [#33281] script goes into not responding
scanfill remove-doubles pass assumes ordered edges (as with curves), otherwise it can hang.
workaround this problem by skipping removing-doubles for mesh ngons, since this isnt such a common case as it is with curves and we can just not support it.
2012-11-26 23:18:04 +00:00
Brecht Van Lommel
42dc0dc5ef Fix #33226: error loading .blend files with different endian on Mac. The cause
was wrong inline and pure attributes on the endian switch function.
2012-11-26 20:37:04 +00:00
Brecht Van Lommel
864c4112e9 Fix #33316: mesh edge short path select was wrong on large/small objects. 2012-11-26 19:10:34 +00:00