Commit Graph

29176 Commits

Author SHA1 Message Date
Tamito Kajiyama
33efa9eeb6 Merged changes in the trunk up to revision 35367.
To branch builders: From this revision Python 3.2 will be used.
Don't forget svn update in the "lib" directory as well.
2011-03-06 12:13:32 +00:00
Sergey Sharybin
a2b128aa35 Final step for texture nodes/threading issue fix: make needed
initialization on sculpt brush stroke init and free used resources
when stroke is finished.
2011-03-05 17:47:24 +00:00
Ton Roosendaal
7fb14d9138 Bugfix #26367
Previous fix I did to make texture-node-paint work, accidentally
cleared tags for compositing nodes to be done while editing.
2011-03-05 17:04:30 +00:00
Ton Roosendaal
3d0390a518 Bugfix #26317
Dopesheet: shift+d duplicate is now a macro too, allowing a single undo.
2011-03-05 14:03:29 +00:00
Campbell Barton
3a590b4ec7 patch [#26366] More detailed Python error reporting for the BGE
from Alex Fraser (z0r)

    Now object name is shown with python error.
2011-03-05 11:08:22 +00:00
Campbell Barton
2610881e9c sculpt undo struct was using an array of char pointers rather then a char array. 2011-03-05 10:37:59 +00:00
Campbell Barton
c7fccc84bf use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors. 2011-03-05 10:29:10 +00:00
Dalai Felinto
10373238c1 blenderplayer building again in CMake + OSX (and Linux I guess) patch from IRIE Shinsuke 2011-03-05 09:27:14 +00:00
Campbell Barton
98b608bfdb workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash 2011-03-05 07:17:19 +00:00
Campbell Barton
91f4a4d7e1 fix [#26323] Crash when adding to a vertex group with a raw in 2011-03-05 05:02:37 +00:00
Campbell Barton
8f6e577620 Utility defines for quick timing tests.
for most cases:
 TIMEIT_START(my_test)
 ....
 TIMEIT_END(my_test)

prints time, test name, function name and line number.
2011-03-05 04:35:36 +00:00
Thomas Dinges
6288eb2ef7 2.5 Armature Panel UI Script:
* Code cleanup, no layout changes.
2011-03-04 19:57:05 +00:00
Ton Roosendaal
882514d28f Bugfix #26270
Transform started with button in Toolbar was drawing the helper
line badly.

This needed two fixes:
- helper line now has poll() callback to check for correct region
- event system needs to set 'subwinactive' for modal handlers too

The latter might fix issues with cursor/overlay drawing in other
cases?
2011-03-04 18:39:58 +00:00
Campbell Barton
9d5c6bbe3d quiet warnings and fix building without python. 2011-03-04 17:01:33 +00:00
Ton Roosendaal
7006038b02 Bugfix #26317
Shift+D in graph editor was an operator calling internally an operator.
Better is to make it a Macro, then Undos and Esc work nicely.

Note for API users: the operator "graph.duplicate" will now just
copy the selection and not run transform. Nicer too :)
2011-03-04 16:02:42 +00:00
Nathan Letwory
9834aea031 Forgot this one from previous commit.
For now people should extract the python32(_d).zip in the lib/win*/release dirs into similarly named directories.
2011-03-04 14:16:43 +00:00
Nathan Letwory
8bc0033cb0 Move CMake on Windows to use Python 3.2 2011-03-04 14:15:46 +00:00
Ton Roosendaal
24fa1d1f04 Two additional fixes for node-tree + texture paint:
- "need exec" flag was cleared in wrong tree for preview renders
  (it should clear it in the copy, i did in original).
  This fixes projection paint on images with previews open
- Previews for nodes were copied always, now only for previews 
  invoked by node editor itself.
2011-03-04 12:59:09 +00:00
Nathan Letwory
5b6223fdeb Py_hash_t is new typedef in Python 3.2, typedeffing Py_ssize_t. Changing to that to keep "slow adaptors" happy ;) 2011-03-04 11:08:22 +00:00
Nathan Letwory
292f633698 long hash caused stack corruption in _PySet_NextEntry. This wanted a Py_hash_t, so made hash into such. 2011-03-04 10:37:49 +00:00
Ervin Weber
98d444109e change mingw-scons to use python 3.2 2011-03-04 10:19:02 +00:00
Nathan Letwory
a97f920e2f Bump OSX SCons to use Python 3.2. Remember to update your lib/darwin* directory. 2011-03-04 09:08:47 +00:00
Joshua Leung
afc468c655 Bugfix [#26312] Wrong text in a button in the Stretch to constraint
This looks like a simple Copy+Paste typo
2011-03-04 06:34:41 +00:00
Nathan Letwory
f7ed83647d Move Windows SCons system to build Blender against the new Python 3.2 libs committed in r35340 and r35341.
Platform maintainers and release builders, please update your systems also to Python 3.2.
2011-03-04 00:59:45 +00:00
Janne Karhu
95f74f3442 Fix for [#26254] Rendering problem with group-instances of particle-instances
* Render level derived mesh (needed for proper hair rendering) was only calculated before duplication code if the particle object was a level 0 duplicator, so particles creating objects inside a dupligroup didn't work.
* I really don't see the need for the level == 0 check, so I just removed it and after some quick tests can't see any negative effects. If the check is needed for some case though then a more complicated test is needed to handle all cases.
2011-03-03 19:07:27 +00:00
Ton Roosendaal
18afcbcb7d bugfix #26267
ImageWindow + 3D view texture paint + texture preview render + texture nodes.
Threading hell! But it works now :)
2011-03-03 18:53:07 +00:00
Campbell Barton
3c184def72 use NULL instead of 0 for pointers, (editors) 2011-03-03 17:59:04 +00:00
Campbell Barton
709c727c51 replace 0 with NULL when used as a pointer 2011-03-03 17:58:06 +00:00
Campbell Barton
3326c0ca75 fix for invalid empty string check in uniquename callback. 2011-03-03 17:23:59 +00:00
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