Commit Graph

28775 Commits

Author SHA1 Message Date
Campbell Barton
caf84b49f6 patch [#26235] debian/watch: Update for change of versioning 2011-03-03 16:12:32 +00:00
Campbell Barton
aec6020376 added support for windows/mingw 2011-03-03 15:38:29 +00:00
Ton Roosendaal
b18870e6da Bugfix #26307
Blender crashed on repeatedly pressing "reload image" or "unpack" and
other image options, with a material/texture preview running.

Solved with a signal to stop preview render before doing the action.
2011-03-03 15:18:35 +00:00
Sergey Sharybin
3074529c7f Fix #26273: mirror mod. + armature mod. + rotated armature == wrong reference axis for moving verts (when mirror comes first)
Do not overwrite coord of vertices in mapped vertex array used for crazyspace
corrections. This should make stuff use position of mesh vertex after
deformation, not possible generated images of this vertices.
2011-03-03 15:17:57 +00:00
Campbell Barton
e197cc95e6 fix crash from own recent changes [#26271] Crash when accessing bpy.data.node_groups 2011-03-03 13:55:15 +00:00
Brecht Van Lommel
36db7f8eb7 Fix #26261: blend from shape operator "add" option was not working correct. 2011-03-03 13:26:55 +00:00
Campbell Barton
2f741e4dde fix for own error [#26310] "Randomize Transform" operator has widgets jumbled
the correct order was being overwritten.
2011-03-03 13:23:40 +00:00
Campbell Barton
e8c322ee85 Py/RNA API: WITH_PYTHON_SAFETY
compile time option which enables extra safety checks.
since this is noticeably slower I rather not enable by default yet.
2011-03-03 12:00:35 +00:00
Campbell Barton
c7dc8ddf7d fix error in qtcreator project file arg checking and check for cmake files. 2011-03-03 11:22:54 +00:00
Campbell Barton
b6b77b8426 Py/RNA api:
fix for crash when iterating over a collection which allocates the collection and frees on when finished.

The ability for BPy_StructRNA to hold a reference to other PyObject's was added to support this.
2011-03-03 09:16:06 +00:00
Campbell Barton
57436f3013 fix for own error made r35267. 2011-03-03 08:01:11 +00:00
Campbell Barton
3a2ce2be83 Py/RNA api - real collection iterator
Previously the api just converted the collection to a list and got the iterator from the list to return.

This has the advantage that it uses minimal memory on large collections where before it would make an array.

Though the main reason for this change is to support a bugfix for collections which free memory when they are done, this currently crashes the python api since once the list is built, the data is freed which is used by the list items in some cases (dynamic enums for eg).
2011-03-03 07:41:09 +00:00
Campbell Barton
b535c738d9 further reading, need to untrack tracked PyObjects before clearing their trackable vars. 2011-03-03 06:14:55 +00:00
Campbell Barton
c42f3b4e59 support for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be called once the fields are filled in. 2011-03-03 06:01:31 +00:00
Campbell Barton
5f5fb5061b formatting edits. (no functional changes) 2011-03-03 05:42:16 +00:00
Campbell Barton
a18e1043e8 solidify material offsets for 2nd surface and rim faces.
run do_versions() on use_rim_material option so Sintel's jacket loads ok.
(request from Bassam)
2011-03-03 05:09:07 +00:00
Campbell Barton
385c5f0755 minor correction for r35312, check the operator returns finished.
use lambda for uv.py (no functional change).
2011-03-03 04:25:14 +00:00
Dalai Felinto
13d5f6005e BGE: Material Force Field renaming + reorganization
the old FH setting was blended with the other physics settings (friction and elastic)
Also in the Physics panel it was saying "Use Material Physics" but the button is only for Force Field.

Since I was here I decided to change the Constraint FH ui name from Fh to Force. I don't think users really understand what FH is (I for once don't).
Thanks to Carsten Wartmann for pointing that out.
2011-03-03 01:47:17 +00:00
Joshua Leung
5e75835524 Shrinking the marker mouse-y tolerance again. It was a bit too high,
making normal transforms get caught too often. I've got a few more
methods that I'll be trialling in the near future
2011-03-02 23:40:32 +00:00
Joshua Leung
a19e917782 Bugfix [#26269] Initiating a duplication with shift D and cancelling
in dope sheet/ graph editor leads to duplicated keys

The old hack using the transform "undostring" didn't work anymore, as
this wasn't set. Instead, I've added a special mode transform mode for
this that the duplicate operators can set to get this functionality.
2011-03-02 23:39:08 +00:00
Dalai Felinto
9f397b3a3d Logic Editor: link a Sensor with an Actuator and automatically creates an And Controller linked to them
-------------
Given the code perspective this is a hacky solution. However it's self-contained and documented one.
Ended having a talk with Ton and he agreed that this can acceptable in this case.
Zero chances of crashes (I've been using this myself for more than 6 months now).

Give it a shot. Although the code is +- for the user it's a really nice addition.
At the moment it makes more sense to put energy into the future Nodal Logic.
Yet, it's nice to give the current Logic Editor the love it deserves.
2011-03-02 22:32:13 +00:00
Dalai Felinto
0699c21f01 Logic UI: reverting back the PROP_ANGLE props
The Logic Bricks that use angles (Radar Sensor and Constraint Actuator) do so in degree.
Reverting for the time being. Ideally we want to make them to use radians internally (that requires at least a doversion and a convert from radians to degree in BGE Converter routine).

If someone feels like helping on that, please go ahead.
2011-03-02 19:08:48 +00:00
Campbell Barton
b8c85abc1c tag unused var 2011-03-02 19:06:09 +00:00
Campbell Barton
9c45fed287 Change RNA weakref code to use a ghash rather then a PyList, removing items from the list was far too slow. 2011-03-02 18:59:43 +00:00
Janne Karhu
356fb2524c Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed! 2011-03-02 17:49:02 +00:00
Janne Karhu
e6a5715773 Fix for [#25326] FCurve rotate gives strange results.
* The fcurve points changed their order when rotating, but the transform data wasn't updated properly for this change so some curve handle pointers got lost.
* Also found a second bug while fixing this: The fcurve handle type pointers weren't updated at all when the order changed, so some auto handles could turn into aligned handles even if the transform was canceled (no undo possible in this case!).
2011-03-02 17:32:01 +00:00
Campbell Barton
415e8df10e simplify rna internal weakref use. 2011-03-02 16:56:13 +00:00
Ton Roosendaal
dd2c7fa908 Bugfix #26226
ImageWindow: hotkey "P" for Scopes was in conflict with Pinning.
Remapped it to "T" for time being, although it's not a toolbar...
2011-03-02 16:52:09 +00:00
Campbell Barton
0abffe22c2 align weakref list for rna (properties were using wrong pointer) 2011-03-02 16:22:04 +00:00
Lukas Toenne
4453439254 Removed tests for existing node pointers in RNA function for new links. Group node sockets don't have any specific node they belong to, so no node pointers are found. 2011-03-02 14:13:05 +00:00
Ton Roosendaal
361b8017d2 From the OFTL (old fart todo list)
Right Mouse on area edges has menu to Split or Join. Works like 2.4.

Code needed cleanup and upgrade; operators were hardcoded tied to using
the area corner widgets only. In theory this is getting py ready even,
but that might need some additional testing. :)
2011-03-02 14:09:54 +00:00
Campbell Barton
7159bc0b1c minor fixes to weakref validation before making bigger changes 2011-03-02 06:56:21 +00:00
M.G. Kishalmi
54b654c18f fixed compile problem intruduced in r35295
one import was missing, another one used twice.
2011-03-02 06:47:08 +00:00
Guillermo S. Romero
58eb5ffc28 SVN maintenance. 2011-03-02 05:06:43 +00:00
Campbell Barton
3c3997f050 replace references to old arithb library 2011-03-02 05:05:12 +00:00
Campbell Barton
e2304a4dbb move anim functions out of bpy_rna.c, its getting too big. 2011-03-02 04:51:43 +00:00
Campbell Barton
21067886aa update for changed exception type 2011-03-02 04:16:57 +00:00
Dalai Felinto
4a48bb3cf5 Logic Editor: "Python Controller" NOT "Python Script Controller"
The "Script" was added in the original rna commit but for no apparent reason the controller was renamed from the original 2.49 name.
Spotted/reverted in time.
2011-03-02 01:42:14 +00:00
Nathan Letwory
299d1552af Remove superfluous () 2011-03-01 21:55:51 +00:00
Sergey Sharybin
0e8d313f0e Fix #26218: texture paint
- Added option "Fixed Texture" to the UI. Because of strange reason,
  this feature was implemented but hidden from users.
  Would be cool, if somebody familiar with 2d texture paiting check.
- Fixed some issues in existing code of fixed texture paiting.
  It now handles brush radius and curve correct.
- Also fixed issue with paiting with texture from node tree - it used
  to be painted with regular brush color instead of texture.
2011-03-01 17:58:12 +00:00
Campbell Barton
f2f52a578a UV layout export: EPS format
Pass an iterator function rather then the iterator its self, allows to loop over the faces twice without making a list.
2011-03-01 17:32:17 +00:00
Campbell Barton
2be3a334e2 fix [#26257] Colored UV-Map on export
- EPS now exports material colors and face fill doesn't overwrite edges (draw in 2 passes).
- added opacity option for EPS/SVG/PNG
2011-03-01 17:22:27 +00:00
Ton Roosendaal
d23a7574a0 Bugfix #26243
Not sure if it fixes the bug, but an RNA boolean was read as int...
Related to default for "Blend from Shape" tool.
2011-03-01 17:00:01 +00:00
Ton Roosendaal
32d87359e1 Bugfix #26249
Paint strokes now can be mapped to any key. The operators now store the
event it was started with, so it ends with a release. Even hotkeys work 
(while hold).
2011-03-01 16:26:37 +00:00
Ton Roosendaal
acd69b9c3f Bugfix #26251
Logic editor: click in active text input buttons didnt work.
2011-03-01 15:54:49 +00:00
Nathan Letwory
ef648f617e Fix [#25476] Pan view not always works with shift+alt+LMB in Blender 2.56
Reported by Mihail Konoh

Applied patch submitted by Alexander Kuznetsov (to [#26208]). Thanks for long-standing head-ache :)
2011-03-01 15:14:59 +00:00
Campbell Barton
623822626a Py/RNA Stability: don't allow python to reference freed ID's and crash.
Second method for not having python crash blender on invalid access (ifdef'd out ATM, so no functional change).

This uses a weakref list per ID, and invalidates all members of that list when the ID is freed.
the list is not stores in the ID pointer but using a hash table since storing python in DNA data is not acceptable.

This is more correct then the previous method but shows down execution of scripts significantly since its always adding and removing from lists when data is created and freed.
2011-03-01 14:53:26 +00:00
Ton Roosendaal
f0f639f8b8 Typo in last commit, changing variable name for more readable code... 2011-03-01 13:56:33 +00:00
Nathan Letwory
900199d215 Fix [#26207] Render.exe mangles paths in mysterious and awesome ways
Reported by Edwin Amsler

The function for extrapolating the template name with the frame number didn't properly NULL-terminate the
resulting string, this causing broken names and weird paths (if you were lucky - totally unusuable names
detected while stepping through the code).
2011-03-01 12:52:00 +00:00
Ton Roosendaal
5bf1bf645c Bug fixes #26236 #26237
- Linking logic buttons had draw glitch, caused by reading
  data from free'd buttons
- Doing an undo with mouse-over Curve Widget caused crash or
  corruption.

Both related to code that tries to keep the "active" button in
memory. On each redraw of UI, buttons are re-created, which makes
it all tricky... hope we're safer now.

Also: added back undo pushes on adding links in logic editor.
2011-03-01 12:25:55 +00:00